Skip to main content

All Questions

8 votes
2 answers
6k views

How i can get new ip from tor every requests in threads?

I try to use TOR proxy for scraping and everything works fine in one thread, but this is slow. I try to do something simple: def get_new_ip(): with Controller.from_port(port = 9051) as controller:...
kshnkvn's user avatar
  • 966
-2 votes
1 answer
277 views

Multi-tasking with Multiprocessing or Threading or Asyncio, depending on the Scenario

I have my codes ready for 1 at a time performance, I wanna upgrade it to something fancy, multi-tasking. I am seeking helps about what I can use to achieve my goal. my codes performs in this order: ...
Mike_Leigh's user avatar