Python相关工具及操作记录(待续)
1、PyMySQL安装(数据库)
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
python3 pip.exe install PyMySQL
安装包下载: https://github.com/PyMySQL/PyMySQL
参考网址: https://www.cnblogs.com/xsmile/p/7750282.html
2、pyinstaller安装(py文件打包成exe)
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
pip install pyinstaller
安装包下载: http://www.pyinstaller.org/downloads.html
参考网址: https://blog.csdn.net/lqzdreamer/article/details/77917493
http://www.cnblogs.com/gopythoner/p/6337543.html
https://blog.csdn.net/weixin_39000819/article/details/80942423
https://blog.csdn.net/weixin_39000819/article/details/80944304
https://www.cnblogs.com/turtle920/p/5370132.html
3、requests安装(网页爬取)
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
pip install requests
安装包下载: https://github.com/requests/requests
参考网址: http://docs.python-requests.org/zh_CN/latest/user/quickstart.html
https://blog.csdn.net/shanzhizi/article/details/50903748
4、Beautiful Soup(爬虫工具 HTML/XML的解析器)
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
pip install beautifulsoup4
安装包下载:
参考网址: http://beautifulsoup.readthedocs.io/zh_CN/latest/
5、Fiddler(抓包工具-网络爬虫(动态加载的JavaScript脚本))
安装包下载: http://www.telerik.com/fiddler
注: fiddler中进行https协议的抓取需要安装证书 证书下载地址:http://www.enhanceie.com/dl/FiddlerCertMaker.exe
参考网址: https://blog.csdn.net/wpyily/article/details/72885586
https://blog.csdn.net/liranke/article/details/37905569
6、解决Python3 控制台输出InsecureRequestWarning的问题
说明: 使用Python3 requests发送HTTPS请求,已经关闭认证(verify=False)情况下,控制台会输出以下错误
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
解决方法: 在代码中添加以下代码
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
7、pygame电子游戏设计模块
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
pip install pygame
安装包下载:
参考网址: https://blog.csdn.net/fengf2017/article/details/79300801
https://www.jb51.net/article/127484.htm
8、python 操作配置文件ini的三种方法
参考网址: https://blog.csdn.net/energysober/article/details/80684200
9、AES加密解密
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
pip install pycryptodome (crypto已停用,需将Python36\Lib\site-packages下crypto文件夹重命名为Crypto)
参考网址: https://pycryptodome.readthedocs.io/en/latest/
https://blog.csdn.net/qq_37258787/article/details/80298084
https://blog.csdn.net/u013578500/article/details/77905924
10、GUI(tkinter)
系统自带
参考网址: https://www.cnblogs.com/aland-1415/p/6849193.html
https://blog.csdn.net/laizhenghong2012/article/details/78988500
11、python-docx(制作word模板)
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
pip install python-docx
官 网: https://pypi.org/project/python-docx/
参考网址: https://www.cnblogs.com/rencm/p/6285304.html
https://blog.csdn.net/sinat_30711195/article/details/80725435
注: 作用 from docx.enum.text import WD_ALIGN_PARAGRAPH (功能:标题居中)报错,正确为 from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
后根据源代码文件text.py查到,WD_ALIGN_PARAGRAPH 是类 WD_PARAGRAPH_ALIGNMENT 的别名,不知道为何使用别名报错
12、Selenuim(自动化测试工具-网络爬虫,支持各种主流浏览器)
安装命令: cd C:\Program Files\Python36\Scripts (进入Python安装目录)
pip install selenium
官 网: https://selenium-python.readthedocs.io/index.html
参考网址: https://www.cnblogs.com/yufeihlf/p/5717291.html
https://blog.csdn.net/c406495762/article/details/72331737