Skip to main content

Dynamic Html

This is a simple library to get the html of a dynamic webpage. It deals with all of the Pyppeteer code behind the scenes so you don't have to. It is also synchronous, so you don't have to mess with async functions.

Examples

from DynamicHtml import DynamicHtml

url = 'https://www.google.com'
content = DynamicHtml(url)

This returns the rendered html for this webpage

You can also execute Javascript code before retrieving the content like so:

from DynamicHtml import DynamicHtml

url = 'https://www.google.com'
script = '() => {window.scrollBy(0, document.body.scrollHeight);}'

content = DynamicHtml(url, script)

This will simply scroll to the bottom of the page using Javascript before retrieving the content. This could be useful to load specific lazily loaded elements and such.

Metadata

Release files for DynamicHtml 1.0.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 DynamicHtml 1.0.3
File Size Uploaded
DynamicHtml-1.0.3.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DynamicHtml 1.0.3
File Interpreter ABI Platform
DynamicHtml-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 4.1 kB

Release files / DynamicHtml-1.0.3.tar.gz

Download URL DynamicHtml-1.0.3.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8f8f8964681a6cfe7d0df03b4fd20e5aa69f08f22a29905970b1567ca52ebc27
BLAKE2b-256 checksum
How to use checksums
2d28098dc4135fb3585b97b0e16a1cb57843ba2782fb9f0d6964f118dcb24283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / DynamicHtml-1.0.3-py3-none-any.whl

Download URL DynamicHtml-1.0.3-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3662e0e727ba03b11df5443ad7938c73fd2163b19b64dac8670d8649ba4e2f13
BLAKE2b-256 checksum
How to use checksums
2329d7a115d6cb875f44cc74f15c4d49e19e2575a0a7357439d5d82cd2e93322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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