会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
阿久丶xin
一个憨批
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2020年7月3日
Centos7 安装rar
摘要: rarlinux安装和使用 😄 Written by Zak Zhu 参考 在linux(64bit)下安装rar for linux(https://blog.csdn.net/qq844352155/article/details/38340603) Linux下rar和unrar命令的安装和
阅读全文
posted @ 2020-07-03 13:16 阿久丶xin
阅读(1198)
评论(0)
推荐(0)
2020年6月30日
Centos7 更换阿里yum源
摘要: 1. 备份原镜像文件,便于后期恢复 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/ wget -O /etc
阅读全文
posted @ 2020-06-30 00:05 阿久丶xin
阅读(92)
评论(0)
推荐(0)
2020年6月12日
Python3 实现带cookie登陆网站--自动
摘要: from urllib import request, parse from http import cookiejar # 创建cookiejar的实例 cookie = cookiejar.CookieJar() # 生成cookie的管理器 cookie_handler = request.H
阅读全文
posted @ 2020-06-12 17:11 阿久丶xin
阅读(1143)
评论(0)
推荐(0)
Python3 requests实现cookie登陆--手动
摘要: 工作流程 手动登陆人人网地址,拿到一个cookie。把cookie拷下来,手动定义一个headers,发起请求 import requests def xiaodai(): url = 'http://www.renren.com/974598244/profile' # 浏览器访问的网页的cook
阅读全文
posted @ 2020-06-12 15:04 阿久丶xin
阅读(1198)
评论(0)
推荐(0)
Python3 requests模块实现模仿浏览器+代理访问
摘要: import requests def xiaodai(): url = 'http://erge1998.cn/' proxies = { 'http': 'http://149.28.38.64:1081', 'https': 'https://149.28.38.64:1081' } head
阅读全文
posted @ 2020-06-12 12:42 阿久丶xin
阅读(692)
评论(0)
推荐(0)
Python3 session实现带密码访问网站后台
摘要: # 业务测试脚本 # 网络安全分析 import requests, datetime date1 = (datetime.date.today()).strftime("%Y.%m.%d") # 自动验证 post_dict = { 'log': 'admin', # 根据自己网站的类容填些一下信
阅读全文
posted @ 2020-06-12 09:48 阿久丶xin
阅读(441)
评论(0)
推荐(0)
2020年6月11日
Python3实现利用url请求百度翻译
摘要: import requests import json def xiaodai(): baseurl = 'https://fanyi.baidu.com/sug' # 定义我要请求的url con = input("请输入你要翻译的内容:") # 定义我要翻译的内容 data = { 'kw':
阅读全文
posted @ 2020-06-11 16:05 阿久丶xin
阅读(581)
评论(0)
推荐(0)
Python3 parse模块
摘要: Python3 parse模块 思路: 访问百度搜索关键字(大熊猫) 浏览器编码需要用到url编码,用到parse包,parse接收值为字典 将url与关键字编码后结合起来发起get请求 import requests from urllib import parse def xiaodai():
阅读全文
posted @ 2020-06-11 13:47 阿久丶xin
阅读(1607)
评论(0)
推荐(0)
Python3 requests模块
摘要: python requests模块 import requests def test(): url = 'http://erge1998.cn' # 发起get请求,并且返回结果 # 将请求到的内容赋值给rsp rsp = requests.get(url) # 此时的rsp属于一个类,是一个res
阅读全文
posted @ 2020-06-11 11:26 阿久丶xin
阅读(148)
评论(0)
推荐(0)
2020年6月9日
Nignx gzip 文件压缩
摘要: Nignx gzip 压缩 在 nginx中默认是压缩的。 将代码拷贝到/etc/nginx/nginx.conf 中 gzip on; # off为关闭 gzip_min_length 1k; #gzip开启阈值,超过1k才会使用gzip gzip_buffers 4 16k; #gzip_htt
阅读全文
posted @ 2020-06-09 13:47 阿久丶xin
阅读(130)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告
Live2D