Skip to content

Commit 97ed4a9

Browse files
committed
feature: 데이터 스크레이핑 gitaction 추가
1 parent 8b58873 commit 97ed4a9

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/worker_main.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: run main.py
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: "*/15 * * * *" # 15분 마다
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout repo content
15+
uses: actions/checkout@v2
16+
17+
- name: setup python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.10"
21+
22+
- name: install python packages
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install aiohttp
26+
pip install motor
27+
pip install pydantic
28+
pip install pytz
29+
pip install aiohttp-retry
30+
pip install python-dotenv
31+
32+
- name: execute data scrapping
33+
env:
34+
DB_URL: ${{ secrets.DB_URL }}
35+
PERIOD_MIN: ${{ secrets.PERIOD_MIN }}
36+
37+
run: python main.py

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![](./nginx/pages/imgs/velog-dashboard-thumnail.png)
2+
13
# Velog Dashboard Project
24

35
> velog dashboard project, ***velog의 모든 게시글, 통계 데이터를 한 눈에 편하게 확인하자!!*** </br>

0 commit comments

Comments
 (0)