Skip to content

Instantly share code, notes, and snippets.

@tudouya
tudouya / Build Option
Created January 4, 2019 02:23
Spring Boot Hot Reload
Second, verify that the option check-box
```
File->Setting –> Build, Execution, Deployment –> Compiler–>Build project automatically
```
is selected.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2021-08-27 11:23:40
# @Author : Your Name ([email protected])
# @Link : link
# @Version : 1.0.0
import re
from urllib import parse
from datetime import datetime, timedelta
@tudouya
tudouya / requests.py
Created October 26, 2021 02:10 — forked from random-robbie/requests.py
Python Requests Ignore Bad SSL certificate
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
URL = "https://www.somesitewithbadssl.com"
headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0","Connection":"close","Accept-Language":"en-US,en;q=0.5","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Upgrade-Insecure-Requests":"1"}
response = session.get(URL, headers=headers, timeout=15, verify=False)
result = response.text
print (result)