Skip to main content

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 details)

Uploaded Source

File details

Details for the file netway-0.8.tar.gz.

File metadata

  • Download URL: netway-0.8.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for netway-0.8.tar.gz
Algorithm Hash digest
SHA256 a1e9606ee203df8ce8d300b12c718df58e2ff82afdf81fa0c869dc4d11ac2fca
MD5 c33ca6d1824e840856ababf758a6f255
BLAKE2b-256 0285aa0bb6fb14110fba0bed235e26d4df246eed5f4536eba0edd50ea3fd524b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page