会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
人贱言轻
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
2017年11月7日
redis数据库的配置
摘要: redis版本3.2.100 redis.window.conf 1. requirepass 123456 设置密码 2. # bind 127.0.0.1 3. protected-mode no 4. 高级安全 windows防火墙 -> 入站规则 开放6379端口
阅读全文
posted @ 2017-11-07 14:18 人微言轻1
阅读(158)
评论(0)
推荐(0)
2017年11月3日
requests的封装(user-agent,proxies)
摘要: import requests # 1. headers url = 'https://api.github.com/some/endpoint' headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/5
阅读全文
posted @ 2017-11-03 15:33 人微言轻1
阅读(395)
评论(0)
推荐(0)
2017年10月31日
python多线程
摘要: #!/usr/bin/python# -*-coding:utf-8-*- """@author: yugengde@contact: yugengde@163.com@file : Threading.py@time: 2017/11/5 21:09"""import requestsfrom multiprocessing import Poolurls = []for i in ran...
阅读全文
posted @ 2017-10-31 01:22 人微言轻1
阅读(156)
评论(0)
推荐(0)
phantjs
摘要: def plantjs_request(url): desired_capabilities = DesiredCapabilities.PHANTOMJS.copy() # 1. User-Agent desired_capabilities['phantomjs.page.settings.us
阅读全文
posted @ 2017-10-31 01:22 人微言轻1
阅读(276)
评论(0)
推荐(0)
etree-xpath
摘要: import requestsfrom lxml import etreeurl = 'https://item.taobao.com/item.htm?spm=a219r.lm893.14.118.238e8d532nCpy9&id=537796877521&ns=1&abbucket=1'res
阅读全文
posted @ 2017-10-31 01:21 人微言轻1
阅读(1633)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
公告