Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 30, 2023. It is now read-only.
/twintPublic archive
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

[ERROR] twint.token.RefreshTokenException: Could not find the Guest token in HTML #1433

Open
@michaelmoreno

Description

@michaelmoreno

Attempting to run a trivial user search

importtwintc=twint.Config()c.Username="elonmusk"c.User_full=Truec.Store_object=Truec.Hide_output=Truetwint.run.Lookup(c)

Raising ExceptionCould not find the Guest token in HTML

Traceback (most recent call last):  File"/Users/michaelmoreno/proj/twitter-api/src/main.py", line 20,in<module>    twint.run.Lookup(c)  File"/Users/michaelmoreno/proj/twitter-api/venv/src/twint/twint/run.py", line 386,in Lookup    run(config)  File"/Users/michaelmoreno/proj/twitter-api/venv/src/twint/twint/run.py", line 329,in runget_event_loop().run_until_complete(Twint(config).main(callback))                                        ^^^^^^^^^^^^^  File"/Users/michaelmoreno/proj/twitter-api/venv/src/twint/twint/run.py", line 36,in __init__self.token.refresh()  File"/Users/michaelmoreno/proj/twitter-api/venv/src/twint/twint/token.py", line 69,in refresh    raise RefreshTokenException('Could not find the Guest token in HTML')twint.token.RefreshTokenException: Could not find the Guest tokenin HTML

Python Version: 3.11
pip version: 23.0.1
twint version: 2.1.21
OS: MacOS Montery 12.6 (M2)

I have tried installing twint both throughpip install twint andpip install --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Output ofpip list

aiodns             3.0.0aiohttp            3.8.4aiohttp-socks      0.8.0aiosignal          1.3.1async-timeout      4.0.2attrs              22.2.0beautifulsoup4     4.11.2bs4                0.0.1cchardet           2.1.7certifi            2022.12.7cffi               1.15.1charset-normalizer 3.0.1Cython             0.29.33dataclasses        0.6elastic-transport  8.4.0elasticsearch      8.6.2fake-useragent     1.1.1frozenlist         1.3.3geographiclib      2.0geopy              2.3.0googletransx       2.4.2idna               3.4multidict          6.0.4numpy              1.24.2pandas             1.5.3pip                23.0.1pycares            4.3.0pycparser          2.21PySocks            1.7.1python-dateutil    2.8.2python-socks       2.1.1pytz               2022.7.1requests           2.28.2schedule           1.1.0setuptools         67.4.0six                1.16.0soupsieve          2.4twint              2.1.21    /Users/michaelmoreno/proj/twitter-api/venv/src/twinturllib3            1.26.14yarl               1.8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp