-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to login accounts. #45
Comments
Can you tell me how to copy-pasting cookies? Because my login also didn't work. |
I have the same problem, i tried with different accounts and always get the same error message:
|
@dwicak Login to a account with your browser, open developement tools, find the main request informations, copy the cookie header string of this request and paste it in the cookie parameter of the add_account function. |
Im trying to follow your instructions but Im getting this error: twscrape.imap:imap_try_login:97 - Error logging into email_account@yahoo.com on imap.mail.yahoo.com: b'[AUTHENTICATIONFAILED] LOGIN Invalid credentials' 2023-07-27 11:58:37.452 | ERROR | twscrape.accounts_pool:login:140 - Error logging in to twitter_account: command SELECT illegal in state NONAUTH, only allowed in states AUTH, SELECTED Do you know how to solve this?Thanks! |
Can you copy and paste your code, of course, without your valid cookies? I still don't understand. |
@dwicak it's in the readme of the repo. await api.pool.add_account("user3", "pass3", "u3@mail.com", "mail_pass3", cookies=cookies) |
Hi there. I restore behaviour from See changelog: https://github.com/vladkens/twscrape/releases/tag/v0.7.0 |
This looks like email blocked. If it not tell more details, please. |
![]() Other way:
Note: You can add this code as bookmark One more way: |
Thank you. I can add accounts using cookies now. But I got an error like this: 2023-08-02 14:50:21.928 | INFO | twscrape.accounts_pool:get_for_queue_or_wait:260 - No account available for queue "SearchTimeline". Next available at 01:06:35 I tried to google the error but didn't find anything. |
No account available for queue "SearchTimeline". Did you find a solution for this? |
It means your accounts has reached its limit for requests, just wait 15 mins, it says |
I login in my browser to twitter I create the file accounts.txt whit this structure: my_twitter_user:my_twitter_password:my_twitter_email:my_twitter_password:cookie_value_from_my_browser_according_to_this guide The guide to get twitter cookie value: from command line login to twitter using twscrape with this command: twscrape add_accounts ./accounts.txt username:password:email:email_password:cookies It will appear a login confirmation: Account your_twitter_account added successfully (active=False) twscrape will create the file accounts.db with login credentials from command line validate login to twitter from twscrape with the command: twscrape login_accounts It will appear a confirmation: 2024-01-05 10:57:53.774 | INFO | twscrape.accounts_pool:login_all:155 - [1/1] Logging in your_twitter_account - your_twitter_email from command line validate login to twitter from twscrape with the command: twscrape accounts It will appear a confirmation: username logged_in active last_used total_req error_msg get twitter messages from an user and save it to a file: twscrape user_tweets 82119937 --limit=200 > amlo.txt The file amlo.txt will be created twitter messages from an user For example: {"id": 1736459471994679567, "id_str": "1736459471994679567", "url": "https://twitter.com/lopezobrador_/status/1736459471994679567", "date": "2023-12-17 18:52:54+00:00", "user": {"id": 82119937, "id_str": "82119937", "url": "https://twitter.com/lopezobrador_", "username": "lopezobrador_", "displayname": "Andr\u00e9s Manuel", "rawDescription": "Presidente Constitucional de los Estados Unidos Mexicanos", "created": "2009-10-13 15:28:01+00:00", "followersCount": 10376407, "friendsCount": 293, "statusesCount": 7236, "favouritesCount": 79, "listedCount": 11381, "mediaCount": 1910, "location": "M\u00e9xico", "profileImageUrl": "https://pbs.twimg.com/profile_images/1433234061691084800/8TUii2rl_normal.jpg", "profileBannerUrl": "https://pbs.twimg.com/profile_banners/82119937/1674777233", "protected": null, "verified": false, "blue": true, "blueType": "Government", "descriptionLinks": [{"url": "http://presidente.gob.mx", "text": "presidente.gob.mx", "tcourl": "https://t.co/zNEOKC7CnT"}], "_type": "snscrape.modules.twitter.User"}, "lang": "es", "rawContent": "En el \u00faltimo tramo de nuestro gobierno estamos terminando obras importantes: ya inauguramos el aeropuerto de Tulum y la primera etapa del Tren Maya; ayer se concluy\u00f3 el acueducto El Cuchillo II para abastecer con 5 mil litros adicionales por segundo a la zona conurbada de Monterrey. Tambi\u00e9n por la tarde inauguramos un regimiento para m\u00e1s de 500 elementos en Nuevo Laredo, donde avanza la construcci\u00f3n de las oficinas centrales para el manejo de aduanas del pa\u00eds. Ma\u00f1ana inauguramos la presa Santa Mar\u00eda en Sinaloa; el 21, la primera etapa del acueducto Agua Saludable para La Laguna; el 22 empieza a operar el Tren del Istmo; el 26 vuelve a volar Mexicana de Aviaci\u00f3n; el 27 inauguramos la primera etapa del acueducto de la presa El Zapotillo, que llevar\u00e1 agua a Guadalajara; el 28, nada porque es el D\u00eda de los Inocentes; el 29, la farmacia central con todos los medicamentos en Huehuetoca y el 31 se inaugura la segunda etapa del Tren Maya, de Canc\u00fan a Palenque, y feliz a\u00f1o.", "replyCount": 2812, "retweetCount": 6127, "likeCount": 15938, "quoteCount": 367, "conversationId": 1736459471994679567, "hashtags": [], "cashtags": [], "mentionedUsers": [], "links": [], "viewCount": 931993, "retweetedTweet": null, "quotedTweet": null, "place": null, "coordinates": null, "inReplyToTweetId": null, "inReplyToUser": null, "source": "<a href="https://mobile.twitter.com\" rel="nofollow">Twitter Web App", "sourceUrl": "https://mobile.twitter.com", "sourceLabel": "Twitter Web App", "media": {"photos": [], "videos": [{"thumbnailUrl": "https://pbs.twimg.com/media/GBkod3lboAAoW6v.jpg", "variants": [{"contentType": "video/mp4", "bitrate": 256000, "url": "https://video.twimg.com/ext_tw_video/1736456400241557504/pu/vid/avc1/480x270/QrgY3-nva0TOFl99.mp4?tag=12"}, {"contentType": "video/mp4", "bitrate": 832000, "url": "https://video.twimg.com/ext_tw_video/1736456400241557504/pu/vid/avc1/640x360/5OICodSEhpSqsgTn.mp4?tag=12"}, {"contentType": "video/mp4", "bitrate": 2176000, "url": "https://video.twimg.com/ext_tw_video/1736456400241557504/pu/vid/avc1/1280x720/764HjDuDj7RkYIZ8.mp4?tag=12"}], "duration": 215633, "views": null}], "animated": []}, "_type": "snscrape.modules.twitter.Tweet"} Before using twscrape you should check if you are still login in to your twitter in your browser I you log off from your browser to twitter, you cannnot use twscrape from command line anymore... I you log off from your browser to twitter, then login again, you cannnot use twscrape from command line anymore... (Because the cookie used has changed) It would appear this error: 2023-08-02 14:50:21.928 | INFO | twscrape.accounts_pool:get_for_queue_or_wait:260 - No account available for queue "SearchTimeline". Next available at 01:06:35 I you log off from your browser to twitter, then login again, you cannnot use twscrape from command line anymore... (Because the cookie used has changed) a) You can delete the file accounts.db b) whit this structure: my_twitter_user:my_twitter_password:my_twitter_email:Tabasco.tr.2099:my_twitter_password:cookie_value_from_my_browser_according_to_this guide The guide to get twitter cookie value: |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
i'm using 0.6
i'm unable to login accounts.
the only way working is copy pasting cookies, which is pretty annoying and slow to do when adding accounts.
The text was updated successfully, but these errors were encountered: