Skip to content

Commit b29c237

Browse files
author
pgaref
committed
Merge branch 'hotfix/deps'
2 parents 3f5596b + f01c109 commit b29c237

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ if __name__ == '__main__':
4545

4646
start = time.time()
4747
req_proxy = RequestProxy()
48-
print "Initialization took: {0} sec".format((time.time() - start))
49-
print "Size : ", len(req_proxy.get_proxy_list())
50-
print " ALL = ", req_proxy.get_proxy_list()
48+
print("Initialization took: {0} sec".format((time.time() - start)))
49+
print("Size: {0}".format(len(req_proxy.get_proxy_list())))
50+
print("ALL = {0} ".format(req_proxy.get_proxy_list()))
5151

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

5454
while True:
5555
start = time.time()
5656
request = req_proxy.generate_proxied_request(test_url)
57-
print "Proxied Request Took: {0} sec => Status: {1}".format((time.time() - start), request.__str__())
57+
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(u''.join(request.text).encode('utf-8'))
60-
print "Proxy List Size: ", len(req_proxy.get_proxy_list())
59+
print("\t Response: ip={0}".format(u''.join(request.text).encode('utf-8')))
60+
print("Proxy List Size: {0}".format(len(req_proxy.get_proxy_list())))
6161

62-
print"-> Going to sleep.."
62+
print("-> Going to sleep..")
6363
time.sleep(10)
6464
````
6565

README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ How to use
5252
----------
5353

5454
The project is now distribured as a PyPI package! To run an example
55-
simply include **http-request-randomizer** in your
56-
requirements.txt file. Then run the code below:
55+
simply include **http-request-randomizer** in your requirements.txt
56+
file. Then run the code below:
5757

5858
.. code:: python
5959
@@ -64,21 +64,21 @@ requirements.txt file. Then run the code below:
6464
6565
start = time.time()
6666
req_proxy = RequestProxy()
67-
print "Initialization took: {0} sec".format((time.time() - start))
68-
print "Size : ", len(req_proxy.get_proxy_list())
69-
print " ALL = ", req_proxy.get_proxy_list()
67+
print("Initialization took: {0} sec".format((time.time() - start)))
68+
print("Size: {0}".format(len(req_proxy.get_proxy_list())))
69+
print("ALL = {0} ".format(req_proxy.get_proxy_list()))
7070
7171
test_url = 'http://ipv4.icanhazip.com'
7272
7373
while True:
7474
start = time.time()
7575
request = req_proxy.generate_proxied_request(test_url)
76-
print "Proxied Request Took: {0} sec => Status: {1}".format((time.time() - start), request.__str__())
76+
print("Proxied Request Took: {0} sec => Status: {1}".format((time.time() - start), request.__str__()))
7777
if request is not None:
78-
print "\t Response: ip={0}".format(u''.join(request.text).encode('utf-8'))
79-
print "Proxy List Size: ", len(req_proxy.get_proxy_list())
78+
print("\t Response: ip={0}".format(u''.join(request.text).encode('utf-8')))
79+
print("Proxy List Size: {0}".format(len(req_proxy.get_proxy_list())))
8080
81-
print"-> Going to sleep.."
81+
print("-> Going to sleep..")
8282
time.sleep(10)
8383
8484
Documentation

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
beautifulsoup4 == 4.5.3
2-
coverage == 4.3.4
1+
beautifulsoup4 == 4.6.0
2+
coverage == 4.4.1
33
httmock == 1.2.6
44
psutil == 5.2.2
55
pytest == 3.0.7
6-
pytest-cov == 2.4.0
6+
pytest-cov == 2.5.1
77
python-dateutil == 2.6.0
8-
requests == 2.13.0
8+
requests == 2.14.2
99
schedule == 0.4.2

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def run_tests(self):
6161
# cmdclass={'test': Tox},
6262
tests_require=['pytest', 'pytest-cov'],
6363
cmdclass={'test': PyTest},
64-
install_requires=['beautifulsoup4 >= 4.5.3',
64+
install_requires=['beautifulsoup4 >= 4.6.0',
6565
'httmock >= 1.2.6',
6666
'psutil >= 5.2.2',
6767
'python-dateutil >= 2.6.0',
68-
'requests >= 2.13.0',
68+
'requests >= 2.14.2',
6969
'schedule >= 0.4.2',
7070
],
7171
setup_requires=['pytest-runner'],

0 commit comments

Comments
 (0)