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-
Solved it myself, with help of @TimberlakeCoding & @MartijnPieters. Here it is-
$ wget -q -O - https://www.googleapis.com/pagespeedonline/v3beta1/mobileReady?url=http://facebook.com | grep "\"pass\": true"
If the exit status code is 0, that means website is mobile friendly else not.
Hope it helps someone! Thanks