Snscrape twitter
SnscrapeTwitterReader #
Bases: BaseReader
SnscrapeTwitter reader. Reads data from a twitter profile.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username
|
str
|
Twitter Username. |
required |
num_tweets
|
int
|
Number of tweets to fetch. |
required |
Source code in llama-index-integrations/readers/llama-index-readers-snscrape-twitter/llama_index/readers/snscrape_twitter/base.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
load_data #
load_data(username: str, num_tweets: int) -> List[Document]
Load data from a twitter profile.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username
|
str
|
Twitter Username. |
required |
num_tweets
|
int
|
Number of tweets to fetch. |
required |
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]: List of documents. |
Source code in llama-index-integrations/readers/llama-index-readers-snscrape-twitter/llama_index/readers/snscrape_twitter/base.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|