还在担心找不到适合的表情包怼人吗?还在为自己找不到搞笑的表情包而烦恼吗?教你用python快速爬取网站表情包!
网站链接:
https://fabiaoqing.com/biaoqing/lists/page/%7Bpage%7D.html
爬虫代码:
#-*- coding:UTF-8 -*-
import os
from time import time
import requests
from bs4 import BeautifulSoup
from queue import Queue
from threading import Thread
class DownloadBiaoqingbao(Thread):
def __init__(self, queue, path):
Thread.__init__(self)
self.queue = queue
self.path = '/Users/admin/Desktop/表情包/'
if not os.path.exists