# BaiduCrawler **Repository Path**: xmapst/BaiduCrawler ## Basic Information - **Project Name**: BaiduCrawler - **Description**: Baidu crawler, you can climb to search content, promote links - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BaiduCrawler BaiDu搜索爬虫,可以爬到搜索内容和该关键字的推广链接 #### 使用方法: 环境:python >= 3.6.x pip3工具 ``` git clone https://github.com/xmapst/BaiduCrawler.git cd BaiduCrawler pip3 install -r requirements.txt python3 crawler.py # 后台运行方法 # chmod +x crawler.py setsid crawler.py ``` #### 返回效果: ====返回各字段解析====: ``` # 返回字典,一条记录一个 {'title': '标题', 'url': '百度快照URL/百度推广URL', 'real_url': '最终目标URL', 'type': '快照/推广 (ordinary/promotion)'} ``` ==== 如图 ====: ![enter image description here](QQ20190727-112822@2x.png)