Results 1 to 4 of 4

Thread: [RESOLVED] PHP cURL and DOMDocument - reading the page

Threaded View

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Resolved [RESOLVED] PHP cURL and DOMDocument - reading the page

    ok, I am stumped... I am trying to grb info from a page.

    the HTML source shows this
    Code:
    <span class='status' ng-hide='campaign.updating_worth &gt; 0'>
    {{ contestantEntries() }}
    </span>
    but the page displays a number (my current contest entries - yes I am a contest junkie! lol)

    if i "Inspect Element" with Chrome I see
    Code:
    <span class="status ng-binding" ng-hide="campaign.updating_worth > 0">
    5764
    </span>
    i want the 5764

    I tried parsing with xpath as

    Code:
    $tags = $xpath->query('//*[@id="current-entries"]/span[1]');
    gets a null

    Code:
    $tags = $xpath->query('//span[@class="status"]');
    gets {{ contestantEntries() }} (plus other stuff)

    I cant seem to get the actual value!

    Code:
    <span class="square-describe mont" id="current-entries">
    <span class="status ng-binding" ng-hide="campaign.updating_worth > 0">
    5764
    </span>
    I need that 5764 - im sure its possible!!
    Last edited by Static; Jun 12th, 2015 at 07:36 AM.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width