Skip to main content

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

  1. The logging off the Browser needs be disabeld.
  2. A methode to determin if a website has loaded fully. At the moment the software just waits a 3 Seconds.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

requestRender-0.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file requestRender-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: requestRender-0.0.2-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

Hashes for requestRender-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 691711732a1ea3fae193c5c56e00615bdde387a793c40ddccbe68ab2c7947143
MD5 c1af715ac5f69c7f7967b3370e6a9b85
BLAKE2b-256 90f76168b5665be4d49df1eb5bf2f2b8f44e5c70f232011ffd7f63d6555f0557

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