摘要: Fiddler是Windows系统上有名的抓包工具,使用方便,功能齐全,但是不同于Wireshark, 它只能抓取http/https协议的通讯数据包,值得高兴的是, 从Fiddler 4.5开始支持WebSocket数据包抓取,下面来介绍如何设置Fiddler支持WebSocket抓取。 1.下载 阅读全文
posted @ 2020-01-19 14:36 小君~ 阅读(5907) 评论(0) 推荐(2) 编辑
摘要: 选择包含某一特定属性的节点,可以使用例如//tbody/tr[@class]来选择排除一个属性的节点可以使用//tbody/tr[not(@class)]排除一个或者两个属性可以使用//tbody/tr[not(@class or @id)]来选择。(注意用括号括起来) 阅读全文
posted @ 2020-01-19 11:02 小君~ 阅读(1526) 评论(0) 推荐(0) 编辑
摘要: #需要提前开启网易或QQ邮箱的SMTP服务服务,详情百度。(基本都是在邮箱 设置 设置POP3/SMTP/IMAP 中开启) #以下为个人所做磁盘预警发送案例 #邮件 def _format_addr(s): name, addr = parseaddr(s) return formataddr(( 阅读全文
posted @ 2020-01-17 11:27 小君~ 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.iteye.com/blog/halfish-1706810 环境: Python: 3.6 系统:server 2016 设计模块包:wmi #pip install wmi import wmi def get_disk_info(): """ 获取物理磁盘信息。 阅读全文
posted @ 2020-01-16 17:47 小君~ 阅读(2555) 评论(0) 推荐(0) 编辑
摘要: 编辑pipelines.py,添加自定义pipelines类: # -*- coding: utf-8 -*-# Define your item pipelines here## Don't forget to add your pipeline to the ITEM_PIPELINES set 阅读全文
posted @ 2020-01-10 16:39 小君~ 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_22238533/article/details/72395564 如果不考虑序号问题,要直接排序则使用pandas sort_values函数 df.sort_values(by='排序字段',axis=0,ascending=True, i 阅读全文
posted @ 2020-01-07 09:43 小君~ 阅读(10013) 评论(0) 推荐(0) 编辑
摘要: #sql查询字段名,注释操作拼接 #查询字段名和注释 select COLUMN_NAME,COLUMN_COMMENT from information_schema.COLUMNS where table_name = '表名' and table_schema = '库名' order by 阅读全文
posted @ 2019-12-19 13:19 小君~ 阅读(1941) 评论(0) 推荐(0) 编辑
摘要: #体赛反爬破解 import json, time import websocket import ssl #https://www.tisai.com/ class OTC: url = 'wss://push.tisai.com:37272/' #定义好请求的数据 data_info = {"t 阅读全文
posted @ 2019-12-18 16:39 小君~ 阅读(516) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver import time import requests from requests.cookies import RequestsCookieJar from selenium.webdriver.chrome.options impor 阅读全文
posted @ 2019-12-18 14:57 小君~ 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 import datetime from datetime import timedelta now = datetime.datetime.now() #今天 today = now #昨天 yesterday = now - timedelta(days=1) #明天 阅读全文
posted @ 2019-11-26 16:48 小君~ 阅读(2528) 评论(0) 推荐(1) 编辑