随笔 - 835  文章 - 1 评论 - 40 阅读 - 102万
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

07 2021 档案
easyexcel 自动设置列宽(转)
摘要:来源:oschina 链接:https://my.oschina.net/u/3574106/blog/4287753 如果版本是 3.x 见最后 <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactI 阅读全文
posted @ 2021-07-29 14:58 lshan 阅读(8616) 评论(0) 推荐(1) 编辑
Ubuntu18.04自适应VMware调整桌面大小
摘要:原文:https://blog.csdn.net/weixin_47221359/article/details/109491054 打开终端,先键入 sudo apt-get autoremove open-vm-tools 之后键入 sudo apt-get install open-vm-to 阅读全文
posted @ 2021-07-28 19:20 lshan 阅读(762) 评论(0) 推荐(0) 编辑
IDEA将maven项目打包时同时带上项目的maven依赖(转)
摘要:原文:https://www.cnblogs.com/HelloBigTable/p/12383369.html 我们在使用IDEA中maven的LifeCycle去打包时,打出的jar包只包含代码,在使用时会出现“找不到包或者无法加载“ClassNotFoundException”报错 这是因为我 阅读全文
posted @ 2021-07-23 23:03 lshan 阅读(1573) 评论(0) 推荐(0) 编辑
python 定时框架APScheduler
摘要:pip install apscheduler APScheduler提供了七种调度器: BlockingScheduler:适合于只在进程中运行单个任务的情况,通常在调度器是你唯一要运行的东西时使用。 BackgroundScheduler: 适合于要求任何在程序后台运行的情况,当希望调度器在应用 阅读全文
posted @ 2021-07-20 16:57 lshan 阅读(104) 评论(0) 推荐(0) 编辑
python redis
摘要:显例: pip install redis import redis class RedisUtils(object): def __init__(self): if not hasattr(RedisUtils, 'pool'): RedisUtils.getPool() #创建redis连接po 阅读全文
posted @ 2021-07-20 14:50 lshan 阅读(89) 评论(0) 推荐(0) 编辑
SeleniumChromeUtils selenium 3.12.0
该文被密码保护。
posted @ 2021-07-19 18:56 lshan 阅读(3) 评论(0) 推荐(0) 编辑
ubuntu16安装anaconda3及卸载--Ubuntu
摘要:卸载:https://blog.csdn.net/m0_37407756/article/details/77968724 安装:https://www.runoob.com/python3/python3-install.html python3.7调整优先级: https://www.cnblo 阅读全文
posted @ 2021-07-18 23:29 lshan 阅读(168) 评论(0) 推荐(0) 编辑
mitmproxy 抓包工具(1)
摘要:官网:https://docs.mitmproxy.org/stable/addons-examples/ github: https://github.com/mitmproxy/mitmproxy/ mitmproxy 基本使用: EV: ubuntu16.04 python3.7 instal 阅读全文
posted @ 2021-07-18 15:46 lshan 阅读(155) 评论(0) 推荐(0) 编辑
基于alpine创建Scrapy镜像
摘要:在dockerhub上发现了一些更加小的官方镜像: link: https://registry.hub.docker.com/_/python?tab=tags&page=1&ordering=last_updated docker pull python:3.7.11-slim 113MB do 阅读全文
posted @ 2021-07-14 10:32 lshan 阅读(84) 评论(0) 推荐(0) 编辑
ubuntu16.04 搭建简单http代理服务器 TinyProxy
摘要:说明: TinyProxy 貌似不可以设置user/passd 摘要: .timproxy docker部署 . Squid服务 docker部署 (支持用户名密码) 官网: http://www.squid-cache.org/ 1.timproxy docker install : 36M su 阅读全文
posted @ 2021-07-09 09:47 lshan 阅读(1724) 评论(0) 推荐(0) 编辑
git 提交:gnutls_handshake() failed: Error in the pull function
摘要:解决方式: #取消http代理 git config --global --unset http.proxy #取消https代理 git config --global --unset https.proxy ko . 补充:》》》》》》》》》》》》》》》》》》》 为git设置http代理, ht 阅读全文
posted @ 2021-07-08 18:19 lshan 阅读(1748) 评论(0) 推荐(1) 编辑
scrapy-redis redis 认证 & 配置db
摘要:# 使用scrapy_redis的调度器 SCHEDULER = "scrapy_redis.scheduler.Scheduler" # 使用scrapy_redis的去重机制 DUPEFILTER_CLASS = "scrapy_redis.dupefilter.RFPDupeFilter" # 阅读全文
posted @ 2021-07-05 11:35 lshan 阅读(152) 评论(0) 推荐(0) 编辑
python把html网页转成pdf文件
摘要:准备工作 那怎么办呢,python里面有个模块是pdfkit,他可以帮咱们把一个html(也就是一个网页)变成一个pdf文件。 pdfkit是python对wkhtmltopdf这个把网页转成pdf工具的一个封装,所以咱们必须得先安装一个wkhtmltopdf, 这个工具的下载网站是:https:/ 阅读全文
posted @ 2021-07-05 11:03 lshan 阅读(458) 评论(0) 推荐(0) 编辑
Selenium基于PIL实现拼接滚动截图(转)
摘要:原文: https://www.jb51.net/article/184464.htm Selenium Webdriver的 execute_cdp_cmd()来调用一下Chrome DevTools Protocal提供的方法。但是,很遗憾,没有全屏截图的方法。 Selenium2时,还可以使用 阅读全文
posted @ 2021-07-05 10:45 lshan 阅读(177) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示