08 2022 档案

python解析C语言包
摘要:pip install robotpy-cppheaderparser pip install pycparser pip install pcpp pip install cppheaderparser http://www.dabeaz.com/ply/ 阅读全文

posted @ 2022-08-16 14:27 帅胡 阅读(269) 评论(0) 推荐(0)

python之selenium wire获取请求头参数
摘要:selenium-wire扩展了 Selenium 的 Python 绑定,让您可以访问浏览器发出的底层请求。 您编写代码的方式与使用 Selenium 的方式相同,但您可以获得额外的 API 来检查请求和响应并动态更改它们 一:简介 selenium是爬虫常用的手段之一,由于是使用浏览器驱动模拟手 阅读全文

posted @ 2022-08-11 19:47 帅胡 阅读(2855) 评论(0) 推荐(1)

adb 常用命令解析
摘要:查询设备列表adb devices 安装应用appadb install xx.apk 卸载应用app adb uninstall [-k] <packagename> 查看安装的app包名 adb shell pm list packages 查看前台 Activity adb shell dum 阅读全文

posted @ 2022-08-08 10:59 帅胡 阅读(300) 评论(0) 推荐(0)

ubuntu 部署STF
摘要:https://blog.csdn.net/LiXueFu727224204/article/details/119737040?spm=1001.2014.3001.5502 关于STFSTF是一套移动设备管理平台,目前只支持安卓,含:1、远程调试手机;2、远程装apk;3、远程执行shell脚本 阅读全文

posted @ 2022-08-08 10:44 帅胡 阅读(426) 评论(0) 推荐(0)

ubuntu下安装pyadb踩坑记录
摘要:pyadb介绍Google旗下的支持python操作adb相关的库常见的关于adb直接操作对应的命令都支持 pyadb安装正常安装命令 1 pip install adb然后发现会少各种依赖报错 报错:SWIG/_m2crypto.i:43: Error: Unable to find ‘opens 阅读全文

posted @ 2022-08-08 10:33 帅胡 阅读(260) 评论(0) 推荐(0)

Sonic开源的云真机测试平台搭建记录
摘要:https://blog.csdn.net/ljh824144294/article/details/122308444?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault 阅读全文

posted @ 2022-08-08 10:27 帅胡 阅读(997) 评论(0) 推荐(0)

SoloPi开源Android专项测试工具初体验
摘要:SoloPi支付宝在移动端上一个无线化、非侵入式、免Root的Android自动化专项测试工具,目前开放的有录制回放、性能测试、一机多控三项主要功能,能为测试开发人员节省宝贵时间。 环境准备 PC端环境准备,以我的电脑Windows系统为例: 1. SoloPi是基于java开发的一款测试工具,因此 阅读全文

posted @ 2022-08-08 10:13 帅胡 阅读(1515) 评论(0) 推荐(0)

ffmpeg参数中文详细解释
摘要:a) 通用选项 -L license -h 帮助 -fromats 显示可用的格式,编解码的,协议的... -f fmt 强迫采用格式fmt -I filename 输入文件 -y 覆盖输出文件 -t duration 设置纪录时间 hh:mm:ss[.xxx]格式的记录时间也支持 -ss posi 阅读全文

posted @ 2022-08-04 15:06 帅胡 阅读(947) 评论(0) 推荐(0)

BeyondCompare4完美"破解"
摘要:将以下操作保存为bat文件(新建txt,然后将后缀改为bat),然后双击运行即可。 reg delete "HKEY_CURRENT_USER\Software\Scooter Software\Beyond Compare 4" /v CacheID /f这个操作是删除BeyondCompare4 阅读全文

posted @ 2022-08-04 14:57 帅胡 阅读(334) 评论(0) 推荐(0)

selenium中cdp使用
摘要:import trio # async library that selenium uses from selenium import webdriver async def start_listening(listener): async for event in listener: print( 阅读全文

posted @ 2022-08-04 14:41 帅胡 阅读(394) 评论(0) 推荐(0)

Python 调用VC++的动态链接库(DLL)
摘要:#ifdef LRDLLTEST_EXPORTS #define LRDLLTEST_API __declspec(dllexport) #else #define LRDLLTEST_API __declspec(dllimport) #endif extern "C" LRDLLTEST_API 阅读全文

posted @ 2022-08-03 15:31 帅胡 阅读(70) 评论(0) 推荐(0)

利用pyhook把滚动编程点击
摘要:# -*- coding: utf-8 -*- import pythoncom import pyHook import time import win32api import win32con def onMouseWheel(event): if event.Wheel == -1: win3 阅读全文

posted @ 2022-08-03 14:39 帅胡 阅读(50) 评论(0) 推荐(0)

PyHook3典型代码
摘要:from ctypes import *import PyHook3 as pyHookimport pythoncom def onKeyboardEvent1(event): print("onKeyboardEvent") pid = c_ulong(0) windowTitle = crea 阅读全文

posted @ 2022-08-03 14:32 帅胡 阅读(88) 评论(0) 推荐(0)

PyHook3函数大全
摘要:'''HookEvent Instance Methods string GetMessageName(self) Returns: Name of the event Class Variables MessageName Instance Variables integer Message Ke 阅读全文

posted @ 2022-08-03 14:19 帅胡 阅读(216) 评论(0) 推荐(0)

selenium记录操作过程日志
摘要:from selenium import webdriver import logging logging.basicConfig(level=logging.DEBUG) # 打印源码中的日志 dr = webdriver.Chrome() # 打开浏览器driver.get("https://w 阅读全文

posted @ 2022-08-02 18:41 帅胡 阅读(123) 评论(0) 推荐(0)

Selenium Python运行时如何录制屏幕
摘要:import subprocess import time proc = subprocess.Popen(['ffmpeg', '-f', 'gdigrab', '-framerate', '15', '-offset_x', '0', '-offset_y', '0', '-video_size 阅读全文

posted @ 2022-08-02 18:11 帅胡 阅读(395) 评论(0) 推荐(0)

selenium 元素标红高亮的两种实现方式
摘要:一、使用js将元素属性修改 这也是网上大部分的实现方式,但有时候会有点小问题,代码如下: 只写其实某一段函数 ...... def apply_style(self, element): self.driver.execute_script("arguments[0].setAttribute('s 阅读全文

posted @ 2022-08-02 18:06 帅胡 阅读(221) 评论(0) 推荐(0)

PyHook3 的下载与安装 for window64位+python3.8
摘要:一. 安装Swig下载:http://www.swig.org/download.html找到对应的版本下载 “Swig” 的介绍简单包装界面产生器(英语:Simplified Wrapper and Interface Generator, SWIG)是一个开源软件工具,用来将C语言或C++写的计 阅读全文

posted @ 2022-08-02 15:10 帅胡 阅读(788) 评论(0) 推荐(0)

pyautogui函数解析分类
摘要:pyautogui.FAILSAFE=True #会记录每一次点击click的截图 pyautogui.LOG_SCREENSHOTS=True 'size','position','center', 'onScreen' onScreen pyautogui.onScreen(x, y) 判断(x 阅读全文

posted @ 2022-08-01 15:10 帅胡 阅读(1108) 评论(0) 推荐(0)

导航