Skip to content

Commit

Permalink
Fix the 'usproxy' KeyError (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaohuiwu authored Nov 14, 2022
1 parent 7bca213 commit 3175bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scylla/providers/proxy_scraper_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def parse(self, document: PyQuery) -> [ProxyIP]:

text = document.html()
json_object = json.loads(text)
if not json_object or type(json_object['usproxy']) != list:
if not json_object or type(json_object['proxynova']) != list:
return ip_list

for ip_port in json_object['usproxy']:
for ip_port in json_object['proxynova']:
p = ProxyIP(ip=ip_port['ip'], port=ip_port['port'])
ip_list.append(p)

Expand Down

0 comments on commit 3175bd1

Please sign in to comment.