输入一个不完整的词,可以把相关的相近的词结果都返回
import requestsurl = "/sug"data = {"kw":"pyth"}header = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"}res = requests.post(url,data=data, headers=header)con = res.content.decode()print(con)
如果觉得《爬虫-post请求练习-百度翻译爬虫-智能的关联搜索不完整词的猜词搜索》对你有帮助,请点赞、收藏,并留下你的观点哦!