Query Web search engines.

By Connelly Barnes.


Current Version

Version 1.0.3 source code and manual are available.

Version History

Version history (changelog, bugs):


This module implements seach by scraping the HTML returned by search engines. As such, it's moderately brittle -- the regexs used for search tend to break after a couple years as HTML layouts change (although the regexs are also easy to fix when they break, as they're only a couple lines of code). For this reason it should probably be limited to scripts and not production code.

This module is not endorsed by any of the seach engine companies that it queries.

Be warned that if searches are made too frequently, or you request a large number of maximum search results and enumerate all results, then you will be a drain on the search engine's bandwidth, and the search engine organization may respond by banning your IP address.

This software is provided "as is," without warranty of any kind, either express or implied, including but not limited to the warranties of merchantability and fitness for a particular purpose. In no event shall the author(s) of the work be held liable for any damages or other liability, including but not limited to general, special, incidental, or consequential damages (including but not limited to damages to equipment, data, or profit sustained by you or third parties), even if any of the parties has been advised of the possibility of such damages.


The web_search source code and supporting documentation have been placed in the public domain.

Please send patches and bug reports to my e-mail address: - Connelly