摘要: 性能相关 在编写爬虫时,性能的消耗主要在IO请求中,当单进程单线程模式下请求URL时必然会引起等待,从而使得请求整体变慢。 1 import requests 2 3 def fetch_async(url): 4 response = requests.get(url) 5 return resp 阅读全文
posted @ 2017-02-17 18:12 善行者无疆 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 一、概要 目的:实现一个具有web微信类似功能的项目 框架:Django 模块:render、HttpResponse、BeautifulSoup、re、time、requests、json、random 特点:web微信和其他的不太一样,这里不需要账号和密码,只需要扫描网页提供的二维码即可 二、具 阅读全文
posted @ 2017-02-17 16:56 善行者无疆 阅读(564) 评论(0) 推荐(0) 编辑