llama-index readers twitter integration
Project description
LlamaIndex Readers Integration: TwitterTweet
Overview
The TwitterTweet Reader allows you to read tweets of a specified Twitter handle. It retrieves tweets from Twitter using the Twitter API.
Installation
You can install the TwitterTweet Reader via pip:
pip install llama-index-readers-twitter
Check Twitter API on how to get access to twitter API.
Usage
from llama_index.readers.twitter import TwitterTweetReader
# Initialize TwitterTweetReader
reader = TwitterTweetReader(
bearer_token="<Twitter Bearer Token>", num_tweets=100
)
# Load tweets of user twitter handles
documents = reader.load_data(twitterhandles=["user1", "user2"])
This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.
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
Built Distribution
File details
Details for the file llama_index_readers_twitter-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_twitter-0.3.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23bc59423fcaa7097a0f496d36e288ed36284150fd94188ce88eb70b6de10b06 |
|
MD5 | 4c0cf180afcb51d90c378d02b360634d |
|
BLAKE2b-256 | 64ab5df7c11dcc03ba4361d1f2e3a7f0b3e17e1f425974575383794b4e3a11ac |
File details
Details for the file llama_index_readers_twitter-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_twitter-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff790c8d1511ed66316699d120a7b79b6585deba79ccf7b1a079799546e82ed2 |
|
MD5 | b7a28a68e34fdd9062c490cfa6df8501 |
|
BLAKE2b-256 | 40dc912c0919214e66ea98fc0ca321011783266e114955eb6967599a8f9e3890 |