View Single Post
Old 11-06-2008, 12:11 AM   #4 (permalink)
buildakicker
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Big Grin

I have searched the CURL info online and am having an issue finding how to single out what you want to scrape. For example, I would like to get the 24hour new snowfall amount from here:

Quote:
<div id="squeeze">
<div class="header-bar"></div>
<h1 class="title">Snowfall Tracker 2008-09</h1>
<div class="node ntype-story" id="node-3193">
<div class="content">
<div style="text-align: center;">
<table border="1" cellpadding="1" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="table-header-a" bgcolor="#ccccff" width="21%"><div style="text-align: center;"><font size="-2"> <strong>REPORT
DATE</strong> </font></div></td>
<td colspan="2" class="table-header-a" bgcolor="#ccccff"><div style="text-align: center;"><font size="-2"> <strong>24 hr NEW
SNOW<br>
(inches - as of 6am)</strong> </font></div></td>
<td colspan="2" class="table-header-a" bgcolor="#ccccff"><div style="text-align: center;"><font size="-2"> <strong>SEASON
CUMULATIVE TOTALS</strong> (inches)</font></div></td>
</tr>
<tr class="table1Head">
<td width="21%"><div style="text-align: center;"><font size="-1"> <strong>&nbsp;</strong> </font></div></td>
<td width="21%"><div style="text-align: center;"><font size="-2"> <strong>6200'</strong> </font></div></td>
<td width="21%"><div style="text-align: center;"><font size="-2"> <strong>8200'</strong> </font></div></td>
<td width="19%"><div style="text-align: center;"><font size="-2"> <strong>6200'</strong> </font></div></td>
<td width="18%"><div style="text-align: center;"><font size="-2"> <strong>8200'</strong> </font></div></td>
</tr>
<tr class="alternateRow">
<td> Nov 4, 2008 </td>
<td> 4-6" </td>
<td> 8-10"</td>

<td> 6 </td>
<td> 18 </td>
</tr>
<tr>
<td> Nov 3, 2008 </td>
<td> 0-0" </td>
<td> 2-4"</td>
<td> 0 </td>
<td> 8 </td>
</tr>
<tr class="alternateRow">
<td> Nov 2, 2008 </td>
<td> 0" </td>
<td> 2-4"</td>
<td> 0 </td>
<td> 4 </td>
</tr>
<tr>
<td> Oct 10, 2008 </td>
<td> trace&nbsp; </td>
<td> trace&nbsp;</td>
<td> 0 </td>
<td> 0 </td>
</tr>
</tbody>
</table>
</div>
<p><strong>Note: Cumulative Totals are the total of new recorded snowfall and do not reflect base amounts.</strong> These figures approximate and are for natural snowfall and do not reflect snowmaking unless noted. </p>
</div>
</div>
</div>
How do I use CURL to zero in on what i am looking for? If you know of a good tutorial or site that covers this, I'll read it. I haven't come across it.

Thanks
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote