a PHP class to query the web by an SQL like language

htmlSQL is a experimental PHP class which allows you to access HTML values by an SQL like syntax. This means that you don’t have to write complex functions (regular expressions) to extract specific values. The htmlSQL queries look like this:

htmlsql example

This query returns an array with all links that contain the attribute class=”list”.

All web transfers in htmlSQL are using the awesome Snoopy class (package version 1.2.3) But for file or string queries Snoopy is not required. You find all Snoopy related documents (copyright, readme, etc) in the snoopy_data/ folder.

jonasjohn.de: htmlSQL - a PHP class to query the web by an SQL like language

Blogged with Flock

Tags:

Popularity: 14% [?]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Netvouz
  • description
  • ThisNext
  • MisterWong
  • Wists

Look for other flavors available in this series:
Klee Rothko Warhol Klein


Subscribe

Subscribe to my RSS Feeds



3K2Redux Screenshots