Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
./install.sh
스크립트 기능
초기 셋업을 위한 쉘 스크립트입니다.
newways
를 생성하고 활성화~/API-scrap-and-analysis/requirements.txt
에 명시된 필요한 패키지들을 설치Prerequisites
/usr/local/bin/
에 설치하기 위해sudo
권한 필요Usage
cd ~ && git clone https://github.com/NewWays-TechForImpactKAIST/API-scrap-and-analysis.git
cd ~/API-scrap-and-analysis && chmod +x ./install.sh
./install.sh
./run_scrap_scripts.sh
스크립트 기능
CRON잡을 위해 실행할 스크립트입니다. 지방의회 및 광역의회에 대한 크롤링을 진행하고 MongoDB에 저장합니다.
Prerequisites
API-scrap-and-analysis
레포 디렉토리가~
에 있는 것을 가정하고 있습니다../install.sh
를 이용하여)newways
라는 virtal env를 생성하고,requirements.txt
의 패키지를 설치Usage
cd ~/API-scrap-and-analysis && chmod +x ./run_scrap_scripts.sh
./run_scrap_scripts.sh
CRON잡 추가 (ft. ChatGPT)
To set up a CRON job to run this script once a week, you need to edit the crontab file:
crontab -e
to edit the crontab for your user.0 3
means 3:00 AM.*
means every day of the month.*
means every month.*
means every day of the week.0
represents Sunday.