This class can be used to parse and extract information from HTML documents using a query language similar to SQL to define the information to be extracted.
The class can open HTML documents stored as local files or as remote pages using the Snoopy class.
The class can execute a query with a syntax similar to SQL SELECT statements to search an find certain tags in the opened document with attributes that match query condition.
The occurrences that it find are returned as result set rows that may contain a given list of attributes of the matched tags.
No application links were specified for this class.
| File |
Role |
Description |
htmlsql.class.php |
Class |
Contains the main htmlSQL class |
snoopy.class.php |
Class |
The famous snoopy class by Monte Ohrt - v1.01 |
readme.txt |
Doc. |
English readme with description and todo list |
readme_german.txt |
Doc. |
The same as the readme.txt just in german language |
examples |
demo_01.php |
Example |
Example 1 - Shows a simple query |
demo_02.php |
Example |
Example 2 - Shows a simple query and the "href as url" usage |
demo_03.php |
Example |
Example 3 - Shows how to connect to a file and a simple query |
demo_04.php |
Example |
Examples 4 - Shows a advanced query with preg_match |
demo_05.php |
Example |
Example 5 - Shows a advanced query (with substr) |
demo_06.php |
Example |
Example 6 - Show how to connect to a string |
demo_07.php |
Example |
Example 7 - Shows a complex query |
demo_08.php |
Example |
Example 8 - Shows how to parse a RSS/XML file with htmlSQL |
demo_09.php |
Example |
Example 9 - Shows how to use the "select" function |
demo_10.php |
Example |
Example 10 - Shows how to use the "isolate_content" function |
demo_11.php |
Example |
Example 11 - Shows how to query a simple XML file |
demo_12.php |
Example |
Example 12 - Shows how to replace the user agent and the referer with custom values |
demo_data.htm |
Example |
Demo HTML data (used for parsing examples) |
demo_xml.xml |
Example |
Example XML file (to test parsing) |
query_examples.txt |
Doc. |
Some query examples for copy and paste |