Skip to content

Instantly share code, notes, and snippets.

View jcharvet's full-sized avatar

Jerome Charvet jcharvet

View GitHub Profile
@jcharvet
jcharvet / download-url.py
Created August 20, 2017 15:27
A python script that parse a html link to collect the url and download the files from those url
import urllib.request, urllib.parse, re
url = 'some url'
fp = urllib.request.urlopen(url)
mybytes = fp.read()
mystr = mybytes.decode("utf8")
fp.close()