• version2.3.1 bbc2209796

    version2.3.1 Stable

    kerem released this 2025-02-06 18:27:19 +03:00 | 10 commits to main since this release

    📅 Originally published on GitHub: Thu, 06 Feb 2025 15:56:18 GMT
    🏷️ Git tag created: Thu, 06 Feb 2025 15:27:19 GMT

    Version 2.3.1

    The method for solving ui_metrics has been changed. Previously, it relied on node.js and jsdom, but now it uses Js2Py instead, eliminating the need for node.js.
    (For more details about ui_metrics, refer to the v2.3.0 release page.)

    Additionally, the default of the enable_ui_metrics argument in Client.login has been changed to True.

    The new version has been tested and confirmed to work on Python 3.10, 3.11, 3.12, and 3.13, but please let us know if you encounter any errors.

    Downloads
  • version2.3.0 bd2aa7b2ff

    version2.3.0 Stable

    kerem released this 2025-02-04 21:07:29 +03:00 | 19 commits to main since this release

    📅 Originally published on GitHub: Tue, 04 Feb 2025 18:40:13 GMT
    🏷️ Git tag created: Tue, 04 Feb 2025 18:07:29 GMT

    Version 2.3.0

    Major Updates

    1. Changes to Tweet.media

    Previously, Tweet.media directly stored the response returned by the API. Starting from v2.3.0, it now returns a list containing instances of the newly introduced Photo, AnimatedGif, and Video classes. This makes media downloads easier, and for Video, subtitle downloads are also supported.

    https://twikit.readthedocs.io/en/latest/twikit.html#twikit.tweet.Tweet.media
    https://github.com/d60/twikit/blob/main/examples/download_tweet_media.py

    2. Added cookies_file argument to Client.login

    This parameter simplifies saving and loading cookies. Previously, you had to write:

    if os.path.exists('cookies.json'):
        client.load_cookies('cookies.json')
    else:
        await client.login(
            auth_info_1=...,
            auth_info_2=...,
            password=...
        )
        client.save_cookies('cookies.json')
    

    Now, you can just write:

    await client.login(
        auth_info_1=..., 
        auth_info_2=..., 
        password=..., 
        cookies_file='cookies.json',
    )
    

    https://twikit.readthedocs.io/en/latest/twikit.html#twikit.client.client.Client.login

    3. Added enable_ui_metrics argument to Client.login

    When set to True, the obfuscated ui_metrics function is executed using JSDom, and the result is sent to the API. Enabling this might reduce the risk of account suspension. To use this feature, Node.js and JSDom must be installed. If Node.js is available in your environment, enabling this option is recommended.

    Usage:

    await client.login(
        auth_info_1=a1,
        auth_info_2=a2,
        password=password,
        cookies_file='cookies.json',
        enable_ui_metrics=True
    )
    

    https://twikit.readthedocs.io/en/latest/twikit.html#twikit.client.client.Client.login

    Downloads
  • version2.2.2 6418e7d579

    version2.2.2 Stable

    kerem released this 2025-01-29 17:57:38 +03:00 | 29 commits to main since this release

    📅 Originally published on GitHub: Wed, 29 Jan 2025 15:04:31 GMT
    🏷️ Git tag created: Wed, 29 Jan 2025 14:57:38 GMT

    • Implemented transaction ID in guest client requests and fixed 404 error
    • Removed the dependency on requests (https://github.com/d60/twikit/pull/270)
    • Fixed a bug in login with TOTP
    • Added Tweet.bookmark_count and Tweet.bookmarked
    Downloads
  • version2.2.0 72aabefa03

    version2.2.0 Stable

    kerem released this 2024-12-01 06:42:34 +03:00 | 37 commits to main since this release

    📅 Originally published on GitHub: Sun, 01 Dec 2024 03:55:38 GMT
    🏷️ Git tag created: Sun, 01 Dec 2024 03:42:34 GMT

    Version 2.2.0

    • Implemented transaction id.
    • Fixed error in create_tweet.
    • Fixed login error (flow name LoginFlow is currently not accessible).

    python -m pip install -U twikit -U lxml

    Downloads
  • version2.1.3 6d19016f78

    version2.1.3 Stable

    kerem released this 2024-08-23 18:11:28 +03:00 | -406 commits to main since this release

    📅 Originally published on GitHub: Fri, 23 Aug 2024 15:14:55 GMT
    🏷️ Git tag created: Fri, 23 Aug 2024 15:11:28 GMT

    Version 2.1.3

    • Fixed KeyError: 'open_account'"
    • flow name LoginFlow is currently not accessible has not yet been fixed.
    Downloads