python爬虫编写时注意使用的函数

  1. urllib.parse.urlencode(data)

    对输入的数据数据进行格式转换,可以使用再如URL地址上进行附加搜索。

  2. urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None)
    
    

猜你喜欢

转载自blog.csdn.net/qq_36318271/article/details/85009728