Last active
August 29, 2015 14:01
-
-
Save Solnse/de44b2821a892b788ab6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
balance = document.css('td.points').text | |
ytd_tqp = document.match('/TQPs<\/abbr><\/a>\s*<\/th>\s*<td>(\d+)<\/td>/')[0] | |
rescue => e | |
puts e.message | |
return {error: "ATTRIBUTES_CHANGED"} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My Tier Progress | |
</h2> | |
<table summary="Tier qualifying points"><tbody><tr class="hilite"> | |
<th>2014 Tier Qualifying Points <a class="tooltip tqp" href="/faqs/answer/railpointstip"><abbr class="tqp">TQPs</abbr></a> | |
</th> | |
<td>400</td> | |
</tr></tbody></table> | |
</div> | |
<p class="total-tqps">You need <strong>4,600</strong> TQPs to reach <a class="infobox keepOverlay" href="/info/select">Select</a> for 2014.</p> | |
</div> | |
<div id="promoSummary" class="summary-detail brand-hilite"> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment