摘要: 下载地址:https://www.telerik.com/fiddler APP手机爬取(转:http://blog.csdn.net/c406495762/article/details/76850843) 阅读全文
posted @ 2018-01-15 22:20 zy-- 阅读(87) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html impo... 阅读全文
posted @ 2018-01-12 00:48 zy-- 阅读(258) 评论(1) 推荐(0) 编辑
摘要: spider.py文件配置 1 2 # -*- coding: utf-8 -*- 3 import scrapy 4 from itTeachers.items import ItteachersItem 5 6 7 class ItcastSpider(scrapy.Spider): 8 name = 'itcast' 9 allo... 阅读全文
posted @ 2018-01-11 18:45 zy-- 阅读(715) 评论(3) 推荐(0) 编辑
摘要: 1 如果是剛安裝完的搜狗輸入法,則輸入: sudo apt-get install -f,進行依賴性檢查,判斷是否缺依賴項。如果是之前一直可以输入中文的,突然无法输入的,则不是依赖项的问题,进行下一步。 如果是剛安裝完的搜狗輸入法,則輸入: sudo apt-get install -f,進行依賴性 阅读全文
posted @ 2018-01-11 16:43 zy-- 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/emperor_cj/article/details/78603026 一、linux环境 1 二、安装和配置虚拟环境 安装虚拟环境 1 2 virtualenvwrapper 是virtualenv的扩展管理包,可以将所有的虚拟环境整合在一个目录下。 阅读全文
posted @ 2018-01-10 15:19 zy-- 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 24 quote = each.xpath(".//p[@class='quote']/span/text()").extract() 25 if len(quote) != 0: 26 item['quote'] = quote[0] 27 28 29 yield item 30 31 if se 阅读全文
posted @ 2018-01-09 00:53 zy-- 阅读(358) 评论(0) 推荐(0) 编辑
摘要: UBUNTU16.04,以python2.7创建了环境py2scrapy, pip install pymongo, import pymongo 在爬虫中出现错误:ImportError: No module named 'pymongo' how do you find where pip in 阅读全文
posted @ 2018-01-08 17:33 zy-- 阅读(5982) 评论(0) 推荐(0) 编辑
摘要: 转 http://blog.csdn.net/zhushh/article/details/52451441 启动,重启,关闭 阅读全文
posted @ 2018-01-07 22:11 zy-- 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 检查端口 yun@ubuntu:~$ ps aux | grep mongodyun 95119 0.5 3.2 950384 65296 pts/7 Sl+ 21:24 0:08 mongodyun 95278 0.0 0.0 21292 940 pts/20 S+ 21:50 0:00 grep 阅读全文
posted @ 2018-01-07 21:54 zy-- 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 恢复内容结束 阅读全文
posted @ 2017-12-27 02:02 zy-- 阅读(161) 评论(0) 推荐(0) 编辑