随笔分类 - 爬虫
学习练习爬虫
摘要:1.推荐一个几分钟就能设计一个可视化爬虫的开源项目,20.5K star!EasySpider 是一款无代码爬虫项目,采用可视化操作界面,无需编写任何代码,只需通过鼠标点击和拖拽,就能完成爬虫任务的设计。支持多种数据格式的输出,如 CSV、JSON、Excel 等,方便后续的数据分析和处理。这个项目
阅读全文
摘要:import urllib3urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) #忽略警告 aa=requests.post(url,headers=head1,data=ap1,verify=False)
阅读全文
摘要:#!/usr/bin/env python # encoding: utf-8 import requests, os, platform, time from Crypto.Cipher import AES import multiprocessing from retrying import
阅读全文
摘要:from wxauto import WeChat import pywinauto,time,sys,re,random # 获取当前微信客户端 wx = WeChat() # 获取会话列表 wx.GetSessionList() # 输出当前聊天窗口聊天消息 ##msgs = wx.GetAll
阅读全文
摘要:import threading sem = threading.Semaphore(10)#设置最大线程数 #在线程调用的函数开始设置sem.acquire() #在线程调用的函数最后设置sem.release() def xiazai(iiv,chapter_url_list): sem.acq
阅读全文
摘要:import requests,time,datetime,os,sys,re,random,string,json,pymysql import configparser,multiprocessing from multiprocessing import Process,Lock,Manage
阅读全文
摘要:import pcap import dpkt def captData(): pc=pcap.pcap('wlan0') #注,参数可为网卡名,如eth0 pc.setfilter('dst net 10. && port 8081') #设置监听过滤器 for ptime,pdata in pc
阅读全文
摘要:import time import re import os from scapy.all import * from threading import Thread #定义变量函数 wifi='RNDIS' rtable=os.popen('route print').read() print(
阅读全文
摘要:from winpcapy import WinPcapDevices from winpcapy import WinPcapUtils import dpkt import time import datetime # list_device = WinPcapDevices.list_devi
阅读全文
摘要:import psutil def guanbi(): TARGET = "adb.exe" [process.kill() for process in psutil.process_iter() if process.name() == TARGET]
阅读全文
摘要:import requests r=requests.head(urla,stream=True) #aa=requests.post(url,headers=head1,json=json2) urlx=r.headers['Location']
阅读全文
摘要:sjh pvq4nrx4kzemw4ca zh ['pvq4nrx4kzemw4ca'] lx [] >>> sjjtjc(sjh,"./xmzq.png",0,2) False >>> sjjtjcwzopb(sjh,"./xmksfhzq.png",0,2) False >>> sjjtjc(s
阅读全文
摘要:修改方法: A 截图,找到关键图截取B 重新截图,找到关键图所在位置图标(xx=100,yy=200)C找到关键区域(80,300,160,300)D 根据关键图位置图标计算关键区域坐标(xx-20,yy+100,xx+60,yy+100)E 找到关键区域中关键色(画图--吸管-吸取相应颜色,编辑颜
阅读全文
摘要:GET /articles/index.html?art_id=13239411999181634532&item_id=13239411999181634532&reedit_timestamp=1661697399000&to_audit_timestamp=2022-08-28+22%3A36
阅读全文
摘要:打开软件所在位置类似名称base.vbox,用记事本打开查看hostport <Forwarding name="port0" proto="1" hostip="127.0.0.1" hostport="60001" guestport="18013"/> <Forwarding name="po
阅读全文
摘要:lena=len(agents) tt0=tt1=tt2=tt3=tt4=tt5=tt6=tt7=tt8=tt9=tt10=tt11=tt12=tt13=0 tta0=tta1=tta2=tta3=tta4=tta5=tta6=tta7=tta8=tta9=tta10=tta11=tta12=tta
阅读全文
摘要:import re,sys,time,json,requests,datetime aaa='''accept: application/json, text/plain, */* origin: https://lyzs.zuanqianyi.com x-requested-with: com.k
阅读全文
摘要:// 十六进制颜色值的正则表达式var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/ 转义字符 '\\s':匹配空格'\\n':匹配换行符'\\f':匹配换页符'\\r':匹配回车符'\\t':匹配制表符'\\v':匹配垂直制表符 注:在使用split('\\
阅读全文
摘要:from time import sleep import pyautogui from PIL import ImageGrab, Image import pyscreeze import cv2 # 屏幕缩放系数 mac缩放是2 windows一般是1 screenScale=1 #事先读取按
阅读全文