-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.01 KB
/
collect-tweet.yml
1
2
3
4
5
6
7
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
40
41
42
43
44
name: Collect Tweets
on:
schedule:
- cron: "00 00 * * *"
jobs:
update:
name: Collect Tweets
runs-on: ubuntu-latest
env:
COOKIE: ${{ secrets.COOKIE }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -U minet
- name: Scrape tweets
run: minet twitter scrape tweets 'from:medialab_ScPo' --limit 50 --cookie "${COOKIE}" > data/medialab_tweets.csv
- name: Check
run : ls data
- name: Commit enrichment
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add data
git pull
git commit -m "update data" data
git push