Usefull Commands: Web

  • Download a web page an all its requisites:
    wget -r -p -nc -nH --level=1 http://pypi.python.org/simple/python-ldap/
    
  • Create a PNG image of a rendered html page:
    kwebdesktop 1024 768 capture.png http://slashdot.org/
    
  • Search in all files malformed HTML entities (in this case non-breakable spaces that doesn’t end with a semicolon):
    grep -RIi --extended-regexp '&nbsp[^;]' ./
    

2 Responses to “Usefull Commands: Web”


  • Cool! Can I find any alternatives for kwebdesktop? I am using ubuntu, couldn’t manage to find kwebdesktop on my repo.

  • kwebdesktop is related to KDE, this probably explain why you can’t find it “as is” in your repo. FYI, on Mandriva, kwebdesktop is located in kdebase-progs package.

Leave a Reply