摘要: Python调用 JS -PyExecJS 日常 Web 端爬虫过程中,经常会遇到参数被加密的场景,因此,我们需要分析网页源代码 通过调式,一层层剥离出关键的 JS 代码,使用 Python 去执行这段代码,得出参数加密前后的 Python 实现 //计算两个数的和 function add(num 阅读全文
posted @ 2023-07-09 18:06 jiang_jiayun 阅读(117) 评论(0) 推荐(0) 编辑
摘要: import requests from fake_useragent import UserAgent from urllib.request import urlretrieve from time import sleep def get_hero_img(hero_id): url = f' 阅读全文
posted @ 2023-07-09 15:39 jiang_jiayun 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 滑动验证码-移动滑块 思路: 获取滑块 建立动作 根据滑动的速度滑动 from selenium.webdriver.chrome.service import Service from selenium.webdriver.support.ui import WebDriverWait from 阅读全文
posted @ 2023-07-09 14:28 jiang_jiayun 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 滑动验证码-编辑移动轨迹 思路:建立每次移动的距离,使用时,移动获取距离拖动滑块儿即可。 提示 滑动的距离不能随意设置,需要复合人类行为。推荐参考,高中物理了解过的知识: 均变速直线运动的速度与时间关系的公式:V=V0+at 均变速直线运动的位移与时间关系的公式:x=v0t+½at² ''' 1、匀 阅读全文
posted @ 2023-07-09 14:04 jiang_jiayun 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 滑动验证码-获取滑动长度 思路: 为了更快精准的找出滑动的距离,因此可以给图片做适当的处理 灰度化。所谓灰度,就是图像没有色彩。举个例子,原本的彩色图片是有RGB三种颜色组成的(也就是每个像素点由三个值),现在给图像灰度化,每个像素点只有一个值(0-255)表示颜色的深度 为了方便测试,可以考虑使用 阅读全文
posted @ 2023-07-08 23:19 jiang_jiayun 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 滑动验证码-保存图片 https://www.sf-express.com/we/ow/chn/sc/waybill/list # 保存图片 from selenium.webdriver.chrome.service import Service from selenium import webd 阅读全文
posted @ 2023-07-08 22:24 jiang_jiayun 阅读(174) 评论(0) 推荐(0) 编辑
摘要: from appium import webdriver from selenium.webdriver.common.by import By from time import sleep from selenium.webdriver.support.ui import WebDriverWai 阅读全文
posted @ 2023-07-07 23:25 jiang_jiayun 阅读(53) 评论(0) 推荐(0) 编辑
摘要: Appium环境搭建 - Appium安装 下载 官方网站:http://appium.io appium/appium-desktop (github.com) https://github.com/appium/appium-desktop/releases/tag/v1.210 开启与配置 参 阅读全文
posted @ 2023-07-07 23:24 jiang_jiayun 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Appium环境搭建 - Android SDK安装 下载 进入网站 https://www.androiddevtools.cn/ 依次点击 AndroidSDK 工具>> SDK Tools>>会跳转到以下界面,Windows建议选择.exe后缀 配置安装 安装环境变量 ANDROID_HOME 阅读全文
posted @ 2023-07-07 15:41 jiang_jiayun 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Appium介绍 有的APP需要反编译,分析加密算法后,再获取信息。有的APP还需要脱壳,再需要反编译,分析加密算法。但要再了解这些问题,还是需要花些时间的。所以,我们可以通过移动端对APP的控制,来解析数据获取数据。 Appium 是一个开源、跨平台(测试程序跨平台、支持多平台上的app测试)、多 阅读全文
posted @ 2023-07-07 14:47 jiang_jiayun 阅读(34) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示