Here is the URL: http://www.investors.com/StockResearch/ ... ymbol=AAPL
When I go to that page in Safari and ask to look at the 'Source', I can see the data in the SmartSelect Ratings. The following is an excert of the source code for the table I want:
When I examine that data I can clearly see the headings and data for Composite Rating, EPS Rating, RS Rating, Group RS Rating, SMR Rating and Acc/Dis Rating.<table class="smartSelectTable">
<thead>
<tr>
<th scope="col" class="type">
</th>
<th scope="col" class="rating">
Rating
</th>
<th scope="col" class="ibdTest">
Checklist
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=Composite Rating SmartSelect">
Composite Rating</a>
</td>
<td class="rating">
<span>
99</span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=EPS Rating">
EPS Rating</a>
</td>
<td class="rating">
<span>
98</span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=Relative Price Strength (RS) Rating or Relative Strength">
RS Rating</a>
</td>
<td class="rating">
<span>
82</span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=Industry Group Relative Strength Letter Rating (Group RS)">
Group RS Rating</a>
</td>
<td class="rating">
<span>
A </span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=SMR Rating">
SMR Rating</a>
</td>
<td class="rating">
<span>
A </span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=Accumulation/Distribution (Acc/Dis) Rating">
Acc/Dis Rating</a>
</td>
<td class="rating">
<span>
B </span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
</tbody> </table>
When I use REV to get that data (and believe me I have tried) the data that I get in the retrieve only shows that the table has 1 line - that of EPS Rating.
Her is some code that I have used:
Code: Select all
on mouseUp
libUrlFollowHttpRedirects true
put empty into field "LogField"
libURLsetLogField "LogField"
put"http://www.investors.com/StockResearch/Quote.aspx?symbol=AAPL" into tUrl
get url tUrl
put it into myRetrieve
answer myRetrieve
else
answer the result
end if
end mouseUp
Another attempt that I made used a call to the terminal and the bash shell. The REV code looked sort of like this:<table class="smartSelectTable">
<thead>
<tr>
<th scope="col" class="type">
</th>
<th scope="col" class="rating">
Rating
</th>
<th scope="col" class="ibdTest">
Checklist
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=EPS Rating">
EPS Rating</a>
</td>
<td class="rating">
<span>
98</span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
</tbody> </table>
Code: Select all
on mouseUp
put "http://www.investors.com/StockResearch/Quote.aspx?symbol=AAPL" into tURL
put BashGetData(turl) into myRetrieve
answer myRetrieve
end mouseup
function BashGetData tURL
put "stringX=$(curl -X GET " & tURL & ");echo $stringX" into tBash
put shell(tBash) into tBashText
return tBashText
end BashGetData
I really would like some help in getting this solved. It is driving me nutty.<table class="smartSelectTable">
<thead>
<tr>
<th scope="col" class="type">
</th>
<th scope="col" class="rating">
Rating
</th>
<th scope="col" class="ibdTest">
Checklist
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
<a class="glossDef" href="javascript:void(0);" rel="Term.axd?term=EPS Rating">
EPS Rating</a>
</td>
<td class="rating">
<span>
98</span>
</td>
<td class="ibdTest pass">
<img class="FSIcons" src="http://www1.ibdcd.com/images/icons/Pass.gif" width="11" height="12" alt="Pass" />
</td>
</tr>
</tbody> </table>
Thanks,
Larry