iT邦幫忙

1

python爬取圖表的資料

ddx 2021-09-13 15:55:52803 瀏覽

我想爬取台電裡面的用電量分析
我用selenium來爬取,但是資料是圖表
https://ithelp.ithome.com.tw/upload/images/20210913/20139213NQHOqRYHXf.png
後來去看了一下network
https://ithelp.ithome.com.tw/upload/images/20210913/20139213xblD8wJRXW.png
他那裡面的網址https://hvcs.taipower.com.tw/Portal/Chart/RawDataQuarter
由於是用POST傳出去的所以我直接進入的話會錯誤
我該怎麼做才能爬取到圖表的資料呢?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
2
nlstudio
iT邦新手 2 級 ‧ 2021-09-13 16:05:28
ddx iT邦研究生 5 級 ‧ 2021-09-14 09:22:38 檢舉

我找到答案了,感謝回答

1
丹尼派森
iT邦新手 5 級 ‧ 2021-09-13 16:43:35
ddx iT邦研究生 5 級 ‧ 2021-09-14 09:22:42 檢舉

我找到答案了,感謝回答

1
bsexp301479
iT邦新手 3 級 ‧ 2021-09-13 17:40:33

看post傳入哪些參數
照它傳的參數一起post過去到資料頁
看能不能接到值回來

ddx iT邦研究生 5 級 ‧ 2021-09-14 09:22:47 檢舉

我找到答案了,感謝回答

我要發表回答

立即登入回答