I have written a web crawler script Code is::
<?php
include_once('simple_html_dom.php');
$target_url = "http://jvlaunchcalendar.com/calendar/";
$html = new simple_html_dom();
$html->load_file($target_url);
$ret = $html->find('div[class=fc-event-inner');
//to print the caleder events similar code //works for other sites like flipcat.com
foreach($ret as $post)
{
echo $post.'<br />';
}
echo $html;// to print the calender of jvlaunchcalendar.com site
?>
This script works fine for other sites . But I want all calender events of http://jvlaunchcalendar.com/calendar/ page but this script doesn't display any event gives empty calender. Please help me to get the events of calender .
Regards.
When you're trying to $html->load_file($target_url);
you got empty page with no events coz events are loaded with ajax.
Simple solution to get events: track ajax url calling and load it, not page. (i checked, it returns json
data, all is ok).
But it's not good. Other ways - do it inside WordPress with native calendar functions.