tweet_fetcher is a Python library to retrieve tweet data without consuming the API or using your X account.
You can install the package using pip:
pip install tweet_fetcher
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)
- get_tweet_data(tweet_id_or_url) Retrieve tweet data given its ID (int or str) or URL.
- tweet_id_or_url (str): The tweet ID (as int or str) or URL.
- dict: The tweet data in JSON format.
from tweet_fetcher import get_tweet_data
tweet_data = get_tweet_data("https://x.com/valen_vila00/status/1465392570310217728")
print(tweet_data)
This project is licensed under the MIT License. See the LICENSE file for details.
Me.