Skip to content

A simple yet powerful url scrapper in PHP. To make url preview like facebook.

Notifications You must be signed in to change notification settings

vijayrathore8492/urlscrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

urlscrapper

A simple yet powerful url scrapper in PHP. To make url preview like facebook.

How To use

  1. Include the UrlScrapper Class include_once PATH/TO/UrlScrapper.php';
  2. Create Object of UrlScrapper $urlScrapper = new UrlScrapper($url);
  3. Call 'scrap_url' and pass Full URL as parameter $result = $urlScrapper->scrap_url($full_url)

Response format

Array( 'protocol'=>'',//http or https 'embed_url'=>'',//In case of youtube or vimeo link, You can use embed url to directly show the preview 'title'=>'',//Page title 'site'=>'',//Domain 'description'=>'',//More information about the link 'thumbnail'=>'',//Thumbnail of the page 'url'=>''//Full URL itself )

About

A simple yet powerful url scrapper in PHP. To make url preview like facebook.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages