Skip to main content

CLI tool for stripping hidden form values from an HTML document

Project description

strip-hidden-form-values

PyPI Changelog Tests License

CLI tool for stripping hidden form values from an HTML document

Installation

Install this tool using pip:

$ pip install strip-hidden-form-values

Usage

You can pipe HTML into this tool:

curl http://... | strip-hidden-form-values > output.html

Or pass it a filename:

strip-hidden-form-values input.html > output.html

The tool will replace the value= attribute of any hidden form fields with a blank string, so the following:

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="p8nVm4PgVPA" />

Will be replaced with:

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="" />

All other HTML will remain unchanged.

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd strip-hidden-form-values
python -m venv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

strip-hidden-form-values-0.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

strip_hidden_form_values-0.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file strip-hidden-form-values-0.2.tar.gz.

File metadata

  • Download URL: strip-hidden-form-values-0.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for strip-hidden-form-values-0.2.tar.gz
Algorithm Hash digest
SHA256 08cee3deff8aedcb57126a8c0c03e2fe76999daae06d83b7e1ff574942cdf01c
MD5 e1651a613ebc1ccfd12244fced70e0da
BLAKE2b-256 7b902aecfd9de835d31b021f2f711ff6ec6c115da32f7a90f3622520b4362f1a

See more details on using hashes here.

File details

Details for the file strip_hidden_form_values-0.2-py3-none-any.whl.

File metadata

  • Download URL: strip_hidden_form_values-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for strip_hidden_form_values-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a6f71633e2c86dc931a60fd2d5b2dafd863118f80fd583e6b9ff2ea9b0c67793
MD5 f392d06d4b1820fcb9f37699f2f0d74f
BLAKE2b-256 be78f3ad39e905ed0cb80f24acf299a3713e8f64a2ed757db1d4059246ea8174

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