摘要:
import requests url = "http://m.ip138.com/sj.asp?mobile=" kv = {'user-agent':'Mozilla/5.0'} # 请求头 try: r = requests.get(url + '电话号码',headers=kv) print 阅读全文
摘要:
import requests import os url = "https://ss0.baidu.com/7Po3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/9c16fdfaaf51f3de9ba8ee1194eef01f3a2979a8.jpg" # 图片的 阅读全文
摘要:
import requests keyword = "Python" try: kv = {'wd':keyword} # 百度 kv1 = {'q':keyword} # 360 r = requests.get("http://www.baidu.com/s",params=kv) # 百度 r 阅读全文