请问大佬,像这种纯文本的内容,如何采集,要填写什么元素?https://ipdb.api.030101.xyz/?type=bestcf是一样填写tr吗?
tr
学习研究下,感谢大佬分享
import requests
def get_ip():url = ‘https://ipdb.api.030101.xyz/?type=bestcf’response = requests.get(url)ip = response.textreturn ipif name == ‘main’:print(get_ip())