-
Notifications
You must be signed in to change notification settings - Fork 0
Home
joginder edited this page Jul 31, 2017
·
9 revisions
this repo is to provide some quick and useful scripts to do stuff.
One of the actually useful scripts is url_status.py which you can download and modify accordingly.
this script takes URLs as input from std input and gives out the status of every URL.
when you have a lot of URLs to test and you want to know which URL is invalid or 404 or whatever
the script is fairly simple. Uses curl and grep ( no python module needs to be installed ). And it uses threads, hence, its so... fast.
testing, learning.
cat the URLs to script
$ cat your_url_list_file.txt | [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py)
or
$ some_stuff | [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py)
redirect input to the script
$ [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py) < your_url_list_file.txt
or
run and give input from the terminal prompt
$ [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py) < enter >
https://example.com
https://anothersite.com
https://some.example.com
< crl + d > < enter >
don't want download it? use it like this:
$ python -c "$(curl -s https://raw.githubusercontent.com/jogind3r/scripts/master/url_status.py)" < your_list_file.txt
or
$ cat your_list_file.txt | python -c "$(curl -s https://raw.githubusercontent.com/jogind3r/scripts/master/url_status.py)"
or just input from stdin
$ python -c "$(curl -s https://raw.githubusercontent.com/jogind3r/scripts/master/url_status.py)" < enter >
https://example.com
https://anothersite.com
https://some.example.com
< crl + d > < enter >
jogind3r@gmail.com | +91 9915468410 | https://linkedin.com/in/jogind3r