Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

proxy malformed #108

Closed
nftmoe420 opened this issue Jul 22, 2022 · 2 comments
Closed

proxy malformed #108

nftmoe420 opened this issue Jul 22, 2022 · 2 comments

Comments

@nftmoe420
Copy link

requests.exceptions.InvalidProxyURL: Please check proxy URL. It is malformed and could be missing the host.

@nftmoe420
Copy link
Author

any help ?

@D3nnis24
Copy link

requests.exceptions.InvalidProxyURL: Please check proxy URL. It is malformed and could be missing the host.

Go inside of main.py and change the get_proxy function to the following:

def get_proxy(self):
    if open("proxies.txt","r").read() == '':
            return None
    else:
        proxies = {
    "https":"http://"+random.choice(self.proxy),
    "http":"http://"+random.choice(self.proxy)
            }
    return proxies

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants