Advertisement
didzislauva

Untitled

Mar 11th, 2022
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. ###
  2. from urllib.request import urlopen  # the lib that handles the url stuff
  3.  
  4. t = "https://raw.githubusercontent.com/Skalbeard/InstaReport/master/targets"
  5. with urlopen(t) as webpage:
  6.     content = webpage.read().decode()
  7.  
  8. with open( 'targets', 'w' ) as output:
  9.     output.write( content )
  10.  
  11. ###
  12. def chunks (a ,b ):
  13.     ""
  14.     for c in range (0 ,len (a ),b ):
  15.         yield a [c : c + b ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement