Is there anything out there that can take screenshots of website content and crop out the layout?

Other ideas are also welcome. I am trying to take an excel file, using python to generate an xml for a javascript html webpage that will essentially display a gallery (or some sort of directory structure). The excel file would be pretty massive, but let us assume time isn't so crucial.

So far I can convert the tab delimited version of the excel spreadsheet into XML and I have all of the links... Now, I just need to able to open up a browser and take a screenshot and crop them the right way, or save certain portions of the web content some how....

I was thinking about using selenium as a web crawler then using autoit execute keyboard commands to save all the webpages, but that won't work for various reasons (also it would be extremely slow).

Ideas?

One example where I've seen a "smart crop" take place is in camtasia where they zoom in on certain parts of the screen where they think to focus would be. I think that could work to some degree. Then again I don't have any idea how to make such assumptions with a good deal of accuracy.

Answers


You could probably use pywebkitgtk to render the HTML and then PIL to manipulate the image.


Need Your Help

Swift: get value using async method

ios swift asynchronous reverse-geocoding clgeocoder

I'm looking for a good idiom or two for this situation:

C#. The same code only works on 1 label… why?

c# winforms datetime

I made 2 radiobuttons so the user can choose if he/she wants to view the time on a 24h format or a 12h format, this is the code I have on the timer:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.