Skip to main content

Python library to retrieve tweet data without consuming the API or using your X account.

Project description

tweet_fetcher

tweet_fetcher is a Python library to retrieve tweet data without consuming the API or using your X account.

Installation

You can install the package using pip:

pip install tweet_fetcher

Usage

Here's an example of how to use the library:

from tweet_fetcher import get_tweet_data

tweet_data = get_tweet_data("1465392570310217728")
print(tweet_data)

Methods

  • get_tweet_data(tweet_id_or_url) Retrieve tweet data given its ID (int or str) or URL.

Parameters:

  • tweet_id_or_url (str): The tweet ID (as int or str) or URL.

Returns:

  • dict: The tweet data in JSON format.

Example:

from tweet_fetcher import get_tweet_data

tweet_data = get_tweet_data("https://x.com/valen_vila00/status/1465392570310217728")
print(tweet_data)

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Me.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tweet_fetcher-1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tweet_fetcher-1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file tweet_fetcher-1.0.tar.gz.

File metadata

  • Download URL: tweet_fetcher-1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tweet_fetcher-1.0.tar.gz
Algorithm Hash digest
SHA256 c8d27f0587aec9020a20f5f14b67dd9e7d3aae4c44ea06d83b33b2b4b973a778
MD5 73d92df56833e64cf7552debe65578e3
BLAKE2b-256 97af60ab50a9f3e27b974036619d35fee7827d0734cfa1d1abf432812f8b076d

See more details on using hashes here.

File details

Details for the file tweet_fetcher-1.0-py3-none-any.whl.

File metadata

  • Download URL: tweet_fetcher-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tweet_fetcher-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f00e60cc90d162851f57145e74e2fba1b92ecb3ba442d9614198100077c2044
MD5 098c1d9f34d24548486f2eb70d8346b4
BLAKE2b-256 46a087458472090f0d944e41a5228503d5e6068fb87cc33ea6c732a62589b28c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page