import requestsimport parsel#获取网页base_url='https://tieba.baidu.com/f?ie=utf-8&kw=%E7%BE%8E%E5%A5%B3'#伪装身份headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKi
ct_dishes = collections.OrderedDict() dict_dishes['title'] = str(title).replace("\n", "").replace(" ", "") dict_dishes[&