Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python requests force ipv4

import socket
import requests.packages.urllib3.util.connection as urllib3_cn
 
def allowed_gai_family():
    family = socket.AF_INET    # force IPv4
    return family
 
urllib3_cn.allowed_gai_family = allowed_gai_family
Comment

PREVIOUS NEXT
Code Example
Python :: chiffre cesar python 
Python :: how to ask someone for their name in python 
Python :: get list of objects in group godot 
Python :: jupyter notebook attach image 
Python :: upgrade to latest django version 
Python :: python get date next week 
Python :: mongodb connection using python 
Python :: python fill table wiget 
Python :: f string python not working in linux 
Python :: flatten an irregular list of lists 
Python :: somma in python 
Python :: pandas dataframe select rows not in list 
Python :: datetime current year 
Python :: how to re run code in python 
Python :: datetime date of 10 years ago python 
Python :: cv2 waitkey 
Python :: none address in python 
Python :: pt_core_news_sm spacy download 
Python :: error 401 unauthorized "Authentication credentials were not provided." 
Python :: check if numpy array is 1d 
Python :: random choice dictionary python 
Python :: wxpython custom dialog 
Python :: Savefig cuts off title 
Python :: get date and time python 
Python :: get time between things python 
Python :: how to clear checkbox in tkinter 
Python :: how to check if its later than python 
Python :: pandas count nan in each row 
Python :: python transfer file 
Python :: split dataset into train, test and validation sets 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =