Python internet library
Project description
Netway
Large Network library for python.
Installation
pip install netway
Usage
- Simple GET Request :
import netway
nw = netway.get("https://google.com/")
print(nw.headers)
# Avaliable GET Modules :
# .domain
# .url
# .http
# .ip
# .tld
# .text
# .headers
# .status_code
- Simple POST Request :
import netway
# Payload
payload = {
"requestType": "EMAIL_SIGNIN",
"email": "jomavex666@hoxds.com",
"continueUrl": "https://fireship.io/",
"canHandleCodeInApp": True
}
proxy = {
"http" : "51.38.191.151:80"
}
header = {
"Content-Type" : "bla bla"
}
url = "https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=AIzaSyBns4UUCKIfb_3xOesTSezA9GbEyuIU7XA"
nw = netway.post(url,payload=data,proxies=proxy,headers=header)
print(nw.text)
# headers=header
# proxies=proxy_dict
# payload=data
# you are free to use them... Examples :
# nw = netway.post(url)
# nw = netway.post(url,payload=data)
#...
# Avaliable POST Modules :
# proxies = proxy
# headers = header
# payload = data
# .domain
# .url
# .http
# .ip
# .tld
# .text
# .headers
# .status_code
You can use same GET modules for POST request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netway-0.5.tar.gz
(4.2 kB
view hashes)