Python internet library
Project description
Netway 
Netway is internet library that allows you to use internet. Example use get and post methods on websites, create network server and client side scripts and more...
Installation
pip install netway
Usage
Note : Dont forget to use https or http while using get and post methods...
- Simple GET Request :
import netway
nw = netway.get("https://google.com/")
print(nw.headers)
# Avaliable GET Modules :
# .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
# .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.8.tar.gz
(3.9 kB
view hashes)