Skip to content

PHP-Class that fetches a website, extracts the itemprop-attributes and optionally saves it as json file.

License

Notifications You must be signed in to change notification settings

strzlee/HTML-ItemPropExtractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Straussn's HTML Itemprop-Attribute Extractor

  • Fetches a website, extracts the itemprop-attributes and optionally saves it as json file.*

    array ItemPropExtractor::fetch(string URL, [string FILENAME], [boolean ASSOC-ARRAY])

    Returns array, assoc-array or false

Example:

$props = ItemPropExtractor::fetch('http://www.jausentest.at/detail/235/', 'props.json', true);

Result: 
	array { ["photo"]=>  "" 
				["rating"]=>  "" 
				["name"]=>  "Wimmer Stubn" 
				["address"]=>  "4751 Dorf an der Pram, Thalling 2" 
				["tel"]=>  "07764/20068" 
				["geo"]=>  " " 
				["latitude"]=>  "" 
				["longitude"]=>  "" 
				["url"]=>  "http://www.jausentest.at/#detail/235" } 

About

PHP-Class that fetches a website, extracts the itemprop-attributes and optionally saves it as json file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages