Comments (14)
-
install twint (need install git) , dont't use pip install twint command.
pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
-
get file path
python.exe -c "import twint;print(twint.__file__);"
-
replace token.py file
https://gist.github.com/moxak/ed83dd4169112a0b1669500fe855101a
from twint.
After replacing the token.py file, twint can work normally
from twint.
I have the same issue:
RefreshTokenException: Could not find the Guest token in HTML
from twint.
Has the issue been resolved?
from twint.
also have this error: twint.token.RefreshTokenException: Could not find the Guest token in HTML
from twint.
replacing token.py with what? thanks
from twint.
wow ok many thanks. sorry tired & missed your link to the comment there.
from twint.
does it work? because from 28 feb 2023 it always return Raising Exception Could not find the Guest token in HTML
from twint.
it appears to be working, yes. had to change token.py file.
from twint.
I still having error
RefreshTokenException Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_8280\828474447.py in <module>
4 c.Pandas=True
5 c.Lang = "id"
----> 6 twint.run.Search(c)
~\AppData\Roaming\Python\Python39\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")
~\AppData\Roaming\Python\Python39\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
~\AppData\Roaming\Python\Python39\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)
~\AppData\Roaming\Python\Python39\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
from twint.
I am having the same issue and I have tried replacing token.py
from twint.
I use python3.8.8, I don't know if it will help you
from twint.
I still having error
RefreshTokenException Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_8280\828474447.py in <module> 4 c.Pandas=True 5 c.Lang = "id" ----> 6 twint.run.Search(c) ~\AppData\Roaming\Python\Python39\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") ~\AppData\Roaming\Python\Python39\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 ~\AppData\Roaming\Python\Python39\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) ~\AppData\Roaming\Python\Python39\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
what does your environment setup look like? When I was working with this issue in development I changed the token.py file that was in /venv folder in my project...had to do something else for production
from twint.
I still having error
RefreshTokenException Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_8280\828474447.py in <module> 4 c.Pandas=True 5 c.Lang = "id" ----> 6 twint.run.Search(c) ~\AppData\Roaming\Python\Python39\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") ~\AppData\Roaming\Python\Python39\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 ~\AppData\Roaming\Python\Python39\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) ~\AppData\Roaming\Python\Python39\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
what does your environment setup look like? When I was working with this issue in development I changed the token.py file that was in /venv folder in my project...had to do something else for production
Have you tried replacing the files in the '~\AppData\Roaming\Python\Python39\site-packages\twint' directory?
from twint.
Related Issues (20)
- .Geo and .Near config parameters modify the attribute values of the tweet
- Getting an error with 'tweet' object has no attribute replace
- json syntax error
- CARA ISNTALL TWINT DI TERMUX 1 . Instal Termux: Download file APK resmi dari github. Jangan dari playstore, krn yg di playstorw sudah tdk diurus 2. Update apt termux: apt update apt upgrade 3. Install Package Requirements: pkg install clang git wget curl make openssl vim 4. INSTALL TWINT: Step 1: Git git clone --depth=1 https://github.com/twintproject/twint.git cd twint pip3 install . -r requirements.txt (Khusus di termux, tahap ini tidak berhasil saat installing package pandas 1.4. padahal downloading pandas 1.4 sudah berhasil) Step 2 : pip pip3 install twint Step 3: Memperbaiki ImportError: cannot import name 'CeilTimeout' from 'aiohttp.helpers' : pip install --upgrade aiohttp && pip install --force-reinstall aiohttp-socks
- TWINT ERROR [SOLVED] Step 1: Git git clone --depth=1 https://github.com/twintproject/twint.git cd twint pip3 install . -r requirements.txt Step 2 : pip pip3 install twint Step 3: Memperbaiki ImportError: cannot import name 'CeilTimeout' from 'aiohttp.helpers' : pip install --upgrade aiohttp && pip install --force-reinstall aiohttp-socks
- Getting an ERROR with command: --user-full --timeline --followers --following --favorites --locate
- KeyError: 'legacy'
- Jupyter notebook error [SOLVED] Need to enable nestasyncio before query: import twint import nest_asyncio nest_asyncio.apply() HOT 1
- twint c.Until disabling output being written to file?
- error installing the module HOT 4
- Error when trying to run TWINT HOT 1
- "[!] No more data! Scraping will stop now. found 0 deleted tweets in this search." error while running search HOT 2
- [QUESTION] How long before a tweet can be scraped? Is it instantaneous, or is it only after a certain amount of time?
- #Missing tweets in results HOT 2
- Python versions are not floats HOT 1
- Twint only retrieves a few tweets. HOT 1
- [QUESTION] Pandas can't read newest JSON file format by Twint HOT 2
- [REQUEST] Search for profiles containing string in handle/bio/username
- Error: CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects' when install on VPS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twint.