Skip to content

Commit

Permalink
pyOpenSSL dep needed for providers over HTTPS like free-proxy-list - …
Browse files Browse the repository at this point in the history
…making example python3 compatible
  • Loading branch information
pgaref committed Oct 30, 2017
1 parent f4d8519 commit 73373c1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if __name__ == '__main__':
req_proxy = RequestProxy()
print("Initialization took: {0} sec".format((time.time() - start)))
print("Size: {0}".format(len(req_proxy.get_proxy_list())))
print("ALL = {0} ".format(req_proxy.get_proxy_list()))
print("ALL = {0} ".format(list(map(lambda x: x.get_address(), req_proxy.get_proxy_list()))))

test_url = 'http://ipv4.icanhazip.com'

Expand Down
12 changes: 10 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
HTTP Request Randomizer |Build Status| |Coverage Status| |Dependency Status| |PyPI version|
===========================================================================================

`Vietnamese version <README-vi.md>`__

A convenient way to implement HTTP requests is using Pythons'
**requests** library. One of requests’ most popular features is simple
proxying support. HTTP as a protocol has very well-defined semantics for
Expand Down Expand Up @@ -66,7 +68,7 @@ file. Then run the code below:
req_proxy = RequestProxy()
print("Initialization took: {0} sec".format((time.time() - start)))
print("Size: {0}".format(len(req_proxy.get_proxy_list())))
print("ALL = {0} ".format(req_proxy.get_proxy_list()))
print("ALL = {0} ".format(list(map(lambda x: x.get_address(), req_proxy.get_proxy_list()))))
test_url = 'http://ipv4.icanhazip.com'
Expand All @@ -90,7 +92,13 @@ documentation <http://pythonhosted.org/http-request-randomizer>`__
Contributing
------------

Contributions are always welcome! Feel free to send a pull request.
Contributions are always welcome! Feel free to send a pull request!

Many thanks to the open-source community for contributing to this
project! More information about the individual contributions can be
found in the
`CONTRIBUTORS <https://github.com/pgaref/HTTP_Request_Randomizer/blob/master/CONTRIBUTORS.md>`__
file.

Faced an issue?
---------------
Expand Down
2 changes: 1 addition & 1 deletion http_request_randomizer/requests/proxy/requestProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def generate_proxied_request(self, url, method="GET", params={}, data={}, header
req_proxy = RequestProxy()
print("Initialization took: {0} sec".format((time.time() - start)))
print("Size: {0}".format(len(req_proxy.get_proxy_list())))
print("ALL = {0} ".format(map(lambda x: x.get_address(), req_proxy.get_proxy_list())))
print("ALL = {0} ".format(list(map(lambda x: x.get_address(), req_proxy.get_proxy_list()))))

test_url = 'http://ipv4.icanhazip.com'

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pytest-cov == 2.5.1
python-dateutil == 2.6.1
requests == 2.18.4
schedule == 0.4.3
pyOpenSSL >= 17.3.0
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def run_tests(self):
'psutil >= 5.4.0',
'python-dateutil >= 2.6.1',
'requests >= 2.18.4',
'schedule >= 0.4.3'
'schedule >= 0.4.3',
'pyOpenSSL >= 17.3.0'
],
use_scm_version=True,
setup_requires=['setuptools-scm', 'pytest-runner'],
Expand Down

0 comments on commit 73373c1

Please sign in to comment.