Skip to main content

An HTML utility package

Project description

snag-dom

A simple Python project to make accessing HTML elements easier; really more of an experiment than a full-fledged project.

It is recommended that you create a virtual environment before installing.

pip install virtualenv

virtualenv ev

source ev/bin/activate

Then install snag-dom.

pip install snag-dom

To use, simply call S with the CSS selector and the URL you intend to select elements from.

from snag_dom import S
header = S('h1', 'http://www.example.com')[0]
print(header)

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

snag-dom-0.10.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file snag-dom-0.10.tar.gz.

File metadata

  • Download URL: snag-dom-0.10.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for snag-dom-0.10.tar.gz
Algorithm Hash digest
SHA256 5247a607be011be4eb83d28582c7e980560b4607adfcfaa86184422a6d5c794b
MD5 6671827f491449c96648bf44a09d5a69
BLAKE2b-256 e2379b853c8a1b0fbb7c82e2ebba88cf0758999d27e06440bb5bd20c03fe7b37

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