Comments (5)
可以试一下 pip install --upgrade scrapy
升级以后我的可以了
from weibospider.
我也遇到了这个问题
from weibospider.
大概率是scrapy版本的问题,请检查一下是不是requirements中的版本
from weibospider.
同样的问题
$ python run_spider.py tweet_by_tweet_id
C:\Users\J_2\Desktop\1\WeiboSpider\weibospider\spiders\tweet_by_keyword.py:55: SyntaxWarning: invalid escape sequence '\s'
tweets_infos = re.findall('<div class="from"\s+>(.*?)', html, re.DOTALL)
Traceback (most recent call last):
File "C:\Users\J_2\Desktop\1\WeiboSpider\weibospider\run_spider.py", line 25, in
process = CrawlerProcess(settings)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AllAboutHelloWorld\Python\Lib\site-packages\scrapy\crawler.py", line 281, in init
install_shutdown_handlers(self._signal_shutdown)
File "D:\AllAboutHelloWorld\Python\Lib\site-packages\scrapy\utils\ossignal.py", line 19, in install_shutdown_handlers
reactor._handleSignals()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SelectReactor' object has no attribute '_handleSignals'
from weibospider.
检查过依赖版本是没问题的
from weibospider.
Related Issues (20)
- 爬取信息问题 HOT 1
- 百度网盘的数据集分享链接失效了~
- 爬取单个用户的微博不能超过50页。 HOT 5
- 爬取的数据会漏,应该怎么调整?爬取的速度可以慢一些,但希望能够爬全。 HOT 3
- AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv3_METHOD HOT 3
- 爬取微博热门分类下的博文
- 想问一下这个代码要怎么运行呀,只能在cmd里运行嘛,输入什么呢?对不起我还不是很懂 HOT 1
- 如何把对应推文的图片jpg下载下来? HOT 2
- 写入jsonl文件的代码在哪个位置? HOT 2
- 请问评论可以溯源嘛 HOT 1
- 我写了一个Dockerfile,以及相关的依赖和文档
- AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv3_METHOD' HOT 1
- 对于有位置的微博, geo字段会呈现数据吗? HOT 1
- 如何控制抓取评论的数量? HOT 3
- 抓取转发关系出错 HOT 1
- 基于关键词爬取微博数量与实际数量差距较大的问题
- 问下这个应该安装哪个库啊 HOT 1
- 运行comment时报错
- 感谢博主
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weibospider.