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.3.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_readers_twitter-0.3.0.tar.gz
Algorithm Hash digest
SHA256 23bc59423fcaa7097a0f496d36e288ed36284150fd94188ce88eb70b6de10b06
MD5 4c0cf180afcb51d90c378d02b360634d
BLAKE2b-256 64ab5df7c11dcc03ba4361d1f2e3a7f0b3e17e1f425974575383794b4e3a11ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_twitter-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff790c8d1511ed66316699d120a7b79b6585deba79ccf7b1a079799546e82ed2
MD5 b7a28a68e34fdd9062c490cfa6df8501
BLAKE2b-256 40dc912c0919214e66ea98fc0ca321011783266e114955eb6967599a8f9e3890

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