Python 百度贴吧爬虫
# coding:utf-8
import requests
from lxml import etree
import json
class Tieba(object):
def __init__(self, name):
self.url = 'https://tieba.baidu.com/f?kw={}'.format(name)
self.heardes = {
"User-Agent": "Mozilla/4.0 (...
hn.icodeq.com1 min read