Add async support
@VMRuiz 已经在做这个了。
开始于 2023年1月17日。
评估
这个 Issue 还没有评估数据。
描述
Scrapy now supports calling async methods from many components. It would be great to provide the option to call Scrapinghub API using async methods to avoid either blocking calls or having to work with twisted deferreds and threads.
In order to do that, there are several design decisions that needs to be taken:
Define Async interface
- Do we add an async version for each method already available?
- Do we create an
AsyncScrapinghubClientthat only provides support for async methods?
How to implement async methods
- Python coroutines
- asyncio coroutines
Possible obstacles?
If we want to use python-scrapinghub in standalone mode, will it create their own task loop? or should it expect it to be already created?
If we run it inside Scrapy, could this cause conflict issues?
I don't have much experience designing async libs so It would be great if someone with a better understanding could provide some pointers here.
- 主要语言
- Python
- 星标
- 204
- 派生
- 62
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
scrapinghub/python-scrapinghub 的其他 Issue
-
Incorrect information for Samples in Job documentation可能已有人在做 @AdrianAtZyte 于 66 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 72/100
-
Zyte Job API: Provision to support Cron Expression or Time Interval可能已有人在做 @AdrianAtZyte 于 67 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
-
Add retry logic to Job Tag Update function可能已有人在做 @AdrianAtZyte 于 66 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 42/100
-
KeyError: 'status' when trying to schedule spider可能已有人在做 @AdrianAtZyte 于 64 天前认领。 未关闭enhancement
难度 3/5 1-2 天 新手友好度 30/100
scrapinghub/python-scrapinghub#156 · 6 条评论 ·
-
collections.get_store is not working as documented可能已有人在做 @AdrianAtZyte 于 64 天前认领。 未关闭bug docs
难度 3/5 1-2 天 新手友好度 45/100
查看 scrapinghub/python-scrapinghub 的全部 Issue
相似的 Issue
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount due可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 79/100
developmentseed/titiler-covjson#164 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
awslabs/visual-asset-management-system#2164 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
MakazhanAlpamys/Soup#3589 ·
维护者通常 1 天内回复
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocket未关闭
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复