Possible? If so. How?

Discussion in 'Programming' started by -bank-, May 28, 2007.

  1. #1
    Dear All,

    I currently am buying and selling items from china, and basically I was wondering if it is possible to grap the tracking information from the delivery companies website, without the customer seeing their site. Although on their site, I cannot seem to find an API to do this, so was wondering.

    The site is:

    http://www.ems.com.cn/english-main.jsp

    Thanks
     
    -bank-, May 28, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    looks like you will first have to get past and validate their Captcha device... doesn't look like a hard one so an OCR app could probably decifer it on the fly for you. Then you would need to scrape the results :)
     
    ccoonen, May 28, 2007 IP
  3. -bank-

    -bank- Well-Known Member

    Messages:
    674
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Ok, thanks for that ccoonen, although please explain further :)
     
    -bank-, May 29, 2007 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The OCR (optical character recognition) application will read the validation code and enter it into the box.

    The screen scraper will capture the response and allow you to extract the element which you require to allow you to seamlessly include it in your page.

    Saying that, a decent supplier will have a web service to avoid you needing to use these techniques
     
    AstarothSolutions, May 29, 2007 IP
  5. -bank-

    -bank- Well-Known Member

    Messages:
    674
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    120
    #5
    Ok, thanks, could I use a php plugin to find the simularity's in the code then extract the table?

    Thanks
     
    -bank-, Jun 15, 2007 IP
  6. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #6
    you did NOT just say the 4 letter word "wont" - now I gotta spend all weekend and proove it wrong, lol
     
    ccoonen, Jun 15, 2007 IP