llama-hub/loader_hub/snscrape_twitter
2023-05-23 22:12:37 -07:00
..
2023-05-22 20:53:56 -07:00
2023-05-22 20:53:56 -07:00
2023-05-23 22:12:37 -07:00
2023-05-22 20:53:56 -07: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.