當前位置:首頁 » 數字幣問答 » Java如何抓取數字貨幣行情

Java如何抓取數字貨幣行情

發布時間: 2021-08-29 10:01:50

❶ 哪個挖礦平台裡面的的數字貨幣交易行情數據更准確

我覺得鯤鵬算力裡面的數字貨幣交易行情數據還是蠻准確的,他們都是實時更新的,所以你可以很好的了解到這些情況。

❷ 如何用java實現抓取商城商品信息到自己的頁面上來!!! 求解啊,大神們!!

對於加密的網站還沒去研究,不知道能不能抓取,現在只是對一些沒有加密的網站進行網頁數據抓取。剛剛開始寫的時候以為很多網站都能抓取,但是發現很多都加密了,本來以為一些地址可以通過網頁數據檢測工具測出他的數據變化,但是只能監測到一些通過js顯示的數據,依然不能抓取到加密的網站。嗨,這個問題以後再說吧。
[java]
import java.net.* ;
import java.io.* ;
import java.util.regex.* ;
public class Capture{
public static void main(String args[])throws Exception{
System.out.println("*************************手機號查詢************************") ;
System.out.println("我的位置是:" + new GrabMobile().grabMobileLocation("15023141745")) ;
System.out.println("手機卡類型是:" + new GrabMobile().grabMobileType("15023141745")) ;
System.out.println("我的郵編是:" + new GrabMobile().grabMobilePost("15023141745")) ;
System.out.println("*************************身份證查詢************************") ;
System.out.println("我的性別是:" + new GrabIdentity().grabIdentitySex("362203199208243575")) ;
System.out.println("我的生日是:" + new GrabIdentity().grabIdentityBirth("362203199208243575")) ;
System.out.println("我的家鄉是:" + new GrabIdentity().grabIdentityHome("362203199208243575")) ;
}
}
class GrabMobile{
public String grabMobileLocation(String m)throws Exception{
String strUrl = "http://www.ip138.com:8080/search.asp?action=mobile&mobile=" + m;
URL url = new URL(strUrl) ;
HttpURLConnection httpUrlCon = (HttpURLConnection)url.openConnection() ;
InputStreamReader inRead = new InputStreamReader(httpUrlCon.getInputStream(),"GBK") ;
BufferedReader bufRead = new BufferedReader(inRead) ;
StringBuffer strBuf = new StringBuffer() ;
String line = "" ;
while ((line = bufRead.readLine()) != null) {
strBuf.append(line);
}
String strStart = "卡號歸屬地" ;
String strEnd = "卡 類 型";
String strAll = strBuf.toString() ;

int start = strAll.indexOf(strStart) ;

int end = strAll.indexOf(strEnd) ;

String result = strAll.substring(start+42,end-33) ;
result = drawChMob(result) ;
return result ;
}
public String grabMobileType(String m)throws Exception{
String strUrl = "http://www.ip138.com:8080/search.asp?action=mobile&mobile=" + m;
URL url = new URL(strUrl) ;
HttpURLConnection httpUrlCon = (HttpURLConnection)url.openConnection() ;
InputStreamReader inRead = new InputStreamReader(httpUrlCon.getInputStream(),"GBK") ;
BufferedReader bufRead = new BufferedReader(inRead) ;
StringBuffer strBuf = new StringBuffer() ;
String line = "" ;
while ((line = bufRead.readLine()) != null) {
strBuf.append(line);
}
String strStart = "卡 類 型" ;
String strEnd = "<TD align=\"center\">區 號</TD>";
String strAll = strBuf.toString() ;

int start = strAll.indexOf(strStart) ;

int end = strAll.indexOf(strEnd) ;

String result = strAll.substring(start+12,end) ;
result = drawChMob(result) ;
result = result.substring(1) ;
return result ;
}
public String grabMobilePost(String m)throws Exception{
String strUrl = "http://www.ip138.com:8080/search.asp?action=mobile&mobile=" + m;
URL url = new URL(strUrl) ;
HttpURLConnection httpUrlCon = (HttpURLConnection)url.openConnection() ;
InputStreamReader inRead = new InputStreamReader(httpUrlCon.getInputStream(),"GBK") ;
BufferedReader bufRead = new BufferedReader(inRead) ;
StringBuffer strBuf = new StringBuffer() ;
String line = "" ;
while ((line = bufRead.readLine()) != null) {
strBuf.append(line);
}
String strStart = "郵 編" ;
String strEnd = "更詳細的..";
String strAll = strBuf.toString() ;

int start = strAll.indexOf(strStart) ;

int end = strAll.indexOf(strEnd) ;

String result = strAll.substring(start+40,end-55) ;
return result ;
}
public String drawChMob(String str){
StringBuffer strBuf = new StringBuffer() ;
String regex="([\u4e00-\u9fa5]+)";
Matcher matcher = Pattern.compile(regex).matcher(str);
while(matcher.find()){
strBuf.append(matcher.group(0)).toString() ;
}
return strBuf.toString() ;
}
}
class GrabIdentity{
public String grabIdentitySex(String userid)throws Exception{
String strUrl = "http://qq.ip138.com/idsearch/index.asp?action=idcard&userid=" + userid + "&B1=%B2%E9+%D1%AF";
URL url = new URL(strUrl) ;
HttpURLConnection httpUrlCon = (HttpURLConnection)url.openConnection() ;
InputStreamReader inRead = new InputStreamReader(httpUrlCon.getInputStream(),"GBK") ;
BufferedReader bufRead = new BufferedReader(inRead) ;
StringBuffer strBuf = new StringBuffer() ;
String line = "" ;
while ((line = bufRead.readLine()) != null) {
strBuf.append(line);
}
String strStart = " 別" ;
String strEnd = "出生日期";
String strAll = strBuf.toString() ;

int start = strAll.indexOf(strStart) ;

int end = strAll.indexOf(strEnd) ;

String result = strAll.substring(start+7,end) ;
result = drawCh(result) ;
return result ;
}
public String grabIdentityBirth(String userid)throws Exception{
String strUrl = "http://qq.ip138.com/idsearch/index.asp?action=idcard&userid=" + userid + "&B1=%B2%E9+%D1%AF";
URL url = new URL(strUrl) ;
HttpURLConnection httpUrlCon = (HttpURLConnection)url.openConnection() ;
InputStreamReader inRead = new InputStreamReader(httpUrlCon.getInputStream(),"GBK") ;
BufferedReader bufRead = new BufferedReader(inRead) ;
StringBuffer strBuf = new StringBuffer() ;
String line = "" ;
while ((line = bufRead.readLine()) != null) {
strBuf.append(line);
}
String strStart = "出生日期:</td><td class=\"tdc2\">" ;
String strEnd = "</td><tr><tr><td class=";
String strAll = strBuf.toString() ;

int start = strAll.indexOf(strStart) ;
int end = strAll.indexOf(strEnd) ;

String result = strAll.substring(start+27,end) ;
return result ;
}
public String grabIdentityHome(String userid)throws Exception{
String strUrl = "http://qq.ip138.com/idsearch/index.asp?action=idcard&userid=" + userid + "&B1=%B2%E9+%D1%AF";
URL url = new URL(strUrl) ;
HttpURLConnection httpUrlCon = (HttpURLConnection)url.openConnection() ;
InputStreamReader inRead = new InputStreamReader(httpUrlCon.getInputStream(),"GBK") ;
BufferedReader bufRead = new BufferedReader(inRead) ;
StringBuffer strBuf = new StringBuffer() ;
String line = "" ;
while ((line = bufRead.readLine()) != null) {
strBuf.append(line);
}
String strStart = "證 地:</td><td class=\"tdc2\">" ;
String strEnd = "<br/></td></tr><tr><td class=\"tdc3\" valign=\"top\" align=\"right\">部分或" ;
String strAll = strBuf.toString() ;

int start = strAll.indexOf(strStart) ;
int end = strAll.indexOf(strEnd) ;

String result = strAll.substring(start+31,end) ;
return result ;
}
public String drawCh(String str){
StringBuffer strBuf = new StringBuffer() ;
String regex="([\u4e00-\u9fa5]+)";
Matcher matcher = Pattern.compile(regex).matcher(str);
if(matcher.find()){
str = strBuf.append(matcher.group(0)).toString() ;
}
return str ;
}
}

待會傳上改裝成的android小程序,可以手機號查詢和身份證查詢。

❸ 什麼網站可以提供數字貨幣行情API

Bitoffer好像也可以

❹ 現在有查看數字貨幣行情的小程序嗎

剛在小程序欄里找了一個,搜索"幣看台",功能還可以。

它有以下功能

  1. 查看數千種數字貨幣的實時行情
  2. 查看單一貨幣的24小時走勢

  3. 自選自己關注的數字貨幣

  4. 刪除不感興趣的數字貨幣

截圖如下:

給你喲,希望可以幫助你!!!

❺ 用什麼軟體查看各大交易平台的,數字貨幣價格

不要操作數字貨幣,有很多人操作都被騙了,開始老師帶單操作讓你你可以賺點錢,最後突然一個暴跌你就爆倉,然後又叫你加倉說你資金太少,就算你賺錢了也不能提現,因為你的賬戶被後台操作了,GOKEX EX就是怎樣的軟體,

❻ 數字貨幣歷史數據除了交易所獲取還有什麼方法比較方便較長時間獲取

一些數字貨幣數據服務商一般都有統一介面獲取歷史數據的,國內的有Matrix data,預測者之類的,數據各有千秋,個人感覺Matrix data更好,預測者個人的還有挺大進步空間。

❼ 請問怎樣用Java獲取股票行情歷史數據新浪、搜狐、百度財經都可以......

publicclassStockConnection{
publicstaticvoidmain(String[]args){
URLur=null;
try{
//搜狐股票行情歷史介面
// ur=newURL("http://q.stock.sohu.com/hisHq?code=cn_300228&start=20130930&end=20131231&stat=1&order=D&period=d&callback=historySearchHandler&rt=jsonp");
//新浪股票行情歷史介面
ur=newURL("http://biz.finance.sina.com.cn/stock/flash_hq/kline_data.php?&rand=random(10000)&symbol=sh600000&end_date=20150809&begin_date=20000101&type=plain");
HttpURLConnectionuc=(HttpURLConnection)ur.openConnection();
BufferedReaderreader=newBufferedReader(newInputStreamReader(ur.openStream(),"GBK"));
Stringline;
while((line=reader.readLine())!=null){
System.out.println(line);
}
}catch(Exceptione){
//TODOAuto-generatedcatchblock
e.printStackTrace();
}
}
}

❽ 現在有查看數字貨幣行情的小程序嘛

幣備神器就是啊,微信小程序里搜就能看到了

❾ java 如何實現 獲取實時股票數據

一般有三種方式:

  1. 網頁爬蟲。採用爬蟲去爬取目標網頁的股票數據,去GitHub或技術論壇(如CSDN、51CTO)上找一下別人寫的爬蟲集成到項目中。

  2. 請求第三方API。會有專門的公司(例如網路API市場)提供股票數據,你只需要去購買他們的服務,使用他們提供的SDK,仿照demo開發實現即可。如下圖所示:

❿ 數字貨幣行情價格走勢怎麼查詢

8.22數字貨幣年度行情多空情況 後期盤面走勢如何因對操作?時光荏苒,一年的時間過去一半現在咱們來回顧今年2019的比特幣行情走勢,經過去年的熊市讓比特幣走勢一直處於低谷最低跌到3155的位置,之後再開年的第一天來了一次漲勢就進入的震盪蓄力的狀態,一直到4月1日的早間8點左右行情才迎來曙光在4000的位置起漲期間經歷由5月份的9000高點,到6月的13970制高點,這一段時間的走勢讓很多在去年被套高位的朋友出局或者低點進場朋友得到利潤,之後6月份的行情過後整體比特幣走勢進入回調狀態,消化這段時間漲勢帶來的後遺症(放量),波動的區間處於9000-10000之內波動用時將近兩個月,在7月底21號開始新的一輪拉升上方觸及12500關口之後目前處於回調的狀態,那麼後期的盤面整體方向如何看待呢?雖然近兩天的行情處於回調修復狀態,但是整體的行情趨勢多頭並沒有走完而是隱藏下來,從周盤就能看出多頭的漲勢空間還沒有完全出來,而是在等待一次行情底部開始新的一輪攀升,周盤布林帶指標全部以上揚為主,而這周的行情可以看出漲勢與回調各佔一半,且多頭漲勢量能的推擠並有大幅跌勢出現這本就是一個信號,那麼多頭能否持續最為關鍵的就是下周盤面指標的更新情況,如下周盤面多頭動能並沒有進場那麼將會變盤,趨勢請理性看待當前晚間日線盤面空頭逐漸強勢,行情上方MA5與MA10日線指標有死叉跡象下行,那麼只要MA10日線改平移下行那麼短期還會有一次跌勢出現,雖然下方11400-11200為日線短期支撐但是只要上方空頭跌勢觸及下方這幾百點根本守不住,那時11000才是分水嶺,那麼需要關注的點位11800-11700短期壓力區間。4小時盤面由近期跌勢觸底11400關口而處於反彈的階段,目前短期行情上方的壓力11700如這次反彈動能不觸及上方這個關口而下方MA5均線還持續下行的話那麼空頭才會持續,這是晚間盯盤的朋友需要注意的地方



操作思路以行情反彈至上方11700-11800壓力區間不破,那麼進場空單下看目標點位11500-11400區間,能持續空頭單邊情況下11000-11200短期可看做底部,多頭短期的變盤需要關註上方壓力11700位置,行情漲勢破位且站穩那麼可以進場多單試探上方點位11800-11900,整體的思路先以空頭為主多頭輔助進行如有操作的朋友帶好止損止盈做好風控,前期不懂行情分析或者看不懂的朋友請謹慎進場,每一次的操作希望你們都能把最壞的結果計劃好,畢竟都是真金白銀,自己的辛苦錢,對得起自己付出換回來的回報最好,當然有朋友需要跟上智華操作可以聯系,後期會一一通過

熱點內容
收到假eth幣 發布:2025-10-20 08:58:16 瀏覽:973
暗黑破壞神2eth打孔 發布:2025-10-20 08:42:58 瀏覽:105
BTC和CBT是一樣的嗎 發布:2025-10-20 08:42:57 瀏覽:233
華碩trx40Pro供電 發布:2025-10-20 08:33:26 瀏覽:432
曬人民幣編號的朋友圈 發布:2025-10-20 08:25:32 瀏覽:687
doge格式 發布:2025-10-20 08:02:00 瀏覽:382
以太坊會爆發嗎 發布:2025-10-20 08:01:59 瀏覽:772
一台比特幣礦機的功率 發布:2025-10-20 07:39:24 瀏覽:925
trx輔助帶 發布:2025-10-20 07:35:29 瀏覽:48
比特幣哈希值有多少位 發布:2025-10-20 07:31:20 瀏覽:633