Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Nov 24, 2017
1 parent d95b9ab commit 75b3e19
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scraper.php
Expand Up @@ -14,20 +14,19 @@
foreach ($Html->find("//*[@id='tablePerkaraAll']/tbody/tr") as $element)
{
$RowNumb += 1;
$no = $element->find('td[1]', 0)->plaintext;
$nomor = $element->find('td[2]', 0)->plaintext;

if ($RowNumb != 0)
{

$no = $element->find('td[1]', 0)->plaintext;
$nomor = $element->find('td[2]', 0)->plaintext;
$tangal = $element->find('td[3]', 0)->plaintext;
/*$klasifikasi = $element->find('td[4]', 0)->plaintext;
$para = $element->find('td[5]', 0)->plaintext;
$status = $element->find('td[6]', 0)->plaintext;
$lama = $element->find('td[7]', 0)->plaintext;
$details = $element->find('td[8]\a', 0)->href;*/
echo "$tangal\n";

scraperwiki::save_sqlite(array('nomor'), array('nomor' => $nomor,
'no' => $no));
}
}
}
Expand Down

0 comments on commit 75b3e19

Please sign in to comment.