Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Feb 21, 2018
1 parent 3d68c3c commit eb3ba87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.php
Expand Up @@ -4,7 +4,9 @@
require 'scraperwiki.php';
require 'scraperwiki/simple_html_dom.php';
//require 'simple_html_dom.php';
$browser = file_get_html('https://indiankanoon.org/browse');
scraperwiki::save(array('vsname','link','pagelink','urlofpage','lvsname','courtname','cite','lcite','paginationlink'), $record);

$browser = file_get_html('https://indiankanoon.org/browse');
foreach($browser->find("//td/div[@class='browselist']/")as $element)
{
$page = $element->find("a[plaintext^= Chattisgarh High Court]",0)->href;
Expand Down Expand Up @@ -45,7 +47,6 @@
$mainpageofprofiles = file_get_html($paginationlink);
sleep(8);
$checkerprofile = $mainpageofprofiles->find("/html/body/div/div[3]/form/input[3]",0);
scraperwiki::save(array('vsname','link','pagelink','urlofpage','lvsname','courtname','cite','lcite','paginationlink'), $record);



Expand Down

0 comments on commit eb3ba87

Please sign in to comment.