作者:create17,座右铭:每一个成功人士的背后,必定曾经做出过勇敢而又孤独的决定。放弃不难,但坚持很酷~
2018-05-26hexo搭建个人博客
阅读更多
2018-05-26Scrapy爬虫框架
修改settings.py文件
1234
# 百度图片class baiduImage(scrapy.Item): imageName = scrapy.Field() imageUrl = scrapy.Field()
1
class scrapy.spiders.Rule(link_extractor, callback=None, cb_kwargs=None, follow=None, process_links=None, process_request=None)
scrapy shell 'http://quotes.toscrape.com/page/1/'
以下是官方文档的第一个爬虫例子。可以看到和我们手动使用request库和BeautifulSoup解析网页内容不同,Scrapy专门抽象了一个爬虫父类,我们只需要重写其中的方法,就可以迅速得到一个可以不断爬行的爬虫。
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.0.1-Linux-x86_64.sh
2018-05-25hexo搭建个人博客
2018-05-25JavaScript
使用弹出框输出内容
alert("hello,world!");
显示在控制台
2018-05-21Linux
wget http://nginx.org/download/nginx-1.8.1.tar.gz