Title
摘要: 1·解决python爬虫requests.exceptions.SSLError: HTTPSConnectionPool(host='XXX', port=443)问题 方法:先检查pip有没安装cryptography,pyOpenSSL,certifi要是没有先安装 pip install c 阅读全文
posted @ 2021-08-27 18:41 谈亦行 阅读(87) 评论(0) 推荐(0) 编辑
摘要: import pymysql conn = pymysql.connect(host='127.0.0.1', user='root', password='123', db='videos', charset='utf8') cursor = conn.cursor() # 建立存放电影数据的表d 阅读全文
posted @ 2021-08-27 18:28 谈亦行 阅读(56) 评论(0) 推荐(0) 编辑
摘要: # coding utf-8 import socket # Address from email.policy import HTTP HOST = '127.0.0.1' PORT = 8000 # Prepare HTTP response text_content = ''''' HTTP/ 阅读全文
posted @ 2021-08-27 18:26 谈亦行 阅读(32) 评论(0) 推荐(0) 编辑