Skip to main content

cleverutils

Replace with your own inspirational logo here

1. OVERVIEW

Some handy Python utilities and code snippets (beginner to intermediate level) used so often by the author that he took the time to package them up and share on Github/PyPI. Hopefully they might be of use to other Pythonistas somehwere, some time...

2. INSTALLATION

pip install cleverutils

3. BASIC USE

To access the main Session/Login/Scraper classes:

>>> from cleverutils import CleverSession, Login_to
>>> cs = CleverSession(echo=True)
>>> cs.start()

To access individual functions in clevergui:

>>> from cleverutils import start_gui, button_menu, text_input, get_folder, progress_bar

start_gui, button_menu, and text_input are simply wrappers around frequently used PySimpleGUI functions using a predefined "house style".

4. UNDER THE BONNET

Uses selenium for webbrowser automation and scraping, PySimpleGUI for nice, simple input prompts(*) and keyring for getting/setting credentials. Uses cleverdict for general data management and its handy auto-save/JSON features.

chomedriver.exe is included in this repository but you can replace with the latest selenium web-driver for your preferred browser. Please see selenium docs/tutorials widely available elsewhere.

5. CONTRIBUTING

Hopefully cleverutils will be of interest to people getting started with selenium and web scraping generally or working with Github, Twitter etc. and not wanting to use their API. cleverutils isn't super elegant or even PEP8 compliant, but does solve simple web scraping challenges quickly, understandably, and extensibly.

Contact Peter Fison peter@southwestlondon.tv or feel free to raise Pull Requests / Issue in the normal Github way.

6. PAYING IT FORWARD

If cleverutils helps you save time and focus on more important things, please feel free to to show your appreciation by starring the repository on Github.

I'd also be delighted if you wanted to:

Buy Me A Coffee

Release files for cleverutils 0.22.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cleverutils 0.22.3
File Size Uploaded
cleverutils-0.22.3.tar.gz 19.1 kB Details

Release files / cleverutils-0.22.3.tar.gz

Download URL cleverutils-0.22.3.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
55883b200a993751eda0a4a3f78e51fb8da76b29169037969e716202acba62e6
BLAKE2b-256 checksum
How to use checksums
e1c36bfa8d2cd9fe5acbbbc275aa297d987e1a802cba474b6ce93804dc6b5287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
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