Skip to content

Commit 299dd0e

Browse files
author
pgaref
committed
Addressing #29 - Updating FreeProxyList table id
1 parent 5651791 commit 299dd0e

2 files changed

Lines changed: 2 additions & 2 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")]

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)