Skip to content

Instantly share code, notes, and snippets.

@Bandd-k
Last active November 25, 2017 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bandd-k/26af0a84864d7411702f1a7739a8e7e2 to your computer and use it in GitHub Desktop.
Save Bandd-k/26af0a84864d7411702f1a7739a8e7e2 to your computer and use it in GitHub Desktop.
import requests
import shutil
import urllib3
import csv
base_url = "http://warashi-asian-pornstars.fr"
def downloadImage(url,imgName="img.jpg"):
r = requests.get(url, stream=True)
with open(imgName, 'wb') as f:
r.raw.decode_content = True
shutil.copyfileobj(r.raw, f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment