I want to, on my website, display the number of followers that Ashton Kutcher has on Twitter. The page I want to scrape the info from is: http://twitter.com/users/show/aplusk.xml The specific piece of information that I want to scrape from that page is: <followers_count>[this number]</followers_count> Could someone provide me the code for this? I don't think it's very difficult, since I'm just looking to scrape everything from "<followers_count>" to "</followers_count>". Thanks a lot for any help!
<?php preg_match("/<followers_count>([0-9]*)<\/followers_count>/", file_get_contents("http://twitter.com/users/show/aplusk.xml"), $matches); echo $matches[1]; ?> PHP: