Metadata-Version: 2.1
Name: DynamicHtml
Version: 1.0.1
Summary: An extremely simple library used for gathering html from dynamic webpages using Pyppeteer.
Home-page: https://github.com/Jibble330/DynamicHtml
Author: Jibble
License: MIT
Platform: UNKNOWN
Requires-Python: >= 3.4
Description-Content-Type: text/markdown

# 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
```python
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:
```python
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.


