Sanchit R Sanchit R - 9 months ago 49
Bash Question

Script to Mobile-Friendly test

I wanted to write a shell/python script which will check if a website is mobile friendly or not. Using browser this can be easily done by visiting-<website_addr>

For eg.-

I tried fetching the content through
commands but it did not worked.

How can I do so?


Solved it myself, with help of @TimberlakeCoding & @MartijnPieters. Here it is-

$ wget -q -O -‌​ | grep "\"pass\": true" 

If the exit status code is 0, that means website is mobile friendly else not.

Hope it helps someone! Thanks