Skip to content

Commit

Permalink
Merge 188f523 into 546d585
Browse files Browse the repository at this point in the history
  • Loading branch information
bluewings1211 committed Aug 12, 2019
2 parents 546d585 + 188f523 commit 8ec5275
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.6

RUN pip install twstock lxml requests

ENTRYPOINT ["twstock"]
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ twstock 台灣股市股票價格擷取

* requests
* Python 3
* lxml

## Install

Expand Down Expand Up @@ -77,6 +78,32 @@ low : 15.8 16.1 15.15 16.3 16.25
price: 15.95 16.25 16.25 16.6 16.7
```

## Container CLI Tools

### Build twstock_cli Image
```
$ git clone https://github.com/mlouielu/twstock
$ cd twstock
$ docker build . -t twstock_cli
```

### Run Container as CLI

```
$ docker run --rm testtwstock -b 2330
四大買賣點判斷 Best Four Point
------------------------------
2330: Buy 量大收紅, 三日均價由下往上
```

```
$ docker run --rm testtwstock -s 2330
-------------- 2330 ----------------
high : 253.5 252.0 250.0 250.5 254.0
low : 250.5 245.5 240.0 246.5 248.0
price: 251.5 246.5 248.5 248.0 253.5
```

## Update Codes

當你第一次使用 twstock 時,你可以更新 TPEX 跟 TWSE 的列表,可以使用兩種方式更新:
Expand Down

0 comments on commit 8ec5275

Please sign in to comment.