Skip to content

Instantly share code, notes, and snippets.

@thisismattmiller
Created March 13, 2022 05:16
Show Gist options
  • Save thisismattmiller/176fc8edf816cfe2c76ef99b4a237b09 to your computer and use it in GitHub Desktop.
Save thisismattmiller/176fc8edf816cfe2c76ef99b4a237b09 to your computer and use it in GitHub Desktop.
import waybackpy
urls = [
"http://dmc.signourguestbook.com/?username=dmc&trail=25",
"http://dmc.signourguestbook.com/?username=dmc&trail=50",
"http://dmc.signourguestbook.com/?username=dmc&trail=75",
"http://dmc.signourguestbook.com/?username=dmc&trail=100",
"http://dmc.signourguestbook.com/?username=dmc&trail=125",
"http://dmc.signourguestbook.com/?username=dmc&trail=150",
"http://dmc.signourguestbook.com/?username=dmc&trail=175",
"http://dmc.signourguestbook.com/?username=dmc&trail=200",
"http://dmc.signourguestbook.com/?username=dmc&trail=225",
"http://dmc.signourguestbook.com/?username=dmc&trail=250",
"http://dmc.signourguestbook.com/?username=dmc&trail=275",
"http://dmc.signourguestbook.com/?username=dmc&trail=300",
"http://dmc.signourguestbook.com/?username=dmc&trail=325",
"http://dmc.signourguestbook.com/?username=dmc&trail=350",
"http://dmc.signourguestbook.com/?username=dmc&trail=375",
"http://dmc.signourguestbook.com/?username=dmc&trail=400",
"http://dmc.signourguestbook.com/?username=dmc&trail=425",
"http://dmc.signourguestbook.com/?username=dmc&trail=450",
"http://dmc.signourguestbook.com/?username=dmc&trail=475",
"http://dmc.signourguestbook.com/?username=dmc&trail=500",
"http://dmc.signourguestbook.com/?username=dmc&trail=525",
"http://dmc.signourguestbook.com/?username=dmc&trail=550",
"http://dmc.signourguestbook.com/?username=dmc&trail=575",
"http://dmc.signourguestbook.com/?username=dmc&trail=600",
"http://dmc.signourguestbook.com/?username=dmc&trail=625",
"http://dmc.signourguestbook.com/?username=dmc&trail=650",
"http://dmc.signourguestbook.com/?username=dmc&trail=675",
"http://dmc.signourguestbook.com/?username=dmc&trail=700",
"http://dmc.signourguestbook.com/?username=dmc&trail=725",
"http://dmc.signourguestbook.com/?username=dmc&trail=750",
"http://dmc.signourguestbook.com/?username=dmc&trail=775",
"http://dmc.signourguestbook.com/?username=dmc&trail=800",
"http://dmc.signourguestbook.com/?username=dmc&trail=825",
"http://dmc.signourguestbook.com/?username=dmc&trail=850",
"http://dmc.signourguestbook.com/?username=dmc&trail=875",
"http://dmc.signourguestbook.com/?username=dmc&trail=900",
"http://dmc.signourguestbook.com/?username=dmc&trail=925",
"http://dmc.signourguestbook.com/?username=dmc&trail=950",
"http://dmc.signourguestbook.com/?username=dmc&trail=975",
"http://dmc.signourguestbook.com/?username=dmc&trail=1000",
"http://dmc.signourguestbook.com/?username=dmc&trail=1025",
"http://dmc.signourguestbook.com/?username=dmc&trail=1050",
"http://dmc.signourguestbook.com/?username=dmc&trail=1075",
"http://dmc.signourguestbook.com/?username=dmc&trail=1100",
"http://dmc.signourguestbook.com/?username=dmc&trail=1125",
"http://dmc.signourguestbook.com/?username=dmc&trail=1150",
"http://dmc.signourguestbook.com/?username=dmc&trail=1175",
"http://dmc.signourguestbook.com/?username=dmc&trail=1200",
"http://dmc.signourguestbook.com/?username=dmc&trail=1225",
"http://dmc.signourguestbook.com/?username=dmc&trail=1250",
"http://dmc.signourguestbook.com/?username=dmc&trail=1275",
"http://dmc.signourguestbook.com/?username=dmc&trail=1300",
"http://dmc.signourguestbook.com/?username=dmc&trail=1325",
"http://dmc.signourguestbook.com/?username=dmc&trail=1350",
"http://dmc.signourguestbook.com/?username=dmc&trail=1375",
"http://dmc.signourguestbook.com/?username=dmc&trail=1400",
"http://dmc.signourguestbook.com/?username=dmc&trail=1425",
"http://dmc.signourguestbook.com/?username=dmc&trail=1450",
"http://dmc.signourguestbook.com/?username=dmc&trail=1475",
"http://dmc.signourguestbook.com/?username=dmc&trail=1500",
"http://dmc.signourguestbook.com/?username=dmc&trail=1525",
"http://dmc.signourguestbook.com/?username=dmc&trail=1550",
"http://dmc.signourguestbook.com/?username=dmc&trail=1575",
"http://dmc.signourguestbook.com/?username=dmc&trail=1600",
"http://dmc.signourguestbook.com/?username=dmc&trail=1625",
"http://dmc.signourguestbook.com/?username=dmc&trail=1650",
"http://dmc.signourguestbook.com/?username=dmc&trail=1675",
"http://dmc.signourguestbook.com/?username=dmc&trail=1700",
"http://dmc.signourguestbook.com/?username=dmc&trail=1725",
"http://dmc.signourguestbook.com/?username=dmc&trail=1750",
"http://dmc.signourguestbook.com/?username=dmc&trail=1775",
"http://dmc.signourguestbook.com/?username=dmc&trail=1800",
"http://dmc.signourguestbook.com/?username=dmc&trail=1825",
"http://dmc.signourguestbook.com/?username=dmc&trail=1850",
"http://dmc.signourguestbook.com/?username=dmc&trail=1875",
"http://dmc.signourguestbook.com/?username=dmc&trail=1900",
"http://dmc.signourguestbook.com/?username=dmc&trail=1925",
"http://dmc.signourguestbook.com/?username=dmc&trail=1950",
"http://dmc.signourguestbook.com/?username=dmc&trail=1975",
"http://dmc.signourguestbook.com/?username=dmc&trail=2000",
"http://dmc.signourguestbook.com/?username=dmc&trail=2025",
"http://dmc.signourguestbook.com/?username=dmc&trail=2050",
"http://dmc.signourguestbook.com/?username=dmc&trail=2075",
"http://dmc.signourguestbook.com/?username=dmc&trail=2100",
"http://dmc.signourguestbook.com/?username=dmc&trail=2125",
"http://dmc.signourguestbook.com/?username=dmc&trail=2150",
"http://dmc.signourguestbook.com/?username=dmc&trail=2175",
"http://dmc.signourguestbook.com/?username=dmc&trail=2200",
"http://dmc.signourguestbook.com/?username=dmc&trail=2225",
"http://dmc.signourguestbook.com/?username=dmc&trail=2250",
"http://dmc.signourguestbook.com/?username=dmc&trail=2275",
"http://dmc.signourguestbook.com/?username=dmc&trail=2300",
"http://dmc.signourguestbook.com/?username=dmc&trail=2325",
"http://dmc.signourguestbook.com/?username=dmc&trail=2350",
"http://dmc.signourguestbook.com/?username=dmc&trail=2375",
"http://dmc.signourguestbook.com/?username=dmc&trail=2400",
"http://dmc.signourguestbook.com/?username=dmc&trail=2425",
"http://dmc.signourguestbook.com/?username=dmc&trail=2450",
"http://dmc.signourguestbook.com/?username=dmc&trail=2475",
"http://dmc.signourguestbook.com/?username=dmc&trail=2500",
"http://dmc.signourguestbook.com/?username=dmc&trail=2525",
"http://dmc.signourguestbook.com/?username=dmc&trail=2550",
"http://dmc.signourguestbook.com/?username=dmc&trail=2575",
"http://dmc.signourguestbook.com/?username=dmc&trail=2600",
"http://dmc.signourguestbook.com/?username=dmc&trail=2625",
"http://dmc.signourguestbook.com/?username=dmc&trail=2650",
"http://dmc.signourguestbook.com/?username=dmc&trail=2675",
"http://dmc.signourguestbook.com/?username=dmc&trail=2700",
"http://dmc.signourguestbook.com/?username=dmc&trail=2725",
"http://dmc.signourguestbook.com/?username=dmc&trail=2750",
"http://dmc.signourguestbook.com/?username=dmc&trail=2775",
"http://dmc.signourguestbook.com/?username=dmc&trail=2800",
"http://dmc.signourguestbook.com/?username=dmc&trail=2825",
"http://dmc.signourguestbook.com/?username=dmc&trail=2850",
"http://dmc.signourguestbook.com/?username=dmc&trail=2875",
"http://dmc.signourguestbook.com/?username=dmc&trail=2900",
"http://dmc.signourguestbook.com/?username=dmc&trail=2925",
"http://dmc.signourguestbook.com/?username=dmc&trail=2950",
"http://dmc.signourguestbook.com/?username=dmc&trail=2975",
"http://dmc.signourguestbook.com/?username=dmc&trail=3000",
"http://dmc.signourguestbook.com/?username=dmc&trail=3025",
"http://dmc.signourguestbook.com/?username=dmc&trail=3050",
"http://dmc.signourguestbook.com/?username=dmc&trail=3075",
"http://dmc.signourguestbook.com/?username=dmc&trail=3100",
"http://dmc.signourguestbook.com/?username=dmc&trail=3125",
"http://dmc.signourguestbook.com/?username=dmc&trail=3150",
"http://dmc.signourguestbook.com/?username=dmc&trail=3175",
"http://dmc.signourguestbook.com/?username=dmc&trail=3200",
"http://dmc.signourguestbook.com/?username=dmc&trail=3225",
"http://dmc.signourguestbook.com/?username=dmc&trail=3250",
"http://dmc.signourguestbook.com/?username=dmc&trail=3275",
"http://dmc.signourguestbook.com/?username=dmc&trail=3300",
"http://dmc.signourguestbook.com/?username=dmc&trail=3325",
"http://dmc.signourguestbook.com/?username=dmc&trail=3350",
"http://dmc.signourguestbook.com/?username=dmc&trail=3375",
"http://dmc.signourguestbook.com/?username=dmc&trail=3400",
"http://dmc.signourguestbook.com/?username=dmc&trail=3425",
"http://dmc.signourguestbook.com/?username=dmc&trail=3450",
"http://dmc.signourguestbook.com/?username=dmc&trail=3475",
"http://dmc.signourguestbook.com/?username=dmc&trail=3500",
"http://dmc.signourguestbook.com/?username=dmc&trail=3525",
"http://dmc.signourguestbook.com/?username=dmc&trail=3550",
"http://dmc.signourguestbook.com/?username=dmc&trail=3575",
"http://dmc.signourguestbook.com/?username=dmc&trail=3600",
"http://dmc.signourguestbook.com/?username=dmc&trail=3625",
"http://dmc.signourguestbook.com/?username=dmc&trail=3650",
"http://dmc.signourguestbook.com/?username=dmc&trail=3675",
"http://dmc.signourguestbook.com/?username=dmc&trail=3700",
"http://dmc.signourguestbook.com/?username=dmc&trail=3725",
"http://dmc.signourguestbook.com/?username=dmc&trail=3750",
"http://dmc.signourguestbook.com/?username=dmc&trail=3775",
"http://dmc.signourguestbook.com/?username=dmc&trail=3800",
"http://dmc.signourguestbook.com/?username=dmc&trail=3825",
"http://dmc.signourguestbook.com/?username=dmc&trail=3850",
"http://dmc.signourguestbook.com/?username=dmc&trail=3875",
"http://dmc.signourguestbook.com/?username=dmc&trail=3900",
"http://dmc.signourguestbook.com/?username=dmc&trail=3925",
"http://dmc.signourguestbook.com/?username=dmc&trail=3950",
"http://dmc.signourguestbook.com/?username=dmc&trail=3975",
"http://dmc.signourguestbook.com/?username=dmc&trail=4000",
"http://dmc.signourguestbook.com/?username=dmc&trail=4025",
"http://dmc.signourguestbook.com/?username=dmc&trail=4050",
"http://dmc.signourguestbook.com/?username=dmc&trail=4075"]
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'
counter = 0
for url in urls:
counter+=1
# url = url.replace('username=dmc&','')
try:
wayback = waybackpy.Url(url, user_agent)
lasturl = str(wayback.newest())
if '/web/2022' in lasturl:
print(f"{counter}/{len(urls)}",url,"Had been archived in previoius attempt")
continue
except Exception as e:
#print(repr(e))
pass
try:
wayback = waybackpy.Url(url, user_agent)
archive = wayback.save()
print(f"{counter}/{len(urls)}",url,"Saved")
except Exception as e:
msg = repr(e)
print("Error saving saving",repr(e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment