Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from torrequest import TorRequest
- from tqdm import tqdm
- endpoint = "https://www.feline.dk/search/Y2fgsWGAAw4gFtBlBAA/?page={page}"
- with TorRequest(proxy_port=9050, ctrl_port=9051, password=None) as tr:
- for i in tqdm(range(50)):
- resp = tr.get(endpoint.format(page=i+1))
- print(resp.status_code)
- print("Tilføj til favoritter" in resp.text)
- # Change your Tor circuit,
- # and likely your observed IP address.
- #tr.reset_identity()
- #print(type(tr.ctrl)) # a stem.control.Controller object
- #tr.ctrl.signal('CLEARDNSCACHE')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement