File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,35 +34,40 @@ I have to mention that for each request a different agent header is used. The di
3434## How to use
3535
3636The project is now distribured as a PyPI package!
37- To run an example simply include ** http-request-randomizer==0 .0.5 ** in your requirements.txt file.
37+ To run an example simply include ** http-request-randomizer==1 .0.1 ** in your requirements.txt file.
3838Then run the code below:
3939
4040```` python
4141import time
42- from http .requests.proxy.requestProxy import RequestProxy
42+ from http_request_randomizer .requests.proxy.requestProxy import RequestProxy
4343
4444if __name__ == ' __main__' :
45- print " Hello "
45+
4646 start = time.time()
4747 req_proxy = RequestProxy()
4848 print " Initialization took: {0} sec" .format((time.time() - start))
4949 print " Size : " , len (req_proxy.get_proxy_list())
5050 print " ALL = " , req_proxy.get_proxy_list()
5151
52- test_url = ' http://icanhazip.com'
52+ test_url = ' http://ipv4. icanhazip.com'
5353
5454 while True :
5555 start = time.time()
5656 request = req_proxy.generate_proxied_request(test_url)
5757 print " Proxied Request Took: {0} sec => Status: {1} " .format((time.time() - start), request.__str__ ())
5858 if request is not None :
59- print " \t Response: ip={0} " .format(request.text)
59+ print " \t Response: ip={0} " .format(u ' ' .join( request.text).encode( ' utf-8 ' ) )
6060 print " Proxy List Size: " , len (req_proxy.get_proxy_list())
6161
6262 print " -> Going to sleep.."
6363 time.sleep(10 )
6464````
6565
66+ ## Documentation
67+
68+ [ http-request-randomizer documentation] ( http://pythonhosted.org/http-request-randomizer )
69+
70+
6671## Contributing
6772
6873Contributions are always welcome! Feel free to send a pull request.
You can’t perform that action at this time.
0 commit comments