twint icon indicating copy to clipboard operation
twint copied to clipboard

CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)

Open linglin506 opened this issue 5 years ago • 96 comments

This error will be reported from 0:00 on September 18, 2020. It is found through debug that the https://twitter.com/i/search/timeline page does not exist. Can you fix it?By changing the IP, it can be determined that Twitter is not banning the IP

CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs

linglin506 avatar Sep 18 '20 02:09 linglin506

I experienced the same problem today as well. Yesterday was still fine.

sukioral avatar Sep 18 '20 03:09 sukioral

今天用就有事

zhixideyu avatar Sep 18 '20 03:09 zhixideyu

I am having the same issue

hcanalesmx avatar Sep 18 '20 04:09 hcanalesmx

Glad to see I am not the only one. I just discovered this today and was excited to use it. I hope they can fix it ASAP

bigslick87 avatar Sep 18 '20 05:09 bigslick87

getting the same error!

hj5992 avatar Sep 18 '20 06:09 hj5992

Getting the same error as well. Hope it gets fixed ASAP

gab-santi avatar Sep 18 '20 07:09 gab-santi

I guess Twitter has deleted https://twitter.com/i/search/timeline

Twint is not the only Twitter scraper having the same problem. See: https://github.com/jonbakerfish/TweetScraper/issues/92

tmantynen avatar Sep 18 '20 07:09 tmantynen

bad news

Buaasinong avatar Sep 18 '20 07:09 Buaasinong

我想Twitter已经删除了https://twitter.com/i/search/timeline

Twint并不是唯一遇到相同问题的Twitter抓取工具。请参阅:jonbakerfish / TweetScraper#92

Does that mean the project is going to fail

zhixideyu avatar Sep 18 '20 07:09 zhixideyu

I am also having the same issue. The system was working fine yesterday! I hope the problem will be solved soon.

yemen2016 avatar Sep 18 '20 08:09 yemen2016

I guess Twitter has deleted https://twitter.com/i/search/timeline

Twint is not the only Twitter scraper having the same problem. See: jonbakerfish/TweetScraper#92

Problem also appears using GetOldTweets3.

Sebastokratos42 avatar Sep 18 '20 08:09 Sebastokratos42

https://twitter.com/search?f=live&q=bug%20min_retweets%3A100%20until%3A2020-09-18%20since%3A2020-09-11&src=typed_query but it can work can we do this search here

shelu16 avatar Sep 18 '20 09:09 shelu16

Even I am facing the same issue. Any luck?

vishal7892 avatar Sep 18 '20 09:09 vishal7892

We need to find a new endpoint. I loaded the site and saw this link New Api link?. It is important to note that if you copy the request and past it to notepad you can see that the request is provided with headers and you can see that it provides a x-csrf-token and x-guest-token which are required. You can find these tokens in the cookie fields "gt" and "ct0".

This is somewhat the official twitter api and you need a bearer token to access this. The bearertoken is provided in the https://abs.twimg.com/responsive-web/client-web/main.6b1bdbc5.js file. Just search for "AAAAAA" and you can find it.

Now you can craft a GET request in postman with the x-csrf-token, the x-guest-token and the bearer token for authentification.

TryAndErr0r avatar Sep 18 '20 10:09 TryAndErr0r

Booom! I found a new endpoint, implemented the new parser for it. Check this out! https://github.com/twintproject/twint/pull/917 @pielco11

yunusemrecatalcam avatar Sep 18 '20 13:09 yunusemrecatalcam

Having the same issue as well. Just tried yesterday (2020-09-17) and everything worked fine. I tried Twint today (2020-09-18) and I got the same loop.

CRITICAL:root:twint.get:User:
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 15 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 15 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 27.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 64.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 125.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 216.0 secs

estebanpdl avatar Sep 18 '20 17:09 estebanpdl

I thought I was the only person who was facing this. Hope they fix this.

boshez avatar Sep 18 '20 18:09 boshez

i'm having the same problem here.

hasobi avatar Sep 18 '20 19:09 hasobi

Same problem here. Yesterday was working fine...

guilherme-sal avatar Sep 18 '20 20:09 guilherme-sal

Everything is working except to fetch tweets. Yesterday was working fine

jeremy1392 avatar Sep 18 '20 20:09 jeremy1392

Hi I just want to add that I also had no problems yesterday but today I can't get any data.

Also, I was trying other tool to see if it worked and they seem to be having similar issues

ivanlewin avatar Sep 18 '20 20:09 ivanlewin

I think I'm the only one facing this 'twint' problem. I hope it is fixed soon

aradiayu avatar Sep 19 '20 07:09 aradiayu

I am also facing this issue

Dbroug01 avatar Sep 19 '20 08:09 Dbroug01

Booom! I found a new endpoint, implemented the new parser for it. Check this out! #917 @pielco11

Big thanks to @yunusemrecatalcam

I'm not using Twint but instead my own similar Twitter scraper program writen in PHP. So I can't comment directly on @yunusemrecatalcam 's changes to Twint.

Anyway. Couple of days ago my own scraper stopped working just like all Twitter scrapers using i/search/timeline endpoint did. Following @yunusemrecatalcam 's example, I implemented similar changes to my program that @yunusemrecatalcam did to Twint in PR #917.

I haven't had the time to finished all changes, but preliminary impressions are mixed. The new mobile endpoint appears to function similarly to the old one, but Twitter appears to return a lot fewer tweets as a result to queries than previously. Queries that resulted hundreds of tweets earlier now result just tens of tweets. I can't yet comment on speed or rate limits etc. And again, these are just preliminary impressions.

(Edit: I incorrectly tagged @pielco11 when I should have tagged @yunusemrecatalcam. My apologies.)

tmantynen avatar Sep 19 '20 09:09 tmantynen

Same problem CRITICAL:root:twint.get:User:'NoneType' object is not subscriptable CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 15 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 15 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 27.0 secs CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 64.0 secs

adrival13 avatar Sep 19 '20 20:09 adrival13

got the same problem though fetching followers and followings are just fine. anyway, is there any good alternative to twint?

rayhannr avatar Sep 20 '20 02:09 rayhannr

今天用就有事

以前是都能用吗?才刚发现这个就发现好像出问题了

shizia avatar Sep 20 '20 06:09 shizia

they changed end point url to :+1:

https://twitter.com/explore/

lukaspistelak avatar Sep 20 '20 09:09 lukaspistelak

they changed end point url to 👍

https://twitter.com/explore/

What do you mean exactly? How to get it to run?

akuma527 avatar Sep 20 '20 14:09 akuma527

they changed end point url to 👍

https://twitter.com/explore/

isn't it /explore/ the URL for trending topics?

estebanpdl avatar Sep 20 '20 14:09 estebanpdl

今天用就有事

以前是都能用吗?才刚发现这个就发现好像出问题了

是的,我用了几个月了,前几天突然就不行了

fwgood avatar Sep 20 '20 17:09 fwgood

they changed end point url to 👍 https://twitter.com/explore/

isn't it /explore/ the URL for trending topics?

@estebanpdl “/explore” indeed is the trending topics,but you can use advanced search in this page. If you switch to the second tab you will fetch the same result as before. hopefully there are someone can write the new parser ASAP

fwgood avatar Sep 20 '20 17:09 fwgood

How on earth can I crawl my way to a tweet, which is important to me。

zhixideyu avatar Sep 21 '20 01:09 zhixideyu

@zhixideyu looks like twitter api is a way.

imfht avatar Sep 21 '20 02:09 imfht

Please recommend a project that can use

zhixideyu avatar Sep 21 '20 03:09 zhixideyu

for JS render here is nice lib :+1:

https://github.com/mherrmann/selenium-python-helium

lukaspistelak avatar Sep 21 '20 08:09 lukaspistelak

Twint is broken? OMG

Any solution??

rodolfopardo avatar Sep 21 '20 23:09 rodolfopardo

Twint is broken? OMG

Any solution??

Try this: https://github.com/twintproject/twint/pull/917

tahmidrashid avatar Sep 21 '20 23:09 tahmidrashid

I am facing the same issue too!

shadenshabayek avatar Sep 28 '20 21:09 shadenshabayek

also still facing the same issue

ETedward avatar Sep 29 '20 21:09 ETedward

What is the solution for this?

DavidPerea avatar Oct 01 '20 14:10 DavidPerea

the same for me. Is there any solution or do you know any other scrapper as good as Twint?

simahashemi avatar Oct 01 '20 16:10 simahashemi

same here! I'm struggling.

Wendy-Chang avatar Oct 02 '20 21:10 Wendy-Chang

same for me..

Tasaqi avatar Oct 07 '20 06:10 Tasaqi

Hi, I would like to use twint package (2.1.20) with Python 3.8 via pycharm IDE and I have gotten 'CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 1.0 secs'. I couldn't find a solution about it. PS: I have already read all posts which are related with this issue.

eabanoz avatar Oct 24 '20 14:10 eabanoz

I'm facing the same issue...

jiwoochoi-kor avatar Oct 25 '20 16:10 jiwoochoi-kor

Any idea to resolve this issue ?

hnodaro avatar Oct 25 '20 18:10 hnodaro

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

himanshudabas avatar Oct 25 '20 19:10 himanshudabas

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Thank you so much !!

hnodaro avatar Oct 25 '20 20:10 hnodaro

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Does this version install the command-line tool as well?

estebanpdl avatar Oct 26 '20 15:10 estebanpdl

@estebanpdl Yes it does!

himanshudabas avatar Oct 26 '20 16:10 himanshudabas

@himanshudabas Great. Just saw the warning about twint.exe. Thanks so much.

estebanpdl avatar Oct 26 '20 16:10 estebanpdl

We need to find a new endpoint. I loaded the site and saw this link New Api link?. It is important to note that if you copy the request and past it to notepad you can see that the request is provided with headers and you can see that it provides a x-csrf-token and x-guest-token which are required. You can find these tokens in the cookie fields "gt" and "ct0".

This is somewhat the official twitter api and you need a bearer token to access this. The bearertoken is provided in the https://abs.twimg.com/responsive-web/client-web/main.6b1bdbc5.js file. Just search for "AAAAAA" and you can find it.

Now you can craft a GET request in postman with the x-csrf-token, the x-guest-token and the bearer token for authentification.

Thank you.

Can you give an example on how to to do it? Can we use the endpoint 'https://twitter.com/search?' with your suggestion?

Thank you

fattoooomah avatar Nov 07 '20 20:11 fattoooomah

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This works!!

YesimSem avatar Jan 06 '21 13:01 YesimSem

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

thank you so much!!! it worked

carlosiruiz avatar Feb 05 '21 01:02 carlosiruiz

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Thank you so much. It worked for me :)

eabanoz avatar Feb 07 '21 10:02 eabanoz

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Does this version install the command-line tool as well?

I have the same question. After reinstallation, I cannot find the command 'twint'. Any body can help me ?

lhfbc avatar Feb 13 '21 13:02 lhfbc

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Does this version install the command-line tool as well?

I have the same question. After reinstallation, I cannot find the command 'twint'. Any body can help me ?

Ubuntu 18.04 Python 3.6.9

lhfbc avatar Feb 13 '21 14:02 lhfbc

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Does this version install the command-line tool as well?

I have the same question. After reinstallation, I cannot find the command 'twint'. Any body can help me ?

Ubuntu 18.04 Python 3.6.9

DONOT uninstall twint, just upgrade will be OK!

lhfbc avatar Feb 13 '21 14:02 lhfbc

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Does this version install the command-line tool as well?

I have the same question. After reinstallation, I cannot find the command 'twint'. Any body can help me ?

Ubuntu 18.04 Python 3.6.9

DONOT uninstall twint, just upgrade will be OK!

Thank youu!!

zelinnn avatar Mar 06 '21 17:03 zelinnn

I'm having the same issue even after installing this one: git+https://github.com/twintproject/twint.git@origin/master#egg=twint

muHashh avatar Mar 09 '21 16:03 muHashh

I'm having the same issue even after installing this one: mgit+https://github.com/twintproject/twint.git@origin/master#egg=twint

Try this sequence once, it worked for me on Google Colab.

!pip install twint !pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint import twint import nest_asyncio c = twint.Config() c.Username = "github" c.Search = "code" nest_asyncio.apply() twint.run.Search(c)

spongycode avatar Mar 10 '21 15:03 spongycode

I got the same issue and the previous solution doesn't work now

aurigandrea avatar Mar 28 '21 17:03 aurigandrea

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Thank you so much !!

This isn't working as of today!

aravind-naidu avatar Mar 30 '21 09:03 aravind-naidu

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

This worked. In case it throws an error in a virtual environment, run again without --user

waynemaranga avatar Apr 04 '21 11:04 waynemaranga

This worked :)

juheesinghal9 avatar Apr 06 '21 23:04 juheesinghal9

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Thank you, it worked for me!

miadp avatar May 07 '21 09:05 miadp

Jupyter notebook workaround for this issue:

!pip3 uninstall twint -y
!pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Then continue as usual

import twint
import nest_asyncio
nest_asyncio.apply()

c = twint.Config()
c.Search = "code"
c.Limit = 10

twint.run.Search(c)

EDIT: This somehow doesn't work in Colab. Use Kaggle Notebook instead. You only need to install the package anyway, no need to uninstall it first. So the script will look like this

!pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
import twint
import nest_asyncio
nest_asyncio.apply()

c = twint.Config()
c.Search = "code"
c.Limit = 10

twint.run.Search(c)

wildangunawan avatar May 07 '21 15:05 wildangunawan

after installing the new one, I am getting

~/.local/lib/python3.7/site-packages/twint/format.py in Tweet(config, t) 21 output = output.replace("{hashtags}", ",".join(t.hashtags)) 22 output = output.replace("{cashtags}", ",".join(t.cashtags)) ---> 23 output = output.replace("{replies}", t.replies_count) 24 output = output.replace("{retweets}", t.retweets_count) 25 output = output.replace("{likes}", t.likes_count)

TypeError: replace() argument 2 must be str, not int

debjyoti003 avatar May 12 '21 08:05 debjyoti003

Is there any specification for installing it on ubuntu?

debjyoti003 avatar May 13 '21 13:05 debjyoti003

Is there any specification for installing it on ubuntu?

I have no problem installing it on Ubuntu 16.04 under Conda environtment. I used this command:

pip install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

wildangunawan avatar May 14 '21 04:05 wildangunawan

I got the same issue and the previous solution doesn't work now

create a new virtual environment in anaconda and install python 3.6 in there. conda create -n yourenvname python=3.6 anaconda Then, follow these steps:-

git clone https://github.com/twintproject/twint.git cd twint pip3 install . -r requirements.txt pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Then try to run the script:-

!pip install nest_asyncio import nest_asyncio nest_asyncio.apply()

import twint config = twint.Config() config.Search = "Dogecoin" config.Limit = 10 config.Store_csv = True config.Output = "doge.csv" twint.run.Search(config)

vesuvius13 avatar May 15 '21 17:05 vesuvius13

Hi everyone, when I run the following command:

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Does it work on MAC OS? I have been trying to use it since 2019

romellfudi avatar May 25 '21 12:05 romellfudi

Hi everyone, when I run the following command:

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Does it work on MAC OS? I have been trying to use it since 2019

@romellfudi Yes it works on my macOS. It gave me error message at the beginning but after I deleted the "--user" part it works

lemiemie avatar May 26 '21 19:05 lemiemie

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

thank you so much!!! it worked

worked for me

zachlagden avatar Aug 11 '21 08:08 zachlagden

Me Too ^-^

hglite69 avatar Aug 15 '21 06:08 hglite69

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

thank you so much!!! it worked

Also worked for me, as of September 2021

jpblopez avatar Sep 18 '21 00:09 jpblopez

^ This worked for me too!

asdrubalivan avatar Oct 27 '21 02:10 asdrubalivan

upgrading twint works.

tsaaii avatar Nov 24 '21 23:11 tsaaii

pip3 uninstall twint

@tsaaii can you normally scrape all the tweets without encountering limit/date constraints? Thanks!

yehfanju avatar Nov 25 '21 05:11 yehfanju

it limits tweets on time line as mentioned in documentation. I haven't seen any date constraints so far.

tsaaii avatar Nov 25 '21 14:11 tsaaii

@tsaaii Thanks for your reply! Did you clone the git repo as well or just pips upgrade? I can only get a few tweets after uninstall and reinstall.

yehfanju avatar Nov 25 '21 16:11 yehfanju

clone the repo first, upgrade it next. It works for me. Make sure python version is 3.6.

tsaaii avatar Nov 25 '21 17:11 tsaaii

@tsaaii Thanks! the 3.6 version and upgrade works for me but only for the latest tweets. Twint does not return anything when specifying since and until. Just want to know if you also cannot retrieve historical tweets or it's just me!

yehfanju avatar Nov 25 '21 20:11 yehfanju

This issue fixed after running this command: pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

However, following this upgrade, it resumed collect briefly (16 tweets recovered then the following print out before the error:

[!] No more data! Scraping will stop now. found 0 deleted tweets in this search.

RefreshTokenException Traceback (most recent call last) /var/folders/7z/866jzymn52zcbnymflj7xhbw0000gn/T/ipykernel_6392/906502173.py in 7 filename = str(str(target)+".csv") 8 c.Output = filename ----> 9 twint.run.Search(c)

~/.local/lib/python3.8/site-packages/twint/run.py in Search(config, callback) 408 config.Followers = False 409 config.Profile = False --> 410 run(config, callback) 411 if config.Pandas_au: 412 storage.panda._autoget("tweet")

~/.local/lib/python3.8/site-packages/twint/run.py in run(config, callback) 327 raise 328 --> 329 get_event_loop().run_until_complete(Twint(config).main(callback)) 330 331

~/.local/lib/python3.8/site-packages/twint/run.py in init(self, config) 34 # USAGE : to get a new guest token simply do self.token.refresh() 35 self.token = token.Token(config) ---> 36 self.token.refresh() 37 self.conn = db.Conn(config.Database) 38 self.d = datelock.Set(self.config.Until, self.config.Since)

~/.local/lib/python3.8/site-packages/twint/token.py in refresh(self) 67 else: 68 self.config.Guest_token = None ---> 69 raise RefreshTokenException('Could not find the Guest token in HTML')

RefreshTokenException: Could not find the Guest token in HTML

olivermj3 avatar Dec 30 '21 00:12 olivermj3

已收到您的邮件,会尽快回复

fwgood avatar Dec 30 '21 00:12 fwgood

!pip install twint !pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint import twint import nest_asyncio c = twint.Config() c.Username = "github" c.Search = "code" nest_asyncio.apply() twint.run.Search(c)

Hey all... I am having this problem now in Dec 2021. I have tried all the fixes, but none worked for me. I used Google Cloud Shell and I was able to get twint to work, but then I was getting the same errors.

I was wondering how to use the above date? Do I run it on the command line? Just wondering.

Thanks.

rangersmyth74 avatar Dec 30 '21 06:12 rangersmyth74

I am facing the same issue ..I have tried all the solutions. Can anyone help me

machlovi avatar Feb 01 '22 19:02 machlovi

已收到您的邮件,会尽快回复

fwgood avatar Feb 01 '22 19:02 fwgood

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Thank you very much Himanshu! Was really struggling with this.

ArshdeepSandhu avatar Feb 22 '22 11:02 ArshdeepSandhu

I am facing the same issue ..I have tried all the solutions. Can anyone help me

Have you tried what Himanshu suggested?

ArshdeepSandhu avatar Feb 22 '22 11:02 ArshdeepSandhu

@eabanoz @jiwoochoi-kor @hnodaro Uninstall the previous installation of twint using the following command

pip3 uninstall twint

And then reinstall twint using the following command

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

This should work.

Thank you very much Himanshu! Was really struggling with this.

This worked for me! Thanks.

skswldndi avatar Mar 14 '22 07:03 skswldndi

已收到您的邮件,会尽快回复

fwgood avatar Mar 14 '22 07:03 fwgood

@eabanoz @jiwoochoi-kor @hnodaro Aşağıdaki komutu kullanarak önceki twint kurulumunu kaldırın

pip3 uninstall twint

Ardından aşağıdaki komutu kullanarak twint'i yeniden yükleyin

pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Bu çalışmalı.

Himanshu'ya çok teşekkür ederim! Bu konuda gerçekten zorlanıyordu.

this didn't work for me

palavaryunusemre avatar Apr 04 '22 14:04 palavaryunusemre

已收到您的邮件,会尽快回复

fwgood avatar Apr 04 '22 14:04 fwgood

已收到您的邮件,会尽快回复

thanks

palavaryunusemre avatar Apr 04 '22 14:04 palavaryunusemre