mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-08-13 03:01:46 +00:00
Snscrape twitter Loader
This loader loads documents from Twitter using the Snscrape Python package.
Usage
Here's an example usage of the SnscrapeReader.
from llama_index import download_loader
import os
SnscrapeReader = download_loader("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 and/or subsequently used as a Tool in a LangChain Agent. See here for examples.