表情包不够用了吗?快来用爬虫爬取一波吧

表情包爬取

'''
url = http://www.doutula.com/search?type=photo&more=1&keyword=%E6%80%BC%E4%BA%BA&page=1
很容易拼接
'''

import requests
import os
from lxml import etree


url = 'http://www.doutula.com/search?type=photo&more=1&keyword=%E6%80%BC%E4%BA%BA&page=1'
res = requests.get(url)
html = etree.HTML(res.text)

猜你喜欢

转载自blog.csdn.net/qq_29339467/article/details/105344031