This is a spider for fetch HKEX stock data.
- use scrapy component;
- use scrapyd as a server;
- use scrapyd-client deploy to server.
$ pip install scrapy
$ pip install scrapyd
$ pip install scrapyd-client
$ pip install pymysql
In project root path, execute the following command:
$ scrapyd
$ scrapyd-deploy server -p vsch
$ curl http://localhost:6800/schedule.json -d project=vsch -d spider=hk_capital_spider