摘要: import aiohttp import asyncio import time async def get_requests(url): async with aiohttp.ClientSession() as session: async with await session.get(url 阅读全文
posted @ 2021-10-06 01:04 山水无期 阅读(75) 评论(0) 推荐(0) 编辑
摘要: import requests import cchardet import traceback from lxml import etree def downloader(url,timeout = 10,headers = None,debug = False, binary = False): 阅读全文
posted @ 2021-10-06 00:57 山水无期 阅读(51) 评论(0) 推荐(0) 编辑
摘要: import random #一维示例 test_arry = [11,12,13,15,18,20,29,35,40,55,68,70,92,105,107,109] #最后一个数如果不是109,而是200,如何等比例、等长度的将这个列表进行放大的操作 #先计算缩放比例 rate = 200/te 阅读全文
posted @ 2021-10-06 00:50 山水无期 阅读(256) 评论(0) 推荐(0) 编辑
摘要: //浏览器内存漫游解决方案(js逆向) //原理通过ast把所有的变量,参数中间值进行内存的存储 //搜索AST-hook,进入github //现在github的库下载下来 //anyproxy nodejs中的抓包工具 需要安装(管理员的) npm install -g anyproxy //然 阅读全文
posted @ 2021-10-06 00:34 山水无期 阅读(1143) 评论(0) 推荐(0) 编辑
摘要: //第一种 补环境的方法 let test1 = { name:"小红" }; test = new Proxy(test1,{ get(target,key){ console.log("获取了",key + "属性"); return target[key]; } }) test.name // 阅读全文
posted @ 2021-10-06 00:05 山水无期 阅读(4021) 评论(0) 推荐(0) 编辑
摘要: 5、第五题 //5.2.js //module.paths.push("\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules") var CryptoJS = require("crypto-js"); var btoa = requ 阅读全文
posted @ 2021-09-26 15:25 山水无期 阅读(437) 评论(0) 推荐(0) 编辑
摘要: https://astexplorer.net/ https://zhuanlan.zhihu.com/p/371710865 1、基础了解 const {parse} =require("@babel/parser"); const generator = require("@babel/gene 阅读全文
posted @ 2021-09-13 01:18 山水无期 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 这里有1、2、3、4、12、13、15题 1、第一题 import execjs import requests def get_response(): js_code = """ var window = this; var hexcase = 0; var b64pad = ""; var ch 阅读全文
posted @ 2021-08-28 22:07 山水无期 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 一、装饰器原理 '''javascript Python 面向对象编程 一切皆对象 函数为闭包函数,可以将函数名赋值给变量 ''' def hi(name = "yasoob"): return "hi" + name print(hi()) #output:"hi yasoob" #我们甚至可以将 阅读全文
posted @ 2021-08-28 18:38 山水无期 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1、openpyxl的详细操作 https://blog.csdn.net/weixin_41546513/article/details/109555832 2、github使用指南 https://blog.csdn.net/feengg/article/details/88722614 htt 阅读全文
posted @ 2021-08-21 10:00 山水无期 阅读(402) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示