看板 Python 關於我們 聯絡資訊
我目前有一個網址,是經過縮址後的結果…… http://goo.gl/7901H5 我要怎麼取得它的原址呢? 求教大神…… -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.136.228.199
kilfu0701:看status code跟response header的Location吧 01/12 18:07
play9091:怎麼做呢?用urllib2?? 01/12 18:48
uranusjr:對, 用 urlopen 讀到內容之後用 geturl 取回內容網址 01/12 23:42
play9091:OH~原來可以這樣子做,這方便多了!接著來研究計時轉址 01/13 09:45