[問題] 證交所三大法人買賣超爬蟲(已解決)

作者: interwise613 (BG蔚)   2019-09-27 00:10:04
各外大大晚安
小弟不久前問了一個問題但現在又有一個新問題 囧
我想抓外資的買賣超數據,以下是我的程式碼
qdate = '20190925'
qtype = 'ALLBUT0999'
ttime = str(int(time.time()*100))
url = 'https://www.twse.com.tw/fund/BFI82U?response=json&dayDate={}&type={}&_=
{}
res_post = requests.get(url)
data=res_post.json()
data['data']
output:
[['自營商(自行買賣)', '923,673,610', '2,637,661,370', '-1,713,987,760'],
['自營商(避險)', '3,488,358,985', '4,047,547,773', '-559,188,788'],
['投信', '1,783,511,471', '1,825,161,986', '-41,650,515'],
['外資及陸資', '28,088,755,132', '31,207,973,404', '-3,119,218,272'],
['合計', '34,284,299,198', '39,718,344,533', '-5,434,045,335']]
而官網的數據為
https://imgur.com/NnXsy13
為何少了外資自營商呢 百思不得其解
希望有好心人可以幫忙解惑~感謝~
作者: totte (totte)   2019-09-27 19:01:00

Links booklink

Contact Us: admin [ a t ] ucptt.com