Skip to main content

llama-index readers snscrape_twitter integration

Project description

Snscrape twitter Loader

pip install llama-index-readers-snscrape-twitter

This loader loads documents from Twitter using the Snscrape Python package.

Usage

Here's an example usage of the SnscrapeReader.

import os

from llama_index.readers.snscrape_twitter import SnscrapeTwitterReader

loader = SnscrapeReader()
documents = loader.load_data(username="elonmusk", num_tweets=10)

This loader is designed to be used as a way to load data into LlamaIndex.

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

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