摘要: 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 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: 工作流程 手动登陆人人网地址,拿到一个cookie。把cookie拷下来,手动定义一个headers,发起请求 import requests def xiaodai(): url = 'http://www.renren.com/974598244/profile' # 浏览器访问的网页的cook 阅读全文
posted @ 2020-06-12 15:04 阿久丶xin 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(659) 评论(0) 推荐(0) 编辑
摘要: # 业务测试脚本 # 网络安全分析 import requests, datetime date1 = (datetime.date.today()).strftime("%Y.%m.%d") # 自动验证 post_dict = { 'log': 'admin', # 根据自己网站的类容填些一下信 阅读全文
posted @ 2020-06-12 09:48 阿久丶xin 阅读(416) 评论(0) 推荐(0) 编辑
摘要: import requests import json def xiaodai(): baseurl = 'https://fanyi.baidu.com/sug' # 定义我要请求的url con = input("请输入你要翻译的内容:") # 定义我要翻译的内容 data = { 'kw': 阅读全文
posted @ 2020-06-11 16:05 阿久丶xin 阅读(564) 评论(0) 推荐(0) 编辑
摘要: Python3 parse模块 思路: 访问百度搜索关键字(大熊猫) 浏览器编码需要用到url编码,用到parse包,parse接收值为字典 将url与关键字编码后结合起来发起get请求 import requests from urllib import parse def xiaodai(): 阅读全文
posted @ 2020-06-11 13:47 阿久丶xin 阅读(1582) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(122) 评论(0) 推荐(0) 编辑
Live2D