vladkens / twscrape

2024! X / Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
https://pypi.org/project/twscrape/
MIT License
1.13k stars 132 forks source link

Question: "Name or service not known" #187

Closed psegovias closed 5 months ago

psegovias commented 6 months ago

Hi, guys, i have this error when i try to login accounts:

root@capturest:/home/newsearch# twscrape login_accounts
2024-05-08 20:35:53.352 | INFO     | twscrape.accounts_pool:login_all:183 - [1/3] Logging in account1 - account1@domain.com
2024-05-08 20:35:54.329 | ERROR    | twscrape.accounts_pool:login:165 - Failed to login 'account1': [Errno -2] Name or service not known
2024-05-08 20:35:54.348 | INFO     | twscrape.accounts_pool:login_all:183 - [2/3] Logging in account2 - account2@domain.com
2024-05-08 20:35:55.488 | INFO     | twscrape.accounts_pool:login:158 - Logged in to account2 successfully
2024-05-08 20:35:55.505 | INFO     | twscrape.accounts_pool:login_all:183 - [3/3] Logging in account3 - account3@domain.com
2024-05-08 20:35:56.513 | ERROR    | twscrape.accounts_pool:login:165 - Failed to login 'account3': [Errno -2] Name or service not known
{'total': 3, 'success': 1, 'failed': 2}

What im doing wrong?

vladkens commented 5 months ago

Hi, @psegovias. This is DNS error. You can wait some type or try to flush DNS cache on your operation system.

gamingflexer commented 4 months ago

Same error again, the email is my company domain & i am running it on a gcp server. What cloud be the error?