Skip to content

Instantly share code, notes, and snippets.

View mor120's full-sized avatar

Mor Cohen mor120

  • Tel Aviv, Israel
View GitHub Profile
@mor120
mor120 / main.py
Created June 3, 2021 07:20
The main file of the script.
import sys
from Page import Page
import requests
import asyncio
if len(sys.argv) < 1:
print("Please specify keywords. Separate by comma.")
sys.exit()
else:
@mor120
mor120 / Page.py
Created June 3, 2021 07:16
This file will contain Page class to represent a search page.
from selenium import webdriver
from time import sleep
class Page(object):
search_url = "https://web.archive.org/web/*/{}"
def __init__(self, search_term):
self.search_term = search_term