hi all,
i have problem with test short url working or not. short url redirect two times or more to item page.
http://jd.cn.hn/aeXb --> https://u.jd.com/mecUmb ---> https://jingfen.jd.com/item.html?sku=658...978a383159
302 https://www.weibo.com/
https://passport.weibo.com/visitor/visit...77202.8249
i can't find the right way for get final page. please advice. thanks.
i have problem with test short url working or not. short url redirect two times or more to item page.
http://jd.cn.hn/aeXb --> https://u.jd.com/mecUmb ---> https://jingfen.jd.com/item.html?sku=658...978a383159
import requests url = 'http://jd.cn.hn/aeXb' response = requests.get(url) for resp in response.history: print(resp.status_code, resp.url) print(response.url)301 http://jd.cn.hn/aeXb
302 https://www.weibo.com/
https://passport.weibo.com/visitor/visit...77202.8249
i can't find the right way for get final page. please advice. thanks.