Skip to content

Commit

Permalink
Let's look at page contents
Browse files Browse the repository at this point in the history
  • Loading branch information
jamezpolley committed May 7, 2019
1 parent 268f343 commit 2b8b996
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scraper.php
Expand Up @@ -21,8 +21,12 @@
$page = $form->submit();

$page = $browser->get($da_url . "&PageNumber=1");

print ($page);

$dom = HtmlDom::fromString($page->html);

print ($dom);
$totalNum = $dom->find("span[id=ctl00_MainBodyContent_mPagingControl_pageNumberLabel]")[0];
$totalNum = explode(" of ", trim($totalNum->plaintext));
$totalNum = (int) $totalNum[1] > 1 ? intval($totalNum[1]) : intval(1);
Expand Down

0 comments on commit 2b8b996

Please sign in to comment.