上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 1. 安装pdfkit pip3 install pdfkit 2. 安装wkhtmltopdf 下载wkhtmltopdf安装包 https://wkhtmltopdf.org/downloads.html 安装后在系统Path添加wkhtmltopdf的bin路径 3. 简单使用 将本地html 阅读全文
posted @ 2023-04-12 12:47 wstong 阅读(210) 评论(0) 推荐(0)
摘要: import datetime now = datetime.datetime.now() # now = datetime.datetime(2023,4,9) now.strftime('%Y-%m-%d %H:%M:%S') # 2023-04-09 21:00:41 # 加7天 delta7 阅读全文
posted @ 2023-04-09 21:10 wstong 阅读(195) 评论(0) 推荐(0)
摘要: 因为公网ip是动态的,想做一个在ip发生改变后邮件提醒 1. 首先需要开启smtp服务 开启后复制授权密码 2. 邮件发送 import smtplib from email.mime.text import MIMEText From = 'ZZZZZZZZZZZZZZZZ@163.com' # 阅读全文
posted @ 2023-04-02 21:59 wstong 阅读(39) 评论(0) 推荐(0)
摘要: 1. 安装PyPDF2 pip3 install PyPDF2 2. 分割 from PyPDF2 import PdfReader, PdfWriter file = input() pdf_reader = PdfReader(file) for i in range(len(pdf_reade 阅读全文
posted @ 2023-03-28 23:47 wstong 阅读(185) 评论(0) 推荐(0)
摘要: 1. 安装 pip3 install paddleocr -i https://pypi.tuna.tsinghua.edu.cn/simple pip3 install paddlepaddle -i https://mirror.baidu.com/pypi/simple 2. 使用 from 阅读全文
posted @ 2023-03-21 19:54 wstong 阅读(190) 评论(0) 推荐(0)
摘要: 1. 安装tesseract-ocr 下载链接:https://digi.bib.uni-mannheim.de/tesseract/ 安装后添加环境变量 测试安装情况 2. 安装pytesseract pip3 install pytesseract -i https://pypi.tuna.ts 阅读全文
posted @ 2023-03-20 21:37 wstong 阅读(104) 评论(0) 推荐(0)
摘要: 先找一个网站,然后使用requests获取返回值并使用beautifulsoup解析,最后使用pandas导出excel文件 脚本如下 import pandas as pd import requests import json from tqdm import trange from bs4 i 阅读全文
posted @ 2023-03-16 20:58 wstong 阅读(299) 评论(0) 推荐(0)
摘要: 1. 脚本如下 需要引入jquery.min.js,FileSaver.min.js和jquery.wordexport.js(注意顺序) <!DOCTYPE html> <html> <head> <script src="https://cdn.bootcdn.net/ajax/libs/jqu 阅读全文
posted @ 2023-03-15 23:36 wstong 阅读(961) 评论(2) 推荐(1)
摘要: 1. ddddocr安装 建议使用国内镜像安装 pip3 install ddddocr -i https://pypi.tuna.tsinghua.edu.cn/simple 2. 图片验证码 import ddddocr ocr = ddddocr.DdddOcr(show_ad=False) 阅读全文
posted @ 2023-03-13 21:12 wstong 阅读(2940) 评论(0) 推荐(1)
摘要: import requests import m3u8 import os from multiprocessing.dummy import Pool from tqdm import tqdm from retry import retry from urllib.parse import ur 阅读全文
posted @ 2023-03-13 19:58 wstong 阅读(369) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页