[問題] 關於台鐵的網頁
想在電腦上實踐訂火車票的軟體
以下是我的程式碼
import requests
url = 'http://railway.hinet.net/ctno1.htm'
url2 = 'http://railway.hinet.net/check_ctno1.jsp'
s = requests.session()
ctno1 = {....訂票資訊和基本資料省略....}
s.post(url,ctno1)
res = s.post(url2)
print res.text
但是一直跑出wrong procedure
去看了一下他的網頁好像是他設計的關係
要怎麼做才可以POST到訂票頁之後再接到後面的JSP呢
跪求各位大大
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.240.163.40
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1450108548.A.4D7.html
→
12/15 01:20, , 1F
12/15 01:20, 1F
→
12/15 01:21, , 2F
12/15 01:21, 2F
→
12/15 03:37, , 3F
12/15 03:37, 3F
Python 近期熱門文章
PTT數位生活區 即時熱門文章