Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Takaaki Tanaka authored and Takaaki Tanaka committed Nov 5, 2017
1 parent 7829d79 commit 57b4e2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Zaim.net の家計簿データを定期的にスクレイプしてきて、elast
## Getting Started

自身のZaim.netのID,PASS,スクレイピングしたい家計簿データの開始日を書き込んだconfig.ymlファイルを作り、dockerコンテナを起動する。

```{bash}
$ echo 'ID: "your_user_id"' > py_scraping/app/config.yml
$ echo 'PASS: "your_password"' >> py_scraping/app/config.yml
Expand All @@ -15,6 +16,12 @@ $ docker-compose up -d
$ docker-compose logs
```

スケジュールされたジョブが上手く実行できない場合、dagのstart_dateを修正する。

```{bash}
$ date=`date +"%Y, %m, %-d, 00, 00, 00"` && sed -i '' 's/datetime.today()/datetime('$date')/g' py_scraping/dags/zaim.py
```

http://localhost:8080 でairflowにアクセス。

![system_config](images/airflow_image.png)
Expand Down

0 comments on commit 57b4e2f

Please sign in to comment.