Skip to main content

PyTweetToolkit: An intuitive Python library for managing Twitter interactions, providing tools for posting tweets, engaging with users, and analyzing social media metrics. Perfect for automating tasks and integrating Twitter functionality into Python projects.

Project description

PyTweetToolkit

Logo

PyTweetToolkit is an intuitive Python library designed to simplify Twitter interactions, offering tools for posting tweets, engaging with followers, analyzing social media metrics, and automating various Twitter-related tasks. It's perfect for developers looking to integrate Twitter functionality into Python projects or automate their social media presence with ease.

✨ Features

  • 🐦 Tweet Posting: Easily create and post tweets directly from your Python scripts.
  • 🤝 User Engagement: Automate following, unfollowing, blocking, and muting operations.
  • 📊 Analytics: Analyze tweet performance, follower growth, and engagement metrics.
  • 🗓️ Content Automation: Schedule tweets and manage your content strategy programmatically.

🚀 Installation

You can easily install PyTweetToolkit via pip from PyPI:

pip install PyTweetToolkit

Install the latest development version

If you prefer to use the latest development version, you can install it directly from our GitHub repository:

pip install git+https://github.com/DavyJonesCodes/PyTweetToolkit.git

🐍 Supported Python Versions

PyTweetToolkit is compatible with Python versions 3.9 and above. Make sure you have Python 3.9 or higher installed on your system:

python --version

If you need to install a newer version of Python, visit the official Python website for installation instructions.

🔐 Obtaining Authentication Cookies

To use PyTweetToolkit, you'll need to obtain authentication cookies from Twitter's website using your browser's developer tools. Follow these steps:

  1. Login to Twitter: Log in to your Twitter account in your web browser.
  2. Open Developer Tools: Right-click on the page and select "Inspect" to open the developer tools.
  3. Navigate to Application Tab: Go to the "Application" or "Storage" tab in the developer tools.
  4. Find Twitter Cookies: Look for the cookies associated with Twitter (https://twitter.com), especially auth_token and ct0.
  5. Extract Cookie Values: Copy the values of auth_token and ct0.
  6. Use Cookie Values as Tokens: Use these values as auth_token and csrf_token in your Python script.

For detailed usage instructions, refer to the Quick Start section below.

⚡ Quick Start

Here's a quick example to get you started with PyTweetToolkit:

from PyTweetToolkit import PyTweetClient

# Initialize the client with your credentials
client = PyTweetClient(auth_token="YOUR_AUTH_TOKEN", csrf_token="YOUR_CSRF_TOKEN")

# Post a tweet
client.post_tweet("Hello, world! #MyFirstTweet")

# Follow a user
client.follow("python_community")

📚 Documentation

For detailed documentation, including setup guides, examples, and API references, please visit our documentation page.

🤝 Contributions

Contributions are welcome! 🎉 If you'd like to contribute to PyTweetToolkit, feel free to fork the repository and submit a pull request. If you have any questions or need guidance, don't hesitate to contact me at devjonescodes@gmail.com.

📄 License

This project is licensed under the MIT License. For more details, see the LICENSE file.

📬 Support

If you have any questions, suggestions, or run into any issues, feel free to open an issue on our GitHub repository or reach out via email at devjonescodes@gmail.com. We're here to help! 😊

Project details


Download files

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

Source Distribution

pytweettoolkit-1.0.2.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

PyTweetToolkit-1.0.2-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file pytweettoolkit-1.0.2.tar.gz.

File metadata

  • Download URL: pytweettoolkit-1.0.2.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pytweettoolkit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f1cbb972794372652e5aec5cbdca7ae6963e7e77fe47acfafef736bea8b5abaa
MD5 076d7b0d8ef24096880810854eb05b20
BLAKE2b-256 2c49d843d0ac5620aaff4f0346daee53b44f26d2d306a8b6c5c850b73e1df46e

See more details on using hashes here.

File details

Details for the file PyTweetToolkit-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for PyTweetToolkit-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 357fb00a2fb95f2c08a9130749a4a619d54da1233afadeaa9e690b11c86594b2
MD5 a25d4d05f00a0c8dd9cffa1aa242de9a
BLAKE2b-256 38a99ace53e547b891e955d48fbe237cb718d149e27a93cef25e8bc1403703b3

See more details on using hashes here.

Supported by

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