python request error, solve!

#ip归属地询,ip138网站

import requests
url="https://www.ip138.com/iplookup.asp?ip="
url1="&action=2"
r=requests.get(url+'202.99.199.141'+url1)
print(r.status_code)
#r.raise_for_status()
r.encoding=r.apparent_encoding
print(r.text[-500:])

There is an error in a small piece of code, and no result is returned, please solve it! Thank you!
Learning to strengthen the country

Guess you like

Origin blog.csdn.net/weixin_32690675/article/details/112762486