pgaref / HTTP_Request_Randomizer

Proxying Python Requests
http://pgaref.com/blog/python-proxy/
MIT License
151 stars 59 forks source link

[Error] req_proxy = RequestProxy() error #29

Closed mnlbox closed 7 years ago

mnlbox commented 7 years ago

Hi @pgaref , I installed your package with sudo pip install http-request-randomizer and want test it with same code as on project README but it's return below error:

Traceback (most recent call last):
  File "myTest.py", line 7, in <module>
    req_proxy = RequestProxy()
  File "/usr/local/lib/python2.7/dist-packages/http_request_randomizer/requests/proxy/requestProxy.py", line 55, in __init__
    self.proxy_list += parsers[i].parse_proxyList()
  File "/usr/local/lib/python2.7/dist-packages/http_request_randomizer/requests/parsers/FreeProxyParser.py", line 29, in parse_proxyList
    headings = [th.get_text() for th in table.find("tr").find_all("th")]
AttributeError: 'NoneType' object has no attribute 'find'

Can you help me?

pgaref commented 7 years ago

Hello @mnlbox

As it turns out free-proxy-list website changed recently causing the parser to fail. Until I fix the issue you could use the package by checking out the github code and commenting out the specific parser.

Cheers, Panagiotis

pgaref commented 7 years ago

@mnlbox

The issue is now fixed! Please use the latest package version (1.0.5)

Cheers, Panagiotis

mnlbox commented 7 years ago

Thanks man 😉

MASSKAgithub commented 1 year ago

same problem now, pls update