Skip to content

soachishti/sitemap_Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sitemap_Parser

Sitemap_Parser is a set of function with the help of which fetch urls and data from Sitemap or Sitemap-Index file.

Requirements:

  • PHP > 5
  • Sqlite
  • SimpleXML

Features:

  • Fetch Sitemap and Sitemap-Index.
  • Store data in different database file.
  • Work with large amount of links.
  • Excellent Logging system.

Example

<?php
	$url = 'google.com';
	$limit = 5;
	$depth = 2;
	fetch($url,$depth,$limit);	
	$database = $dbpath;
	
	$sql = "SELECT * FROM urls";
	$con = sqlite_open($database, 0666, $error);
	$result = sqlite_query($con,$sql);
	while($row = sqlite_fetch_array($query, SQLITE_ASSOC))
	{
		print_r($row);
	}
?>

License:

Sitemap_Parser uses BSD 2-Clause License.

About

Fetch links from Sitemap and Sitemap-Index

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages