Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.