oh_php_designer Posted January 19, 2016 Share Posted January 19, 2016 For some reason I can't figure out how to get specific data off a website. I am trying to get a final score for a specific team. http://www.cbssports.com/nfl/scoreboard another way to do it is using google but i cant figure out how to get these scores either: https://www.google.com/?gws_rd=ssl#q=packers+vs+seahawks+final+score Quote Link to comment Share on other sites More sharing options...
element121 Posted January 19, 2016 Share Posted January 19, 2016 Hi, You should be able to use a something like SimpleHTMLDom to grab the data, I've used it on various sites: http://simplehtmldom.sourceforge.net/manual.htm Hope that helps, Jon Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted January 20, 2016 Share Posted January 20, 2016 Always look for a feed or api first before attempting to scrape it yourself. http://developer.cbssports.com/documentation/api/files/sports Quote Link to comment Share on other sites More sharing options...
oh_php_designer Posted January 21, 2016 Author Share Posted January 21, 2016 (edited) Thanks guys. Element, I've seen that before but don't understand how to use it with the links I've provided. Quickoldcar, I totally agree with you. I don't see scores in your link though. Edited January 21, 2016 by oh_php_designer Quote Link to comment Share on other sites More sharing options...
oh_php_designer Posted January 22, 2016 Author Share Posted January 22, 2016 Any suggestions on my last post guys? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.