Skip to content

Instantly share code, notes, and snippets.

View verdipratama's full-sized avatar
🧑‍💻
I have no idea how to code

Verdi Pratama verdipratama

🧑‍💻
I have no idea how to code
View GitHub Profile
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host