Skip to main content

<p align=’center’><img src=”https://raw.githubusercontent.com/Anikeshpatel/dompy/master/docs/assets/logos/Group%205.png” /></p> <!– # Dompy –> JavaScript Dom Api for Python, Html Parser and a Web scraping tool in python

##### Installation `bash pip install dompy-parser `

##### Basic API

`python >>> from dompy import Document >>> document = Document.fromURL('https://www.lipsum.com') >>> document.title 'Lorem Ipsum - All the facts - Lipsum generator' >>> elements = document.getElementsByTag('h3') >>> len(elements) 5 >>> elements[0].innerHTML 'The standard Lorem Ipsum passage, used since the 1500s' ` <!– <center> or </center> –> <p align=’center’>or<p>

`python >>> from dompy import DompyParser >>> document = DompyParser.parse('<div><h3 color="blue" align="center">Abc</h3><h3>Xyz</h3></div>') >>> elements = document.getElementsByTag('h3') >>> len(elements) 2 >>> elements[0].innerHTML 'Abc' >>> elements[0].attributes {'color': 'blue', 'align': 'center'} ` ___

#### License Dompy is GNU GPL v3.0 licensed, as found in the LICENSE file.

Metadata

Release files for dompy-parser 0.1.1

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

Source distribution (sdist)

Source distribution for dompy-parser 0.1.1
File Size Uploaded
dompy_parser-0.1.1.tar.gz 4.4 kB Details

Release files / dompy_parser-0.1.1.tar.gz

Download URL dompy_parser-0.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e3fb2f56b1579062cfd61f55febaf1131f324ed7442994cadf11053da1cb8860
BLAKE2b-256 checksum
How to use checksums
c9726054c53fca3c5b51652d173339c3b238a18f73071be81a7812b848c45cc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1

1 release 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