I want to save bitcoin price information through web crawling. <What do you want to know>
<script>
vardata= [{"Volume":1.0000000002,.......}] This part of the data is
I'd like to know the coding that you extract.
You can check the data as shown below by viewing the source on the page I searched the internet and tried to copy "Beautiful Soup", but I didn't have any background in this area I'd like to get help from the programmers.
from bs4 import BeautifulSoup import requests
url = 'https://coinone.co.kr/chart/?site=CoinoneQTUM&unit_time=4H' html = requests.get(url) html_text = html.text bitPrc= BeautifulSoup(html_text,'html.parser')
print(html)
print (bitPrc)
<Applicable Pay Source>
var data = [{"Volume": 1.00000002, "Adj_Close": 18000, "High": 18000, "Low": 18000, "Close": 18000, "DT": 1502121600000, "Open": 18000}, {"Volume": 0.0, "Adj_Close": 18000, "High": 18000, "Low": 18000, "Close": 18000, "DT": 1502136000000, "Open": 18000}, {"Volume": 0.0, "Adj_Close": 18000, "High": 18000, "Low": 18000, "Close": 18000, "DT": 1502150400000, "Open": 18000}, {"Volume": 0.0, "Adj_Close": 18000, "High": 18000, "Low": 18000, "Close": 18000, "DT": 1502164800000, "Open": 18000}... or less
python crawling
Please try selenium. Using selenium is the most accurate way to open it like that because it loads before rendering is completed.
© 2024 OneMinuteCode. All rights reserved.