Skip to main content

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.

  1. Browser#type(String url)
  2. Browser#enter()
  3. Browser#fillup(dict form)
  4. Browser#submit()
  5. 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smallbrowser-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smallbrowser-0.2.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file smallbrowser-0.2.0.tar.gz.

File metadata

  • Download URL: smallbrowser-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for smallbrowser-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5e0265ae68dc6f81ba0388252eb8d0922c5d766e4eb7ea21808ebca2234ad49b
MD5 d8bacc8f316152d177b3736312d1b9d8
BLAKE2b-256 94220ff95d6f80ef15a5136ee3542cd9dfa670a8f1adc8824480a6aa38f6c428

See more details on using hashes here.

File details

Details for the file smallbrowser-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: smallbrowser-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for smallbrowser-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d957f8fd0794b0abf1d40f7f66db859c85ace7022ede7d16e61c1c93333de206
MD5 df14905206de5874d3761651509511fe
BLAKE2b-256 a40967f7d217b1f86eb619fff1ccb0f529b5c593c3dc2f153d54b0a81c65fbf1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.3

1 file

0.1.2

2 files

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page