1. 2 DISCUSSING
  • Ian Lurie   Feb 07 2013   Flag

    I love it. PhantomJS and Selenium are great tools, too, and they'll render actual pages. I've been able to use Phantom to scrape G--- er scrape sites that may not love being scraped, but only in a REALLY NICE WAY. Then you can parse the result for rankings data.

  • Eric Kidd   Feb 07 2013   Flag

    If you want to capture the different breakpoints of a responsive site, you can change the size of the browser window the script is using (default is 800px) by using -W to change the browser window minimum width and --UNSAFE-max-width to set the maximum size of the window. You will get an error saying the page width is greater than whatever width you set. Don't panic, the script is doing what it's supposed to and your screenshot will still be processed just fine. Ex: python webkit2png -W 340 --UNSAFE-max-width 340 http://www.moz.com/rand

You must login to post comments.