Skip to content

morshedalam/url-scraper-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
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();
Contributing
  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A parser class to grab website contents and extract urls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages