Very simple help multithreading requests in Python
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I want just to add multithreading to send many requests in second to a prepared python code,
this code works with requests library not urllib.

This is the python code:

https://gist.github.com/japzdjazpodjopazjd/f2832f7bff06b90855f2a076c3a15a58

P.S: the file myfile.txt is a file contains URLs of websites each line has a format of website.com

[UPDATE] I SOLVED IT MYSELF. THANKS!!!!!

5 days ago

Crowdsource coding tasks.

1 Solution


Your github gist url is dead.

But yeah you generally want to try something like tornado;
http://www.tornadoweb.org/en/stable/

http://stackoverflow.com/questions/15375336/how-to-best-perform-multiprocessing-within-requests-with-the-python-tornado-serv

You better offer a tip if you want to see code since for 1$ i'm not going to open my IDE

1$ is not the tip worth that code, it's not a task of coding the code already exist it's just about adding multi threading, anyway never mind if I only find a way to delete this post I will do it ( Already coded it )
privcrawler 11 days ago
View Timeline