Crawler for CNYes
Project description
AnueCrawler
基於Python語言的鉅亨網爬蟲程式
安裝
pip install AnueCrawler
使用教學
#載入模組
from anuecrawler.news import headline, twstock, wdstock, blockchain
API名稱 | 說明 |
---|---|
headline | 頭條新聞 |
twstock | 台股新聞 |
wdstock | 國際股市 |
blockchain | 區塊鏈 |
#抓取當天資料
hd = headline
#指定日期範圍
hd.browse('2021-1-1','2021-1-3')
#擷取指定資料(依據鉅亨網API)
hd.query(['publishAt','title'])
#將結果輸出至CSV格式檔案(名稱可留空,預設Output.csv)
hd.query(['publishAt','title']).to_csv('Output.csv')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
AnueCrawler-1.0.2.tar.gz
(14.2 kB
view details)
File details
Details for the file AnueCrawler-1.0.2.tar.gz
.
File metadata
- Download URL: AnueCrawler-1.0.2.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd7cec9256d1f1295d667684f64db21b9fd8c25b73bb75333373d64666a2ba4 |
|
MD5 | 02ca80ba97a5ea8a8ca2aad64597eb02 |
|
BLAKE2b-256 | 9788f3d791eb0ea4fbbf1ecdcca302fca364ba21cca1567d6d8225913c202748 |