Grace to you and peace from God our Father and the Lord Jesus Christ.
I give thanks to my God always for you because of the grace of God that was given you in Christ Jesus, that in every way you were enriched in him in all speech and all knowledge— even as the testimony about Christ was confirmed among you— so that you are not lacking in any gift, as you wait for the revealing of our Lord Jesus Christ, who will sustain you to the end, guiltless in the day of our Lord Jesus Christ. God is faithful, by whom you were called into the fellowship of his Son, Jesus Christ our Lord.
smallbrowser
pip install smallbrowser
A small HTTP browser library in Python based on the requests library.
Dependency
All due credits to requests and pyquery Python libraries.
Concept
This library is only composed of five (5) methods.
- Browser#type(String url)
- Browser#enter()
- Browser#fillup(dict form)
- Browser#submit()
- Browser#response
Similar to what you do with a browser, you type the URL and press enter to load the URL. Then, you will get a response back. When there is a form, you fill up the form and click submit.
Usage
The code below will print out the raw HTML of https://www.google.com website.
from smallbrowser import Browser
browser = Browser("browser.storage")
response = browser.type("https://www.google.com").enter().response
print(response.text)
The Browser#response is the return object from requests library.
When initializing the Browser object, you need to pass a path to a directory, which is named browser.storage. This directory is automatically created by the library. This will contain session information so that your session may be saved.
For debugging purposes, you may open the browser.storage/contents and browser.storage/responses directory that contains information about all your visited websites.
GLORY BE TO OUR LORD JESUS CHRIST. JESUS LOVES YOU.
Release files for smallbrowser 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smallbrowser-0.2.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smallbrowser-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / smallbrowser-0.2.1.tar.gz
| Download URL | smallbrowser-0.2.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b204cd016f1285dd92a2825d31f67aea1ce7f11bf54649167fa3a253d4c37ff1
|
|
BLAKE2b-256 checksum How to use checksums |
0e9bacdf94222d4565edcc546ae9bde38a8673e24bd61b46b6807bc4d931da29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7
|
Release files / smallbrowser-0.2.1-py3-none-any.whl
| Download URL | smallbrowser-0.2.1-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0ceeb087c442e260d247d3af9bef1164b0fcc8f0397ec07a3c710c69326b59e
|
|
BLAKE2b-256 checksum How to use checksums |
c2f29bbef2fe443a2aa76a3e4fd1a5f6d20677ad9485651cc2af070c177f202c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7
|