Skip to content

Commit f3a0ca9

Browse files
author
pgaref
committed
Fixing FreeProxyList website issue
Merge branch 'hotfix/1.0.5'
2 parents b29c237 + 19132ef commit f3a0ca9

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

http_request_randomizer/requests/parsers/FreeProxyParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def parse_proxyList(self):
2323

2424
content = response.content
2525
soup = BeautifulSoup(content, "html.parser")
26-
table = soup.find("table", attrs={"class": "display fpltable"})
26+
table = soup.find("table", attrs={"id": "proxylisttable"})
2727

2828
# The first tr contains the field names.
2929
headings = [th.get_text() for th in table.find("tr").find_all("th")]

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ pytest == 3.0.7
66
pytest-cov == 2.5.1
77
python-dateutil == 2.6.0
88
requests == 2.14.2
9-
schedule == 0.4.2
9+
schedule == 0.4.2
10+
pyOpenSSL == 17.0.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run_tests(self):
4747

4848
setup(
4949
name='http_request_randomizer',
50-
version='1.0.4',
50+
version='1.0.5',
5151
url='http://pgaref.com/blog/python-proxy',
5252
license='MIT',
5353
author='Panagiotis Garefalakis',

tests/mocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@urlmatch(netloc=r'(.*\.)?free-proxy-list\.net$')
1010
def free_proxy_mock(url, request):
11-
return """<table border="0" cellpadding="0" cellspacing="0" class="display fpltable"
11+
return """<table border="0" cellpadding="0" cellspacing="0" id="proxylisttable"
1212
id="proxylisttable">\n
1313
<thead>\n
1414
<tr>\n

0 commit comments

Comments
 (0)