garrensilverwing
New Member
- Messages
- 148
- Reaction score
- 0
- Points
- 0
I want to grab information from another site that is not in an RSS feed. An example of what info I would like to grab can be seen at http://www.uschess.org/msa/MbrDtlMain.php?13923823. The information will change based on the USCF profile i need to pull up which can be done easily with the USCF id. the info will always look like this:
The information has several formats. It can be 3-4 digits long and possibly have a short string at the end.
I know there is probably a way to access the page, grab the information, and store it in a variable using
regular expressions but I'm pretty novice at regex so I was hoping you can provide me with an answer.
the code would probably look like this but I'm afraid it would be more complicated than that:
Code:
Regular Rating
</td>
<td>
<b><nobr>
**Variable**
I know there is probably a way to access the page, grab the information, and store it in a variable using
regular expressions but I'm pretty novice at regex so I was hoping you can provide me with an answer.
the code would probably look like this but I'm afraid it would be more complicated than that:
Code:
Open USCF Webpage;
if(webpage doesnt exist) $rating = "unknown";
else
{
$rating = grabbed information;
echo $rating
}