Advertisement
amaimon02

baixar script do pastebin

Jan 4th, 2020
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import os
  2.  
  3. def update(url="https://pastebin.com/raw/NcVQXjZ6"):
  4.         import requests
  5.  
  6.         url = url
  7.         texto = requests.get(url).text
  8.         texto = texto.split("\n")
  9.         arquivo = open("script.py", "w")
  10.         for c in texto:
  11.                 arquivo.write(c)
  12.         arquivo.close()
  13.  
  14. update()
  15.  
  16. print(os.popen("script.py").read())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement