当前位置:网站首页>Secure credit
Secure credit
2022-04-23 17:58:00 【Feng Ye 520】
import urllib
import ssl
#https = http+ssl( Secure socket layer )
# Manually increase credit
# Create a SSLContext object
context = ssl._create_unverified_context()
url = "https://www.12306.cn/mormhweb/"
ua_headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"}
# HTTP Request
req = urllib.request.Request(url,
headers=ua_headers)
# HTTP Response
response = urllib.request.urlopen(req,
context=context)
with open("12306.html", "wb") as f:
f.write(response.read())
#CertificateError:
版权声明
本文为[Feng Ye 520]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230546152115.html
边栏推荐
- Error in created hook: "referenceerror:" promise "undefined“
- 2022 Jiangxi Photovoltaic Exhibition, China Distributed Photovoltaic Exhibition, Nanchang Solar Energy Utilization Exhibition
- 关于gcc输出typeid完整名的方法
- C1小笔记【任务训练篇二】
- Hcip fifth experiment
- The method of changing a value in the array and a value in the object of wechat applet
- MySQL advanced index [classification, performance analysis, use, design principles]
- Thirteen documents in software engineering
- Examination question bank and online simulation examination of the third batch (main person in charge) of special operation certificate of safety officer a certificate in Guangdong Province in 2022
- [UDS unified diagnostic service] IV. typical diagnostic service (4) - online programming function unit (0x34-0x38)
猜你喜欢

关于gcc输出typeid完整名的方法

Random number generation of C #
![MySQL advanced index [classification, performance analysis, use, design principles]](/img/96/b031868602a7b8ba4edd0d74c843b3.png)
MySQL advanced index [classification, performance analysis, use, design principles]

Anchor location - how to set the distance between the anchor and the top of the page. The anchor is located and offset from the top

Nat commun | current progress and open challenges of applied deep learning in Bioscience

Clion installation tutorial

Hcip fifth experiment

Laser slam theory and practice of dark blue College Chapter 3 laser radar distortion removal exercise

【Appium】通过设计关键字驱动文件来编写脚本

2022制冷与空调设备运行操作判断题及答案
随机推荐
Romance in C language
.105Location
Implementation of k8s redis one master multi slave dynamic capacity expansion
Halo open source project learning (II): entity classes and data tables
Auto.js 自定义对话框
Tell the truth of TS
云原生虚拟化:基于 Kubevirt 构建边缘计算实例
An example of linear regression based on tensorflow
Hcip fifth experiment
How to read literature
undefined reference to `Nabo::NearestNeighbourSearch
Click Cancel to return to the previous page and modify the parameter value of the previous page, let pages = getcurrentpages() let prevpage = pages [pages. Length - 2] / / the data of the previous pag
2022 Jiangxi Photovoltaic Exhibition, China distributed Photovoltaic Exhibition, Nanchang solar energy utilization Exhibition
587. Install fence / Sword finger offer II 014 Anagrams in strings
油猴网站地址
Cloud native Virtualization: building edge computing instances based on kubevirt
.104History
ROS package NMEA_ navsat_ Driver reads GPS and Beidou Positioning Information Notes
SQL optimization for advanced learning of MySQL [insert, primary key, sort, group, page, count]
I/O多路复用及其相关详解