Skip to content

Instantly share code, notes, and snippets.

@nk23x
Last active August 29, 2015 14:15
Show Gist options
  • Save nk23x/fd6450389bb6776d648f to your computer and use it in GitHub Desktop.
Save nk23x/fd6450389bb6776d648f to your computer and use it in GitHub Desktop.
mobilism checker
( date; echo "<br><ul>"; \
(for i in 40 80 120 160 200 240 280 320 360 400 440 480 520 560 600; \
do wget -O - -q "http://mobilism.me/search.php?keywords=File+Size&terms=all&author=&fid%5B%5D=1283&fid%5B%5D=424&fid%5B%5D=434&fid%5B%5D=422&fid%5B%5D=423&fid%5B%5D=428&fid%5B%5D=429&fid%5B%5D=1288&fid%5B%5D=1332&fid%5B%5D=432&fid%5B%5D=427&fid%5B%5D=435&fid%5B%5D=436&fid%5B%5D=437&fid%5B%5D=1336&fid%5B%5D=438&fid%5B%5D=442&fid%5B%5D=443&fid%5B%5D=444&fid%5B%5D=123&fid%5B%5D=124&fid%5B%5D=311&fid%5B%5D=1284&fid%5B%5D=97&fid%5B%5D=98&fid%5B%5D=100&sc=1&sf=firstpost&sr=topics&sk=t&sd=d&st=1&ch=0&t=0&submit=Search&start=$i"; done) \
| grep topictitle \
| perl -pe 's/.\/viewtopic.php/http:\/\/mobilism.me\/viewtopic.php/g;s/<a/<li><a/g;s/ <br \/>/<\/li>/g;s/^(.*)<li>/<li>/g;'; \
echo "</ul>";) >/tmp/t.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment