Forums

ConnectionRefusedError: [Errno 111] Connect call failed ('104.244.42.193', 443)

Hi, free user here!

I'm building a webscraper to scrape tweets from twitter.com, but when I try to run it in the bash script I get a ConnectionRefusedError. I checked the whitelist and Twitter is on it so I am unsure why this is happening.

That's likely to be being caused by the code you use to connect to Twitter. Free accounts get access to whitelisted sites by using a proxy, so your code will need to do that.

If you use the requests library to hit the Twitter API, then it should work find -- requests extracts the proxy settings from the system environment and uses them transparently. But if you're using a different library, you may need to configure it explicitly to use the proxy.

Attempt 2 at connecting failed: ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443), i install telegram bot, help me

hi there, have you seen this