Ratings | | Unique User Downloads | | Download Rankings |
58% | | Total: 1,224 | | All time: 3,118 This week: 488 |
|
Description | | Author |
This class can parse and extract links and images from Web pages.
It can send a HTTP request to the server of a given URL and retrieves a page to be parsed.
The class searches the retrieved page to extract the URLs of links and images. | |
|
Details
About
A Website parser class to extract links and images from Web pages.
View Demo or Try it out and Rate on phpclasses.org
Uses
<pre><code>include 'website_parser.php';
//Instance of WebsiteParser
$parser = new WebsiteParser('http://morshed-alam.com/');
//Get all hyper links
$links = $parser->getHrefLinks();
//Get all image sources
$images = $parser->getImageSources();
//Get all meta tags and Facebook open graph properties
$meta_tags = $parser->getMetaTags();</code></pre>
Contributing
-
Fork it
-
Create your feature branch (`git checkout -b my-new-feature`)
-
Commit your changes (`git commit -am 'Added some feature'`)
-
Push to the branch (`git push origin my-new-feature`)
-
Create new Pull Request
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.