llm-twitter
LLM plugin for answering questions about Twitter profiles
Installation
Install this plugin in the same environment as LLM:
llm install llm-twitter
Configuration
Set your Twitter API bearer token as an environment variable:
export TWITTER_BEARER_TOKEN="your_twitter_bearer_token_here"
You can obtain a bearer token by applying for a Twitter Developer account and creating an application at https://developer.twitter.com/
Usage
To use the llm-twitter plugin, run the following command:
llm twitter "Your question about the Twitter profile" --account @username
Options:
--accountor-a: Twitter account (username or @username) - required--no-stream: Do not stream output--force-refreshor-f: Force refresh of the cached profile--modelor-m: Specify a different LLM model to use for the response
Examples:
llm twitter "What is the user's follower count?" --account @openai
llm twitter "Summarize the user's bio" --account @elonmusk --no-stream
llm twitter "What are the main topics this user tweets about?" --account @ylecun --force-refresh
llm twitter "Analyze the user's Twitter presence" --account @google --model gpt-4
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-twitter
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Contributing
Contributions to llm-twitter are welcome! Please refer to the GitHub repository for more information on how to contribute.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Metadata
Release files for llm-twitter 0.1
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 | |
|---|---|---|---|---|
| llm_twitter-0.1.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_twitter-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / llm_twitter-0.1.tar.gz
| Download URL | llm_twitter-0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c058853cb2c83a8470dff997788d99ad0854575be7fe3fbb8367e7580809a81
|
|
BLAKE2b-256 checksum How to use checksums |
046a92593d6bfea14129d3661044eacb10fe87f04ba8d5823c2971dc416b1ced
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / llm_twitter-0.1-py3-none-any.whl
| Download URL | llm_twitter-0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
121c8eedaa7d48d5f573baacfc4e6129adf8c70b61e6b56aa1f48556f97930fb
|
|
BLAKE2b-256 checksum How to use checksums |
772ae346bbf9965e221e55aa4d3f73065fbc46889510132ac1017d9534e07d42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for llm-twitter 0.1
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.