extractDownloadLink is a function that seeks for link, which begins on http://. Lately many of these links begins on https://.
It's a good idea to add OR function to regex match, just for a quick fix:
previously:
def extractDownloadLink(contents):
for line in contents.splitlines():
m = re.search(r'href="(http://download[^"]+)', line)
updated:
def extractDownloadLink(contents):
for line in contents.splitlines():
m = re.search(r'href="((http|https)://download[^"]+)', line)
extractDownloadLink is a function that seeks for link, which begins on http://. Lately many of these links begins on https://. It's a good idea to add OR function to regex match, just for a quick fix:
previously:
updated: