Skip to content

Commit

Permalink
Script utk cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
wildangunawan committed Jan 22, 2021
1 parent d6a4f39 commit c9095fb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions daily.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# hapus saham-saham LQ45
# agar listnya selalu update
# hanya dgn mengupdate LQ45.csv
rm data/saham/LQ45/*

# date hari ini
date_today=$(date +'%d %B %Y')

# jalanin script
# utk update emiten
# dan data emiten
python3 get-list-emiten.py
python3 get-data-harian-emiten.py
18 changes: 18 additions & 0 deletions first-time.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# make folder
mkdir -p "data/List Emiten"
mkdir -p "data/saham/semua"
mkdir -p "data/saham/LQ45"

# install requirements
pip3 install -r requirements.txt

# kaggle env
export KAGGLE_USERNAME=
export KAGGLE_KEY=

# get metadata
kaggle datasets metadata -p data tiwill/saham-lq45-idx

# start script
python3 get-list-emiten.py
python3 get-data-tahunan-emiten.py

0 comments on commit c9095fb

Please sign in to comment.