前面十章爬虫笔记陆陆续续记录了一些简单的Python爬虫知识,
用来解决简单的贴吧下载,绩点运算自然不在话下。
不过要想批量下载大量的内容,比如知乎的所有的问答,那便显得游刃不有余了点。
于是乎,爬虫框架Scrapy就这样出场了!
Scrapy = Scrach+Python,Scrach这个单词是抓取的意思,
暂且可以叫它:小抓抓吧。
小抓抓的官网地址:点我点我。
那么下面来简单的演示一下小抓抓Scrapy的安装流程。
具体流程参照:官网教程
友情提醒:一定要按照Python的版本下载,要不然安装的时候会提醒找不到Python。建议大家安装32位是因为有些版本的必备软件64位不好找。
1.安装Python(建议32位)
建议安装Python2.7.x,3.x貌似还不支持。
安装完了记得配置环境,将python目录和python目录下的Scripts目录添加到系统环境变量的Path里。
在cmd中输入python如果出现版本信息说明配置完毕。
2.安装lxml
lxml是一种使用 Python 编写的库,可以迅速、灵活地处理 XML。点击这里选择对应的Python版本安装。
3.安装setuptools
用来安装egg文件,点击这里下载python2.7的对应版本的setuptools。
4.安装zope.interface
可以使用第三步下载的setuptools来安装egg文件,现在也有exe版本,点击这里下载。
5.安装Twisted
Twisted是用Python实现的基于事件驱动的网络引擎框架,点击这里下载。
6.安装pyOpenSSL
pyOpenSSL是Python的OpenSSL接口,点击这里下载。
7.安装win32py
提供win32api,点击这里下载
8.安装Scrapy
终于到了激动人心的时候了!安装了那么多小部件之后终于轮到主角登场。
直接在cmd中输入easy_install scrapy回车即可。
9.检查安装
打开一个cmd窗口,在任意位置执行scrapy命令,得到下列页面,表示环境配置成功。
订阅:
博文评论 (Atom)
Also Read:
-
Vernee是由中国深圳新英国网络技术有限公司生产的手机品牌。 该品牌成立于2016年2月,标志着New Bund从OEM/ODM转移到公共市场的第一步。 Vernee手机使用Android操作系统。 该公司的定价政策使他们能够将中型硬件放在低端价格上,并附有Android OS...
-
Content URL http://download.cnet.com/Leawo-Video-Converter/3000-2194_4-209074.html http://sfree.ru/Konvertoryi/leawo-video-converter-ultim...
-
作者:作手思司 链接:https://www.zhihu.com/question/267653585/answer/2331431454 成为强者的第一步,是摒弃受害者思维。 查理芒格 (Charlie Munger)曾说过: 我不会因为人性而感到意外,也不会为此花很长时间去...
-
Other Possible ways to Fix iPad not Connecting to App Store If you are not too keen to use a third-party software on your iOS device then yo...
-
We all want to create the best content possible, but with more than a BILLION active websites and blogs on the internet today… it’s getti...
-
身为一个毕业后没向家里要一分钱,自己出了3格装备(房车老婆)的屌丝观点 1.千万别太在乎工资,在天朝,1000和2000的工资没什么区别,为了一点点小钱换行业,和人斗是没意义的。就像为了多补两刀送了一个人头2.时刻保持危机感,觉得公司分分钟就会倒闭,自己马上就会失业,应该怎么...
-
猿人创新怎么样 性质: 民营公司。 规模: 100-499人。 成立: 7年 (登记时间:2016-04-25) 。 行业: 互联网/电子商务 。 全称: 深圳市猿人创新科技有限公司。 产品: Nooie Cam、Nooie Home等2个。 排名: 深圳人气公司排名第15...
-
Content URL https://www.gearbest.com/action-cameras/pp_608129.html https://www.forbes.com/sites/bensin/2017/07/31/mgcool-explorer-es-re...
-
I’ve been blogging for many years and I’ve seen several bloggers come and go over that period of time. So many bloggers get started with an...
-
SEO技术领域的搜索引擎优化指南 理解用户的需求、了解搜索引擎的原理、明白如何通过搜索引擎优化对网站产生价值,这是SEO学习中应该陆续深入的三个部分。以个人经验,总结以下搜索引擎优化指南: 理解用户的需求 在做排名前,先将自己放到一个搜索者的位置——“我...
Do you need to increase your credit score?
回复删除Do you intend to upgrade your school grade?
Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
Do you need any information concerning any database.
Do you need to retrieve deleted files?
Do you need to clear your criminal records or DMV?
Do you want to remove any site or link from any blog?
you should contact this hacker, he is reliable and good at the hack jobs..
contact : cybergoldenhacker at gmail dot com
I can’t say much but with my experience through divorce, I had no one until I met hackingsetting50@gmail.com online then I contacted him, surprisingly he helped me hack into my partner's phone and all his social media platforms and i can now access everything and even documented and printed stuffs to show as evidence , now I’m happy with my kids and working for Riches. I hope this helps anyone in need.
回复删除Thanks.