簡體   English   中英

從使用jqplot的網站上的繪圖中獲取原始數據

[英]Get raw data from plot on website that used jqplot

我正在嘗試獲取原始數據,使該圖表標記為“過去24小時余額:1HS8cq9TDNqr77nwW6WwUZBjSDBLsmpt6e”。 我可以告訴他們他們使用jqplot繪制數據,但是找不到從中獲取數字的源中的數據。 我假設它可能在javascript中的某個位置,因為html指向一個調用javascript類的畫布,但我找不到它。

這是我正在嘗試從https://www.ahashpool.com/wallet.php?wallet=1HS8cq9TDNqr77nwW6WwUZBjSDBLsmpt6e獲取數據的網站

這個問題主要涉及更廣泛的主題,即網絡抓取,這是使用瀏覽器開發工具來跟蹤數據源的主要步驟:

  1. 在頁面上找到用於繪制圖表的元素,在本例中為<div id='graph_earnings_results' style='height: 240px;'></div>
  2. 瀏覽js代碼(在這種情況下,它完全位於頁面<script>標記中),搜索對'graph_earnings_results'元素的引用。 唯一的地方是graph_earnings_init(data)函數,在其中創建繪圖: $.jqplot('graph_earnings_results', t, {...});
  3. 所述graph_earnings_init(data)從被調用函數graph_earnings_ready(data) ,這又是在AJAX回調graph_earnings_refresh()函數。
  4. 最后,可以在graph_earnings_refresh()函數var url = ...找到數據源URL。 因此,完整的數據源URL將是https://www.ahashpool.com/wallet_graph_earnings_results.php?wallet=1HS8cq9TDNqr77nwW6WwUZBjSDBLsmpt6e

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM