DanPfeffer Posted April 27, 2014 Share Posted April 27, 2014 If what I propose below can be done, I intend to hire someone to do this. There are various search facilities on my site and on competitors sites. What I would like to do is create a page with one search that bounces off of other sites. We would search on First Name and/or Last Name. Here are the sites that I would like to search against. GoSoftball.com - http://www.gosoftball.com/db/players USSSA.com - http://www.usssa.com/sports/Athletes.asp?Sport=17 PlayNSA.com - http://playnsa.com/PlayerSearch.aspx ASASoftball.com - http://www.asasoftball.com/adult/usaPlayers.aspx What I would like to see after the search is a list of players and links to the originating data. Is this possible with PHP? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 27, 2014 Share Posted April 27, 2014 Yes, and it may be complicated to parse the results. Using cURL (or if that fails, fsockopen), you can have PHP issue a request to another site. Typically it is to one of that site's API methods where the return is no more, no less, than what you exactly need. But if you get back an entire web document, your PHP will need to parse out the data you want (called 'scraping' a page). Quote Link to comment Share on other sites More sharing options...
Rifts Posted April 28, 2014 Share Posted April 28, 2014 maybe you could scrape the data? http://simplehtmldom.sourceforge.net/ 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.