Basic Tool for automated testing if libraries exists
Project description
<gitlab-url>/-/settings/ci_cd
Install
pip install webpagetester
To generate an executable run:
pyinstaller webtester.py
The executable to run is dist/cli/cli or dist/cli/cli.exe if you’re on Windows.
Usage
enter:
webpagetester --help
to see all current options.
Test single URLs
webpagetester -p http://google.de -p https://google.de -p http://this.does.not.exit
Returns:
http://google.de Web site exists
https://google.de Web site exists
http://this.does.not.exit Web site does not exist
Press Enter to close...
From File
Create a file with an unknown url in each line.
pages.txt:
http://google.de
https://google.de
http://this.does.not.exit
Then use the following command:
webpagetester -f pages.txt -o report.txt
Returns:
http://google.de Web site exists
https://google.de Web site exists
http://this.does.not.exit Web site does not exist
Press Enter to close...
and in report.txt:
FOUND:
======
http://google.de
https://google.de
NOT FOUND:
==========
http://this.does.not.exit
Saving a "Screenshot"
Create a file with an unknown url in each line.
Then use the following command:
webpagetester -p https://google.de -s True
Returns:
http://google.de Web site exists
Press Enter to close...
and a https#$$google_de.html
-file
Be aware that links still work so to be safe only look at the files without internet!
Testing
python setup.py test
TODO
- page scanner
- screenshoots (maby via html response)
- vpn
- stem.torproject.org
- or https://medium.com/@jasonrigden/using-tor-with-the-python-request-library-79015b2606cb
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
Close
Hashes for webpagetester-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddd170770bf73c30fa2ed83ad455ef947b1a14b358387758df9e9f8faadae362 |
|
MD5 | 98f2aababe23414cac69c8ab6201cfda |
|
BLAKE2b-256 | 03b45b3635fabcff877e096335db138ee08c5dfcca3fab138ed9e6ed31c4a449 |