Scraping charts from this website?

Discussion in 'PHP' started by Dr.Weed, Nov 23, 2013.

  1. #1
    Hi guys,

    I want to have these charts from http://www.coined.com/ on my website, or just data on my website. How can I put it on my website? These data also refresh often so is it possible to have some kind of timing inside script, so it takes data every minute?
     
    Last edited: Nov 23, 2013
    Dr.Weed, Nov 23, 2013 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    I feel like I should be able to click on the word "HERE". :p
     
    nico_swd, Nov 23, 2013 IP
  3. Dr.Weed

    Dr.Weed Greenhorn

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Sorry. Link is fixed
     
    Dr.Weed, Nov 23, 2013 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    nico_swd, Nov 23, 2013 IP
  5. Dr.Weed

    Dr.Weed Greenhorn

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    How can I use this?

    Thanks
     
    Dr.Weed, Nov 23, 2013 IP
  6. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #6
    
    $data = json_decode(file_get_contents('http://blockchain.info/ticker'), true);
    
    print_r($data);
    
    PHP:
     
    nico_swd, Nov 23, 2013 IP
  7. Dr.Weed

    Dr.Weed Greenhorn

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    But I dont get styled data, I get this http://btcreserve.net/charts/
     
    Dr.Weed, Nov 23, 2013 IP
  8. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #8
    Well yes, you're going to have to loop through the data and build an HTML table that you can style. php.net/foreach
     
    nico_swd, Nov 23, 2013 IP
  9. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #9
    *headdesk*
     
    PoPSiCLe, Nov 23, 2013 IP
    nico_swd and aidanriley629 like this.
  10. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #10
    Here:


    [​IMG]
    Code for your site:
    <img src="http://img2.uploadhouse.com/fileuploads/18690/18690952949650fc1ce6edf98ccba167a4557867.jpg">
    Code (markup):
     
    aidanriley629, Nov 23, 2013 IP
  11. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #11
    Nigel Lew, Nov 23, 2013 IP