Is there a website that can provide an auto-updated view of a specific part of a page?

0

For instance, I would like to extract a screenshot or page only containing the summary of the featured article of wikipedia (http://en.wikipedia.org/wiki/Main_Page).

It should not be of the whole page.

Tyilo

Posted 2012-07-10T18:27:11.227

Reputation: 2 345

Why? Without knowledge of the root problem you are trying to solve it's very difficult to advise you and you will only end up with half solutions. – Gerry – 2012-07-10T19:29:15.867

I would like to know when that specific part of the page is changed. – Tyilo – 2012-07-10T19:33:32.957

Answers

0

Can you be a little more specific? The problem is that the definition of "part of a page" is completely arbitrary, and it will vary from website to website. So any solution that purports to do this will be limited to some finite subset of all websites out there.

Are you looking to not even retrieve the other bits of the page at all (on your client) or are you wanting to retrieve them and then discard them? You could do something like this clientside quite easily. Getting it through a web service somewhere would be equivalent to going through a filtering proxy, and many of the technologies used for filtering proxies (e.g. privoxy) could be used there, but you'd have to write your own code to determine what's relevant and what's not.

There are too many different possible ways to architect a webpage to reliably create something like this that will trim the "chrome" off of any webpage and only show you the content. For every solution you offer me, I could craft a webpage that would make your solution fall down.

Edit: On the other hand, if all you want is to get the article contents on Wikipedia, THAT is very doable. In fact you could probably write a simple filtering proxy or even some local JavaScript that notices the pattern-based structure of any MediaWiki website and cuts out all the chrome. But of course it wouldn't apply to non-MediaWiki sites...

If you want to know why this isn't possible in the general case, then consider this problem: design me a machine that, without any human intervention aside from physically moving the device within reasonable distance, will perfectly prune any tree, of any height or width or species, to an appropriate size. Good luck with that.

allquixotic

Posted 2012-07-10T18:27:11.227

Reputation: 32 256

I would provide the css-selector or the pixel coordinates of the part of the page. I need it for an article, where a form is embedded into it. I would like to only see the form. I could easily do this myself, but I thought there must be a website that can do this. – Tyilo – 2012-07-10T18:40:59.483

Having a "website" do this for free with no advertisements or signups would be equivalent to providing an open proxy. I can guarantee you that such a site would be heavily abused and slow if indeed it did exist. Client-side I would recommend looking at the code behind e.g. Adblock because it does a lot of the same type of filtering. – allquixotic – 2012-07-10T20:05:42.053

It doesn't need to update the page more than once an hour or so. – Tyilo – 2012-07-10T20:12:32.953