https://github.com/previsionio/component-twitter-parser
Parse twitter user content
https://github.com/previsionio/component-twitter-parser
Last synced: about 1 year ago
JSON representation
Parse twitter user content
- Host: GitHub
- URL: https://github.com/previsionio/component-twitter-parser
- Owner: previsionio
- Created: 2022-01-25T16:43:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T11:32:45.000Z (over 4 years ago)
- Last Synced: 2025-01-27T12:21:18.154Z (over 1 year ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter listener
A component that get tweet from a list of twitter username. You can use it in [Prevision Pipeline System](https://previsionio-previsionio.readthedocs-hosted.com/en/latest/studio/pipelines.html#pipeline-components)
## Pre-req
You need a twitter dev account ( or ask for a token ).
## Setup
local dev :
```
python3.8 -m venv env
source env/bin/activate
pip install -r requirements.txt
```
(*Warning : use python 3.8 because this component use dataclasses*)
Launch your script to test
```
python src/main.py --src politics_account.csv --dst output.csv --token
```
If everything is ok you should have an `output.csv` file with a `speech` column. You can now proceed on
[installing your component](https://previsionio-previsionio.readthedocs-hosted.com/en/latest/studio/pipelines.html#pipeline-components)