A PyPI package that provides a simple headless Selenium web browser for scraping wrapper around reactive websites.
Project description
requestRender
A PyPI package that provides a simple headless Selenium web browser for scraping wrapper around reactive websites.
How to install it
pip install requestRender
You also need the have Chrome installed to run this, because it uses Selenuim with Chrome as a headless Browser.
How to use it?
import requests
import requestRender
# Start a session
session = requests.Session()
# Start the browser
browser = requestRender.requestRender.RequestRender(session)
# Get the response from the website
response = session.get("https://www.midjourney.com")
# Render the response to get the render the javascript content
html = browser.renderResponse(response)
# Save the html to a file
with open("index.html", "w", encoding="utf-8") as f:
f.write(html)
What needs to Improve
- The logging off the Browser needs be disabeld.
- A methode to determin if a website has loaded fully. At the moment the software just waits a 3 Seconds.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requestRender-0.0.3.tar.gz.
File metadata
- Download URL: requestRender-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
417704f997d5ede727ea805b92d9a4d5aef04e93627e1fcf764beb88bad7a36b
|
|
| MD5 |
c52b2e0c9036bca4cdb13b7b638a3a26
|
|
| BLAKE2b-256 |
702f21b372fcaaa62d7cf9645d86f6268821878aa39f432064a77fd3b3d2cd3e
|
File details
Details for the file requestRender-0.0.3-py3-none-any.whl.
File metadata
- Download URL: requestRender-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ef0dc609409b65a145fbdf94d719689f77e216497a7307d5ae566a93d65797c
|
|
| MD5 |
fc1581c56f8ab48753c02d3bfd8f1a6f
|
|
| BLAKE2b-256 |
d28d5a29fd427004787e6b61de2bf48b41af90884eb462c86a44c49e75fd612a
|