提供されたhtml(スパン)の間のデータを取得しようとしています(この場合は31)
元のコードは次のとおりです(クロムの要素の検査から)
<span id="point_total" class="tooltip" oldtitle="Note: If the number is black, your points are actually a little bit negative. Don't worry, this just means you need to start subbing again." aria-describedby="ui-tooltip-0">31</span>
ページのソースを含むリッチ テキスト ボックスがあります。これは同じコードですが、リッチ テキスト ボックスの 51 行目にあります。
<DIV id=point_display>You have<BR><SPAN id=point_total class=tooltip jQuery16207621750175125325="23" oldtitle="Note: If the number is black, your points are actually a little bit negative. Don't worry, this just means you need to start subbing again.">17</SPAN><BR>Points </DIV><IMG style="FLOAT: right" title="Gain subscribers" border=0 alt="When people subscribe to you, you lose a point" src="http://static.subxcess.com/images/page/decoration/remove-1-point.png"> </DIV>
どうすればこれを行うことができますか?いくつかの方法を試しましたが、どれもうまくいかないようです。
このページからポイント値を取得しようとしています: http://www.subxcess.com/sub4sub.php 番号は、誰がサブスクライブするかによって異なります。