Skip to main content

A package that helps you to scrap web pages. It shows you a lot of information about the page.

Project description

PyExpose PyPI

PyExpose is a Python library for helping you to scrap web pages. It shows you a lot of information about the page.

Notes

Version 0.0.1:

  • First version

Installation

Use the package manager to install.

pip install -U pyexpose

Usage

After install the package:

from py_expose import expose

Create an instance of ExposeHtmlDocument. The constructor needs an URL. This URL will be scraped.

expose_doc = new ExposeHtmlDocument('https://some-random-url')

Return total of CSS files referenced in the html page

total_css = expose_doc.count_css()

Return total of JS files referenced in the html page

total_js = expose_doc.count_js()

Return total of Html Elements

total_html_elements = expose_doc.count_total_elements()

Return total of META elements

total_meta = expose_doc.count_meta_elements()

Return all the JS content

total_js_content = expose_doc.get_js_content()

Return all the CSS content

total_css_content = expose_doc.get_css_content()

Return the total of onclick events in all elements in the html

total_onclick_events = expose_doc.count_onclick_events()

Return the total of Forms in html page

total_forms = expose_doc.count_forms_elements()

Return the Action and HttpMethod from Form

form_info = expose_doc.get_form_info()

Return the size in Kb of the page

page_size = expose_doc.get_page_size()

Return the onclick values

onclick_values = expose_doc.get_onclick_values()

Return True/False

has_ajax_call = expose_doc.has_ajax_call()

Return the JSON with the amount of info found

report_json = expose_doc.generate_report()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

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

Source Distribution

pyexposehtml-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

PyExposeHtml-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pyexposehtml-0.0.2.tar.gz.

File metadata

  • Download URL: pyexposehtml-0.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for pyexposehtml-0.0.2.tar.gz
Algorithm Hash digest
SHA256 dcfdbcdaf940bf46e3ae5166ba8a3bcde2d6f21b3e91e46a31b537202baf4d65
MD5 0612652bc577ea1cf3f67b27dc91e6da
BLAKE2b-256 3862c77a4d16e59606676cf600e3bc29fda0c5fbb8fedf245a436fb81144c5e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyExposeHtml-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for PyExposeHtml-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3befc25ace8a0ef1d5b9b83b774f30f270174acae617a04edcb590aee108fbb3
MD5 bf00fade2268aad129bf633f4af9a36b
BLAKE2b-256 2ecdcc0a905ecbd7bf9c6730571b2e678dde37d62c47cc6087997420a2fcb91f

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