爬蟲
082200598
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python爬取異步加載圖片的某個網站並下載圖片
import calendarimport requests,refrom bs4 import BeautifulSoupmonths=int(input('輸入欲抓取月份'))moth=calendar.monthrange(2019,months)headers ={'User-Agent':"Mozilla/5.0 (Windows; U; Windows NT 6.1; ...原创 2019-06-05 14:21:47 · 340 阅读 · 0 评论 -
pyhon爬取虎撲社區使用pymongo將得到的數據存入本地mongo數據庫中
首先建立一個模塊並將其封裝,模塊命名為mongomod.pyfrom pymongo import MongoClientclass MongoAPI(object): def __init__(self,ip,port,database_name,table_name): self.ip = ip self.port =port sel...原创 2019-06-09 16:11:18 · 209 阅读 · 0 评论 -
使用python抓取喜馬拉雅音樂並且下載
#https://www.ximalaya.com/yinyue/#更改後面網址以對應欲爬取內容import requestsfrom lxml import etreeclass Spider(object): def __init__(self): self.headers = {'User-Agent':"Mozilla/5.0 (Windows; U; W...原创 2019-06-10 19:34:51 · 318 阅读 · 0 评论
分享