Boris-code / feapder

🚀🚀🚀feapder is an easy to use, powerful crawler framework | feapder是一款上手简单,功能强大的Python爬虫框架。内置AirSpider、Spider、TaskSpider、BatchSpider四种爬虫解决不同场景的需求。且支持断点续爬、监控报警、浏览器渲染、海量数据去重等功能。更有功能强大的爬虫管理系统feaplat为其提供方便的部署及调度
http://feapder.com
Other
2.88k stars 476 forks source link

在使用playwright的时候总是报错,sync_playwright().start()这里会报错 #220

Closed rottengeek closed 1 year ago

rottengeek commented 1 year ago

iShot_2023-04-26_01 24 33

报错如下: signal only works in main thread 第一次运行 it looks like you are using playwright sync api inside the asyncio loop 第二次运行

好像应该要使用异步接口

hijack911 commented 1 year ago

我也是, 遇到了这个问题

Boris-code commented 1 year ago

使用spider.run方法运行爬虫