Skip to main content

Some handy Python utilities and code snippets used repeatedly by the author and considered beginner to intermediate level of difficulty. Published just in case they're of use to other Pythonistas somehwere, some time.

Project description

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()
>>> cs.start()

To access individual functions in clevergui:

>>> from cleverutils import start_gui, button_menu, text_input

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

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

cleverutils-0.16.tar.gz (9.9 kB view details)

Uploaded Source

File details

Details for the file cleverutils-0.16.tar.gz.

File metadata

  • Download URL: cleverutils-0.16.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for cleverutils-0.16.tar.gz
Algorithm Hash digest
SHA256 ee093ca6c0709adb0210638f6ac3c951baa87c6f3d5f7f0f0dd1b2d5a5cf3d04
MD5 b8f4b062e849cf349c7f885d44dd419e
BLAKE2b-256 f0d7c26e35a978edb5e286b615704ce10a5c6b3d493a3e165d68072258f00760

See more details on using hashes here.

Supported by

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