What is it
ParsR let's you extract information from any website or single HTML document very fast and easy.
So you can store the information in a database or reorganize the data as an RSS feed, for instance.
How to install
- Download the package from below.
- Unzip the package.
- include ParsR.php in your PHP code, e.g. with "include('ParsR.php');".
- build an instance of the ParsR class, e.g. with "$myParsR = new ParsR;".
- And that's it. Now you can use it! How to use, see below.
How to use
Here is an example how you can use ParsR to get information from any website you want:
PHP source code:
include_once('ParsR.php');
$myParsR = new ParsR;
$data = $myParsR->readUri('http://www.trilodge.de/blog/');
if($data) $data = $myParsR->extractData("<h1>", "</h1>", TRUE, TRUE);
print_r($data);
The result you see in your browser:
Array
(
[0] => Array
(
[0] => <h1><a
href="http://www.trilodge.de/blog/">trilodge
computin blog</a></h1>
)
)
For further information about the functions and parameters please read the documenation within the source code.
See how it works - The ParsR Live Demo
With the form below you can see you ParsR works and extracts information from a website.
Just tell ParsR the URL you want to parse information and give it the start and end string which encloses your information
Where to dicuss
If you have any questions, feature request, bug reports or just want to thank us, visit our blog at trilodge.de.
Where to download
ParsR is still beta, so please be patient. If you found anything unexpected, please let us know.
Latest version: ParsR 1.0 final
Last update: 09/09/2008
What has been changed
1.0 final, from 09/09/2008
- only minor changes to previous release, mostly better documentation
- performance tuning
0.2.1 beta, from 03/05/2008
- bugfixing: error in finding end string
- performance tuning
0.2 beta, from 02/17/2008
- bugfixing: error in extraction when end string follows directly in the next line after start string
0.1 beta, from 01/30/2008
- first beta release for public review
Where can I use it
You can use it wherever you what as long as you observe the GPLv3 license. Because ParsR is released under GPLv3 license.
Who has it done
Martin Waldau is the one who put all parts together. But nearly the whole trilodge team was involved to get this done.
And even you, if you report any bugs or just tell us your opinion about the project, can be part of it!