Cricinfo Scorecard

Discussion in 'PHP' started by AzharNadeem, Jul 22, 2014.

  1. #1
    Can somebody guide me how this website is getting all the scorecards by espncricinfo.
     
    AzharNadeem, Jul 22, 2014 IP
  2. ROOFIS

    ROOFIS Well-Known Member

    Messages:
    1,234
    Likes Received:
    30
    Best Answers:
    5
    Trophy Points:
    120
    #2
    Courtesy of Firebug 2.0.2 plugin for Firefox, sites using json encoding for handling the score retrievals.

    (*replace the xxxxxxxxxx with http://www)
    random page score URI tested:
    xxxxxxxxxx.espncricinfo.com/england-v-india-2014/engine/match/667715.html

    json score data URI:
    xxxxxxxxxx.espncricinfo.com/netstorage/667715.json
    with or without ?xhr=1 appended to .json

    note* the red highlighted serial numbers (assuming it's a sql page number) needs to match for the json URI structure in order to retrieve the right page.



    .
     
    ROOFIS, Jul 28, 2014 IP