I want to retrieve data on a web page.
Here is my Python3 code.
import requests
r = requests.get('http://ift.tt/2AtTZ9z')
print(r.text)
And this is a part of the result.
<div class="chart">
<div class="candle-chart" ex-chart-candle chart-height="500" chart-unit="300" arrow-height="20" chart-market="coincheck" chart-pair="btc_jpy" chart-volume>
<div class="ohlcv">
<span class="box">
<span class="key">Date</span>
<span class="value date-value"></span>
</span>
<span class="box">
<span class="key">O</span>
<span class="value o-value"></span>
</span>
<span class="box">
<span class="key">H</span>
<span class="value h-value"></span>
</span>
<span class="box">
<span class="key">L</span>
<span class="value l-value"></span>
</span>
<span class="box">
<span class="key">C</span>
<span class="value c-value"></span>
</span>
<span class="box">
<span class="key">V</span>
<span class="value v-value"></span>
</span>
</div>
In this HTML, I want to catch "value o-value", "value h-value" etc... But they look like no value.
How do I retrieve these data? Is it impossible?
Thanks.
Aucun commentaire:
Enregistrer un commentaire