上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: 参考:http://aju.space/2017/07/31/Drive-into-python-asyncio-programming-part-1.html yield from 是Python 3.3 新引入的语法(PEP 380)。 它主要解决的就是在生成器里玩生成器不方便的问题。它有两大主 阅读全文
posted @ 2017-11-04 19:57 马贡多在下雨 阅读(423) 评论(0) 推荐(0)
摘要: 一、Scarpy简介 Scrapy基于事件驱动网络框架 Twisted 编写。(Event-driven networking) 因此,Scrapy基于并发性考虑由非阻塞(即异步)的实现。 参考:武Sir笔记 参考:Scrapy 0.25 文档 参考:Scrapy架构概览 二、爬取chouti.co 阅读全文
posted @ 2017-11-04 11:24 马贡多在下雨 阅读(259) 评论(0) 推荐(0)
摘要: HTTP method constants 阅读全文
posted @ 2017-11-03 17:04 马贡多在下雨 阅读(207) 评论(0) 推荐(0)
摘要: HTTP status constants 状态码参考 阅读全文
posted @ 2017-11-03 17:03 马贡多在下雨 阅读(327) 评论(0) 推荐(0)
摘要: 详细解释请移步: 参考:http://www.jianshu.com/p/1a49a7b08ee0 参考:https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9 参考:HTTP/1.1 阅读全文
posted @ 2017-10-30 23:22 马贡多在下雨 阅读(223) 评论(0) 推荐(0)
摘要: 写在前面 干就完了 1 s16/17爬虫2 2 3 内容回顾: 4 1. Http协议 5 Http协议:GET / http1.1/r/n...../r/r/r/na=1 6 TCP协议:sendall("GET / http1.1/r/n...../r/r/r/na=1") 7 8 2. 请求体 阅读全文
posted @ 2017-10-28 11:54 马贡多在下雨 阅读(356) 评论(0) 推荐(0)
摘要: 一、进程池和线程池 1.串行 2.多进程 3.进程池(1) 3.进程池(2) 2019-03-06 補充 4.多线程 5.线程池 二、异步非阻塞 参考:http://aiohttp.readthedocs.io/en/stable/ 参考:http://www.cnblogs.com/wupeiqi 阅读全文
posted @ 2017-10-28 11:51 马贡多在下雨 阅读(1357) 评论(0) 推荐(0)
摘要: 1 D:\soft\work\Python_17\day23\weixin>tree /F 2 卷 NewDisk 的文件夹 PATH 列表 3 卷序列号为 2E8B-8205 4 D:. 5 │ db.sqlite3 6 │ manage.py 7 │ 8 ├─.idea 9 │ │ misc.x 阅读全文
posted @ 2017-10-26 22:20 马贡多在下雨 阅读(936) 评论(0) 推荐(0)
摘要: 写在前面 逆水行舟 1 爬虫 2 3 - 基本操作 4 概要: 5 - 发送Http请求,Python Http请求,requests 6 - 提取指定信息,Python 正则表达式,beautifulsoup 7 - 数据持久化, 8 9 Python两个模块 10 - requests 11 - 阅读全文
posted @ 2017-10-21 12:20 马贡多在下雨 阅读(364) 评论(0) 推荐(0)
摘要: import requests requests.get(url='xxx') # 本质上就是: requests.request(method='get',url='xxx') import json requests.post(url='xxx',data={'name':'alex','age':18}) # content_type: application/x-www... 阅读全文
posted @ 2017-10-16 23:57 马贡多在下雨 阅读(251) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页