PyTweetToolkit
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:
- Login to Twitter: Log in to your Twitter account in your web browser.
- Open Developer Tools: Right-click on the page and select "Inspect" to open the developer tools.
- Navigate to Application Tab: Go to the "Application" or "Storage" tab in the developer tools.
- Find Twitter Cookies: Look for the cookies associated with Twitter (
https://twitter.com), especiallyauth_tokenandct0. - Extract Cookie Values: Copy the values of
auth_tokenandct0. - Use Cookie Values as Tokens: Use these values as
auth_tokenandcsrf_tokenin 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! 😊
Metadata
Release files for PyTweetToolkit 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytweettoolkit-1.0.2.tar.gz | 30.7 kB | Without provenance | Details for pytweettoolkit-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyTweetToolkit-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for PyTweetToolkit-1.0.2-py3-none-any.whl |
Total release size: 72.0 kB
Release files / pytweettoolkit-1.0.2.tar.gz
| Download URL | pytweettoolkit-1.0.2.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1cbb972794372652e5aec5cbdca7ae6963e7e77fe47acfafef736bea8b5abaa
|
|
BLAKE2b-256 checksum How to use checksums |
2c49d843d0ac5620aaff4f0346daee53b44f26d2d306a8b6c5c850b73e1df46e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / PyTweetToolkit-1.0.2-py3-none-any.whl
| Download URL | PyTweetToolkit-1.0.2-py3-none-any.whl |
|---|---|
| Size | 41.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
357fb00a2fb95f2c08a9130749a4a619d54da1233afadeaa9e690b11c86594b2
|
|
BLAKE2b-256 checksum How to use checksums |
38a99ace53e547b891e955d48fbe237cb718d149e27a93cef25e8bc1403703b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for PyTweetToolkit 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.