美文网首页
python 多线程爬虫

python 多线程爬虫

作者: sum3mer | 来源:发表于2017-06-20 17:44 被阅读0次

用到的库

requests

from bs4 import BeautifulSoup

from Queue import Queue

import threading

难点:属性匹配

一般利用:

但若要匹配的属性如下:

则不能匹配,因此利用正则表达的方式进行匹配:

参考 https://bbs.ichunqiu.com/thread-20733-1-1.html

相关文章

网友评论

      本文标题:python 多线程爬虫

      本文链接:https://www.haomeiwen.com/subject/hzbiottx.html