Empty proxy list
See original GitHub issueProof https://replit.com/@d3banjan/KhakiStarchyCustomer#main.py
The following code fails —
from random import choice
from http_request_randomizer.requests.proxy.requestProxy import RequestProxy
proxies = RequestProxy().get_proxy_list()
PROXY = choice(proxies).get_address()
print(PROXY, type(PROXY))
… with the following error message –
2021-08-18 10:14:57,091 http_request_randomizer.requests.useragent.userAgent INFO Using local file for user agents: /opt/virtualenvs/python3/lib/python3.8/site-packages/http_request_randomizer/requests/proxy/../data/user_agents.txt
2021-08-18 10:14:57,093 root DEBUG === Initialized Proxy Parsers ===
2021-08-18 10:14:57,093 root DEBUG FreeProxy parser of 'http://free-proxy-list.net' with required bandwidth: '150' KBs
2021-08-18 10:14:57,093 root DEBUG PremProxy parser of 'https://premproxy.com/list/' with required bandwidth: '150' KBs
2021-08-18 10:14:57,093 root DEBUG SslProxy parser of 'https://www.sslproxies.org' with required bandwidth: '150' KBs
2021-08-18 10:14:57,093 root DEBUG =================================
2021-08-18 10:14:57,525 http_request_randomizer.requests.parsers.FreeProxyParser ERROR Provider FreeProxy failed with Attribute error: 'NoneType' object has no attribute 'find'
2021-08-18 10:14:57,526 root DEBUG Added 0 proxies from FreeProxy
2021-08-18 10:14:58,051 http_request_randomizer.requests.parsers.PremProxyParser WARNING Proxy Provider url failed: https://premproxy.com/list/
2021-08-18 10:14:58,051 http_request_randomizer.requests.parsers.PremProxyParser DEBUG Pages: set()
2021-08-18 10:14:58,465 http_request_randomizer.requests.parsers.PremProxyParser WARNING Proxy Provider url failed: https://premproxy.com/list/
2021-08-18 10:14:58,466 root DEBUG Added 0 proxies from PremProxy
2021-08-18 10:14:58,792 http_request_randomizer.requests.parsers.SslProxyParser ERROR Provider SslProxy failed with Attribute error: 'NoneType' object has no attribute 'find'
2021-08-18 10:14:58,792 root DEBUG Added 0 proxies from SslProxy
2021-08-18 10:14:58,792 root DEBUG Total proxies = 0
2021-08-18 10:14:58,792 root DEBUG Filtered proxies = 0
Traceback (most recent call last):
File "main.py", line 4, in <module>
proxies = RequestProxy().get_proxy_list()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/http_request_randomizer/requests/proxy/requestProxy.py", line 69, in __init__
self.current_proxy = self.randomize_proxy()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/http_request_randomizer/requests/proxy/requestProxy.py", line 86, in randomize_proxy
raise ProxyListException("list is empty")
http_request_randomizer.requests.errors.ProxyListException.ProxyListException: list is empty
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Avaya IP Office – SIP proxy list is empty - Tony Fernandez
The fix was to go into Web Manager and set the System > System > Phone File Server Type to be Memory Card...
Read more >Proxy Server and exception showing blank or empty - TechNet
When we check proxy settings ang proxy exception was empty. Please see the above screenshot, when we checked what proxy is getting applied....
Read more >Empty sip proxy server list avaya - proxyelite.info
A proxy service is a network component that provides you with needed actions to access some web recourses. Some sites are blocked due...
Read more >Error: Proxy list must not be empty - Oracle Communities
I use Linux as my workstation and don't [normally] have HTTP_PROXY, et al. defined thus the "Proxy list must not be empty" error....
Read more >J169 SIP phone SIP proxy list empty after phone is unplugged ...
J169 SIP phone SIP proxy list empty after phone is unplugged and moved NoNew phone attempting to setup as remote worker.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
making
table = soup.find("table", attrs={"id": "proxylisttable"})
table = soup.find("table", attrs={"class": "table table-striped table-bordered"})
works for FreeProxy.
@metegenez solution works for FreeProxy and SslProxy
For PremProxy, it looks like they setup CORS and user agent checks, you can bypass it by spoofing the origin and referer headers, and leveraging a random user agent
In UnPacker.py make the following changes
In PremProxyParse.py make the following changes