Skip to main content

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

llama_index_readers_twitter-0.4.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_twitter-0.4.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_twitter-0.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_twitter-0.4.1.tar.gz
Algorithm Hash digest
SHA256 7b8cd8c28a4cedbd5688d20d1d4dc38676350cfa3b9cc70833f072992d63d2a4
MD5 fb66fe7ba7e404a852db4e900766362b
BLAKE2b-256 93ab26ac4a738a1aa48c6a6ee2e4455cc8aeab831abd0ba4bb440d6fc07a42c9

See more details on using hashes here.

File details

Details for the file llama_index_readers_twitter-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_twitter-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f5dc86d27593156b6be4b10052297fb2bc523a4b07dabb266dffb9bff9da6f5
MD5 62ea03af046ba99f495cc34e52cbc3a9
BLAKE2b-256 854aa6562ab669c6abebcf6aada75478f5fb35fcf6bf258ed24dd70ce5e9d43b

See more details on using hashes here.

Supported by

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