Jump to content

PHP - Can this be accomplished?


DanPfeffer

Recommended Posts

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?

 

Link to comment
https://forums.phpfreaks.com/topic/288067-php-can-this-be-accomplished/
Share on other sites

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).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.