CLI tool for stripping hidden form values from an HTML document
Project description
strip-hidden-form-values
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
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
Close
Hashes for strip-hidden-form-values-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06064446aedcbd5d6e85f36091ef76d162b30c0d4e92ffdd033fd499d034fe84 |
|
MD5 | a0c660a7aade47fa58b6d6555325945b |
|
BLAKE2b-256 | 8c27316318c72fe29b487a97cff0648a8f4f5739a57625d33b06d09a8ebca7c5 |
Close
Hashes for strip_hidden_form_values-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2a50e01b7675d6bc7b9ea8293e5931966bde66ced729689b5986771ab9fd41 |
|
MD5 | 5fa8d8e0e535538003efc55b43ddea21 |
|
BLAKE2b-256 | bb2ac22fe985c681f4d2db9185ec63d72d2fea06fb14561ed351fced59c263fb |