FEAPDER
简介
- feapder是一款上手简单,功能强大的Python爬虫框架,内置AirSpider、Spider、TaskSpider、BatchSpider四种爬虫解决不同场景的需求。
- 支持断点续爬、监控报警、浏览器渲染、海量数据去重等功能。
- 更有功能强大的爬虫管理系统feaplat为其提供方便的部署及调度
读音: [ˈfiːpdə]
文档地址
- 官方文档:https://feapder.com
- github:https://github.com/Boris-code/feapder
- 更新日志:https://github.com/Boris-code/feapder/releases
- 爬虫管理系统:http://feapder.com/#/feapder_platform/feaplat
环境要求:
- Python 3.6.0+
- Works on Linux, Windows, macOS
安装
From PyPi:
精简版
pip install feapder
浏览器渲染版:
pip install "feapder[render]"
完整版:
pip install "feapder[all]"
三个版本区别:
- 精简版:不支持浏览器渲染、不支持基于内存去重、不支持入库mongo
- 浏览器渲染版:不支持基于内存去重、不支持入库mongo
- 完整版:支持所有功能
完整版可能会安装出错,若安装出错,请参考安装问题
小试一下
创建爬虫
feapder create -s first_spider
创建后的爬虫代码如下:
import feapder
class FirstSpider(feapder.AirSpider):
def start_requests(self):
yield feapder.Request("https://www.baidu.com")
def parse(self, request, response):
print(response)
if __name__ == "__main__":
FirstSpider().start()
直接运行,打印如下:
Thread-2|2021-02-09 14:55:11,373|request.py|get_response|line:283|DEBUG|
-------------- FirstSpider.parse request for ----------------
url = https://www.baidu.com
method = GET
body = {'timeout': 22, 'stream': True, 'verify': False, 'headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36'}}
<Response [200]>
Thread-2|2021-02-09 14:55:11,610|parser_control.py|run|line:415|DEBUG| parser 等待任务...
FirstSpider|2021-02-09 14:55:14,620|air_spider.py|run|line:80|INFO| 无任务,爬虫结束
代码解释如下:
- start_requests: 生产任务
- parse: 解析数据
参与贡献
贡献之前请先阅读 贡献指南
感谢所有做过贡献的人!
爬虫工具推荐
- 爬虫在线工具库:http://www.spidertools.cn
- 爬虫管理系统:http://feapder.com/#/feapder_platform/feaplat
- 验证码识别库:https://github.com/sml2h3/ddddocr
微信赞赏
如果您觉得这个项目帮助到了您,您可以帮作者买一杯咖啡表示鼓励 🍹
也可和作者交个朋友,解决您在使用过程中遇到的问题
学习交流
| 知识星球:17321694 | 作者微信: boris_tm | QQ群号:521494615 |
| |
|
|
加好友备注:feapder
Metadata
Release files for feapder 1.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| feapder-1.9.3.tar.gz | 216.0 kB | Without provenance | Details for feapder-1.9.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feapder-1.9.3-py3-none-any.whl | Python 3 | none | any | Details for feapder-1.9.3-py3-none-any.whl |
Total release size: 440.4 kB
Release files / feapder-1.9.3.tar.gz
| Download URL | feapder-1.9.3.tar.gz |
|---|---|
| Size | 216.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b31031d3d61f0d90d85c169806c07caafebdedc6a6b1c40b958a3a6591af4c19
|
|
BLAKE2b-256 checksum How to use checksums |
01c938b15f9155556d01f24de548a152a3e0d6e5ba18763c1a291d4ddf551c47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / feapder-1.9.3-py3-none-any.whl
| Download URL | feapder-1.9.3-py3-none-any.whl |
|---|---|
| Size | 224.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a576152af07de699046d7590589cf24604b44efdd85b9f33be0de31c775d29b0
|
|
BLAKE2b-256 checksum How to use checksums |
e28d41799724472b9b47bfd3fe4edb9aa0c4eb5621e9184ef0b4bf9c67d49d90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for feapder 1.9.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.