Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tweet-fetcher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tweet-fetcher

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

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc