亚洲综合社区欧美综合色-欧美逼逼一区二区三区-国产老熟女高潮精品网站-国产日韩最新视频在线看

始創(chuàng)于2000年 股票代碼:831685
咨詢熱線:0371-60135900 注冊有禮 登錄
  • 掛牌上市企業(yè)
  • 60秒人工響應(yīng)
  • 99.99%連通率
  • 7*24h人工
  • 故障100倍補(bǔ)償
全部產(chǎn)品
您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

如何通過編程方式獲取alexa排名的數(shù)據(jù)

發(fā)布時(shí)間:  2012/8/27 9:41:36
 Alexa 是以發(fā)布世界網(wǎng)站排名而引人注目的一個(gè)網(wǎng)站。其實(shí),此網(wǎng)站的搜索引擎也很好用,但是“網(wǎng)站排名”卻是它吸引眼球的最主要原因。

  以網(wǎng)站導(dǎo)航起家的Alexa創(chuàng)建于1996年4月,他們的目的是讓Internet沖浪者在分享虛擬世界資源的同時(shí),更多地參與Internet資源的組織。2002年5月Alexa放棄了自己的搜索引擎與Google合作。他們每天在網(wǎng)上搜集超過1,000GB的信息,然后進(jìn)行整合發(fā)布,F(xiàn)在他們搜集的URL數(shù)量已經(jīng)超過了Google。下圖是他們自己給出的一個(gè)信息量比較圖。縱軸為已有的URL地址的量,以十億為單位。也就是說在量上,Alexa位居世界四大名搜索引擎第一位,已經(jīng)超過了350億。焦點(diǎn)在于,Alexa不僅給出這350多億網(wǎng)址的鏈接,而且為其中的每一個(gè)網(wǎng)站進(jìn)行了排名?梢哉f,Alexa是當(dāng)前擁有URL數(shù)量最龐大,排名信息發(fā)布最詳盡的網(wǎng)站。

  Alexa的世界網(wǎng)站排名主要分兩種:綜合排名,可以叫做絕對排名,即特定的一個(gè)網(wǎng)站在所有350多億網(wǎng)站中的名次。Alexa每三個(gè)月公布一次新的網(wǎng)站綜合排名。此排名的依據(jù)是用戶鏈接數(shù)(Users Reach)和頁面瀏覽數(shù)(Page Views)三個(gè)月累積的幾何平均值。分類排名一是按主題分類,比如新聞、娛樂、購物等,Alexa給出某個(gè)特定網(wǎng)站在同一類網(wǎng)站中的名次。Alexa將其收集到的網(wǎng)站共分了16個(gè)大類,每個(gè)類下又分為多個(gè)主題。

  阿里媽媽的網(wǎng)站也有Alexa網(wǎng)站排名(http://tool.alimama.com/site.php)、中國站長網(wǎng)站(http://alexa.chinaz.com/Index.asp)也提供Alexa排名查詢,還有很多網(wǎng)站也提供了它們的Alexa排名,這些排名的數(shù)據(jù)都是通過調(diào)用稱為Alexa Web Information Service (AWIS)的服務(wù),地址是http://awis.amazonaws.com/doc/2005-07-11/AWSAlexa.wsdl。

  那么我們?nèi)绾尾拍苁褂眠@些服務(wù),以便創(chuàng)建我們的Alexa排名查詢操作呢?

  1. 首先你通過網(wǎng)站連接http://www.amazon.com/gp/browse.html?node=12782661,了解它是做什么的,收費(fèi)如何(1000次約人民幣1元左右)。

  2. 注冊一個(gè)帳號,綁定您的銀行卡或者信用卡

  3. 成功后會給你一個(gè)發(fā)送一個(gè)郵件,并可以登錄查看你的專用公鑰私鑰字符串。

  4. 根據(jù)這些你就可以訪問它的AWIS訪問了,如果你要了解進(jìn)一步的開發(fā)的話,請參考這里的文檔:

  http://docs.amazonwebservices.com/AlexaWebInfoService/2005-07-11/

  5. 如果你有疑問,可以在論壇中詢問,當(dāng)然都是老外的了。http://developer.amazonwebservices.com/connect/forum.jspa?forumID=14

  6.AWIS有很多Response,如UrlInfoResponseResponse、CategoryBrowseResponseResponse、SitesLinkingInResponseResponse、TrafficHistoryResponseResponse、CategoryListingsResponseResponse、CrawlResponseResponse等,這些包含了各類排名等數(shù)據(jù)。

  7. 我調(diào)用了AWIS做了一個(gè)小的測試應(yīng)用,程序界面如下:

  8. 最后貼一些代碼輔助大家

  獲取Response的信息#region 獲取Response的信息

  public UrlInfoResponseResponse GetUrlInfoResponse(string website, string action, string responseGroup)

  {

  string timestamp = Helper.GetTimestamp();

  string signature = Helper.MakeSignature(action + timestamp, privateKey);

  //Set the request security settings

  UrlInfoRequestSecurity usecurity = new UrlInfoRequestSecurity();

  usecurity.AWSAccessKeyId = publicKey;

  usecurity.Signature = signature;

  usecurity.Timestamp = timestamp;

  UrlInfoRequest request = new UrlInfoRequest();

  request.Url = website;

  request.ResponseGroup = responseGroup;

  request.Security = usecurity;

  UrlInfo urlInfo = new UrlInfo();

  urlInfo.Request = request;

  AWSAlexa alexa = new AWSAlexa();

  UrlInfoResponse uresponse = alexa.UrlInfo(urlInfo);

  return uresponse.Response;

  }

  public CategoryBrowseResponseResponse GetCategoryBrowseResponse(string website, string action, string responseGroup, string path, bool description)

  {

  string timestamp = Helper.GetTimestamp();

  string signature = Helper.MakeSignature(action + timestamp, privateKey);

  //Set the request security settings

  CategoryBrowseRequestSecurity usecurity = new CategoryBrowseRequestSecurity();

  usecurity.AWSAccessKeyId = publicKey;

  usecurity.Signature = signature;

  usecurity.Timestamp = timestamp;

  CategoryBrowseRequest request = new CategoryBrowseRequest();

  request.ResponseGroup = responseGroup;

  request.Security = usecurity;

  request.Path = path;

  request.Descriptions = description.ToString();

  CategoryBrowse browse = new CategoryBrowse();

  browse.Request = request;

  AWSAlexa alexa = new AWSAlexa();

  CategoryBrowseResponse uresponse = alexa.CategoryBrowse(browse);

  return uresponse.Response;

  }

  public SitesLinkingInResponseResponse GetSitesLinkingInResponse(string website, string action, string responseGroup)

  {

  string timestamp = Helper.GetTimestamp();

  string signature = Helper.MakeSignature(action + timestamp, privateKey);

  //Set the request security settings

  SitesLinkingInRequestSecurity usecurity = new SitesLinkingInRequestSecurity();

  usecurity.AWSAccessKeyId = publicKey;

  usecurity.Signature = signature;

  usecurity.Timestamp = timestamp;

  SitesLinkingInRequest request = new SitesLinkingInRequest();

  request.ResponseGroup = responseGroup;

  request.Security = usecurity;

  request.Url = website;

  SitesLinkingIn browse = new SitesLinkingIn();

  browse.Request = request;

  AWSAlexa alexa = new AWSAlexa();

  SitesLinkingInResponse uresponse = alexa.SitesLinkingIn(browse);

  return uresponse.Response;

  }

  public TrafficHistoryResponseResponse GetTrafficHistoryResponse(string website, string action, string responseGroup)

  {

  string timestamp = Helper.GetTimestamp();

  string signature = Helper.MakeSignature(action + timestamp, privateKey);

  //Set the request security settings

  TrafficHistoryRequestSecurity usecurity = new TrafficHistoryRequestSecurity();

  usecurity.AWSAccessKeyId = publicKey;

  usecurity.Signature = signature;

  usecurity.Timestamp = timestamp;

  TrafficHistoryRequest request = new TrafficHistoryRequest();

  request.ResponseGroup = responseGroup;

  request.Security = usecurity;

  request.Url = website;

  TrafficHistory browse = new TrafficHistory();

  browse.Request = request;

  AWSAlexa alexa = new AWSAlexa();

  TrafficHistoryResponse uresponse = alexa.TrafficHistory(browse);

  return uresponse.Response;

  }

  public CategoryListingsResponseResponse GetCategoryListingsResponse(string website, string action, string responseGroup, string path, bool recursive)

  {

  string timestamp = Helper.GetTimestamp();

  string signature = Helper.MakeSignature(action + timestamp, privateKey);

  //Set the request security settings

  CategoryListingsRequestSecurity usecurity = new CategoryListingsRequestSecurity();

  usecurity.AWSAccessKeyId = publicKey;

  usecurity.Signature = signature;

  usecurity.Timestamp = timestamp;

  CategoryListingsRequest request = new CategoryListingsRequest();

  request.ResponseGroup = responseGroup;

  request.Security = usecurity;

  request.Path = path;//this.cmbListingPath.Text

  request.Recursive = recursive.ToString();//this.chkRecurse.Checked.ToString();

  CategoryListings browse = new CategoryListings();

  browse.Request = request;

  AWSAlexa alexa = new AWSAlexa();

  CategoryListingsResponse uresponse = alexa.CategoryListings(browse);

  return uresponse.Response;

  }

  public CrawlResponseResponse GetCrawlResponse(string website, string action, string responseGroup)

  {

  string timestamp = Helper.GetTimestamp();

  string signature = Helper.MakeSignature(action + timestamp, privateKey);

  //Set the request security settings

  CrawlRequestSecurity usecurity = new CrawlRequestSecurity();

  usecurity.AWSAccessKeyId = publicKey;

  usecurity.Signature = signature;

  usecurity.Timestamp = timestamp;

  CrawlRequest request = new CrawlRequest();

  request.ResponseGroup = responseGroup;

  request.Security = usecurity;

  request.Url = website;

  Crawl browse = new Crawl();

  browse.Request = request;

  AWSAlexa alexa = new AWSAlexa();

  CrawlResponse uresponse = alexa.Crawl(browse);

  return uresponse.Response;

  }

  #endregion


本文出自:億恩科技【1tcdy.com】

服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

  • 您可能在找
  • 億恩北京公司:
  • 經(jīng)營性ICP/ISP證:京B2-20150015
  • 億恩鄭州公司:
  • 經(jīng)營性ICP/ISP/IDC證:豫B1.B2-20060070
  • 億恩南昌公司:
  • 經(jīng)營性ICP/ISP證:贛B2-20080012
  • 服務(wù)器/云主機(jī) 24小時(shí)售后服務(wù)電話:0371-60135900
  • 虛擬主機(jī)/智能建站 24小時(shí)售后服務(wù)電話:0371-60135900
  • 專注服務(wù)器托管17年
    掃掃關(guān)注-微信公眾號
    0371-60135900
    Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號
      1
     
     
     
     

    0371-60135900
    7*24小時(shí)客服服務(wù)熱線