Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Oct 5, 2017
1 parent 7338949 commit 667c7c0
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions scraper.php
Expand Up @@ -7,8 +7,6 @@
//


// require 'simple_html_dom.php';

$cHeadres = array(
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language: en-US,en;q=0.5',
Expand Down Expand Up @@ -45,22 +43,10 @@ function dlPage($href) {

$maincode = dlPage($MyWebsite);



foreach($maincode->find("//*[@id='employee_list']/tbody/tr") as $element) {



$case = $element->find("td", 1)->plaintext;
/* $rem = $element->find("td", 2)->plaintext;
$cit = $element->find("td", 3)->plaintext;
$dd = $element->find("td", 4)->plaintext;
$scstatus = $element->find("td", 5)->plaintext;
$cat = $element->find("td", 6)->plaintext;
$pdflink = $element->find("td/a", 7)->plaintext;
$scjud = $element->find("td", 8)->plaintext; */


foreach($maincode->find("//*[@id='employee_list']/tbody[1]/tr") as $element) {
echo $name = $element->find("td", 2)->plaintext;
echo '<br/>';
}


Expand Down

0 comments on commit 667c7c0

Please sign in to comment.