
Page Scraper
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Searches a web page for instances of a regular expression. Can be set to display either the expression found, custom 'found' and 'not found' messages, and/or custom 'found' and 'not found' images.
Can display an array of results from a single regular expression - can be used for example (see screenshot) to display a list of headlines.
Inspired by Chris Means's Yahoo widget, I tried to incorporate users' suggestions into this version. I didn't worry too much about making it look pretty if both image and text are turned on, as I don't really expect people to have both.
I included a file with a couple of examples in the tarball.
Any suggestions as to how the desklet may be improved are welcome.
To install, extract the tarball, and copy the contents of the Controls and Displays folders to ~/.gdesklets/Controls and ~/.gdesklets/Displays respectively, then restart gdesklets. I was having some problems getting it to recognise new controls - it's possible you may need to reboot, or restart gdesklets more than once, but I think in theory at least the above ought to do it.
13 years ago
0.3 - added timer for autoupdate (can still be updated with double click). added prefix and suffix.
0.2 - included ability to display a list of results
0.1 - first release
13 years ago
0.3 - added timer for autoupdate (can still be updated with double click). added prefix and suffix.
0.2 - included ability to display a list of results
0.1 - first release
bola
12 years ago
your desklet seems to be quite useful but I can't get it running. When I start it, it'll just pop up an error message saying it can't find a driver for an interface (or something like that, the error msg is in finnish).
The row where the error occurs:
/home/XXXXXXXX/.gdesklets/Displays/PageScraper/pagescraper.display
> 1 ctrl = get_control('IPageScraper:d392lcsdaq8qgnrimsnh9fr5u-2')
Is there something wrong with my configuration?
Report
cumpstey
13 years ago
With some of the other desklets, like the fuzzy clock, I can understand that many people may not like them, or think that they are a waste of time and space - some things are just personal preference.
However, there is no denying that this is really a very useful desklet - with it you can extract virtually any information off the web, and display it in a whole host of different ways. It also works, at least on my machine, which is more than can be said for many of the desklets published on gdesklets.de.
So please, if you feel the need to rate it badly, tell me why. It doesn't take much effort, and it would make me a lot happier.
Report
cumpstey
13 years ago
Note that this problem is only with the desklet that includes the array. I've re-added the single-line desklet to the tarball, which seems entirely stable.
Thanks in advance for your help.
Report