NANY 2010 (https://www.donationcoder.com/forum/index.php?board=273.0) Entry Information
Application Name | FarrWebMetaSearch |
Version | 0.9.1 |
Short Description | A FARR plugin used to query results from a web page and display them in list form. |
Supported OSes | MS Windows |
Web Page | http://farrwms.objecttechnology.com |
Download Link | download (http://farrplugins.objecttechnology.com/farrwms/FarrWebMetaSearch.zip) |
System Requirements | - FindAndRunRobot (https://www.donationcoder.com/Software/Mouser/findrun/index.html) (FARR)
|
Version History | - 0.9.1 - preliminary - use FARR's launching functionality to open URLs
- 0.9.0 - preliminary - first release
|
Author | phitsc (https://www.donationcoder.com/forum/index.php?action=profile;u=149485) |
Credits | Thanks to hamradio (https://www.donationcoder.com/forum/index.php?action=profile;u=18911) for designing the plugin icon! |
Screencast | http://donationcoder.com/nany2010/sc/webmetasearch/webmetasearch.html YouTube: http://www.youtube.com/watch?v=pxKcvQ-uHjQ |
Description
FarrWebMetaSearch is another generic web retrieval FARR plugin. Unlike ewemoas Webgrab (https://www.donationcoder.com/forum/index.php?topic=12128.0) this plugin will show results in list mode. It is therefore targeted at web sites delivering list-like results.
Configuration and usage of the plugin will be as follows:
- searches are configured via a text configuration file, one for each 'search'. the file will specify search url and a regular expression to capture the result.
- search terms will be specified through the FARR input box
See implementation notes further down for further clarification.
Features
It just does what it says in the description.
Planned Features
- Fix icon copyright problem
- Fix launching problem
- Add proper help file
- Add a way for users to contribute / get searches
- Add logging/notification in case a configuration files is invalid
- Improve usage for news feeds
- Make original search string available as a variable
- Add many more searches :D
Either make plugin asynchronious or implement some way to delay searchingAdd a description for each search to xml files and FARR searches listImplement filtering of searchesImplement auto-completion of searches with Enter key (well, maybe)Add a way to specify search options (for web sites that support it)Make parsing of searches files more robust
Screencast
Screenshots
| FarrWebMetaSearch | Web Site |
MSDN | [ You are not allowed to view attachments ] | [ You are not allowed to view attachments ] |
CDDB | [ You are not allowed to view attachments ] | [ You are not allowed to view attachments ] |
and a teaser screencast (http://www.screentoaster.com/watch/stWUpVSkxIR19eRF9aWF9fXlFW/farrwebmetasearch2).
Implementation Notes
FarrWebMetaSearch reads all configuration files in its searches subdirectory when it's being loaded. When the plugin alias (currently wms) is entered, it will list all configured searches. To use a search one would then enter, e.g.:
wms msdn PathAppend
to find MSDN entries for the PathAppend API function.
Search files currently look like this (this is the cddb.conf file):
description=Microsoft Developer Network
searchUrl=http://social.msdn.microsoft.com/Search/en-GB?query=
resultPattern=<a onmousedown=\".*\" href=\".*\">(.*)</a>\r\n<br/>\r\n<div class=\"ResultDescription\">(.*)</div>\r\n<div class=\"ResultUrl\">(.*)</div>
farrCaption=$1
farrGroup=$2
farrPath=$3
The regex sub-expressions can (should, actually) be used to form the results.
Is there a way to retrieve the original search string and use it in the Path?
For example, in the following I'm grabbing the Quick Definitions from OneLook, but the path should be to the original search path, ie http://www.onelook.com/?w=
[ You are not allowed to view attachments ]
That is, double clicking on any of those results should open http://www.onelook.com/?w=mug