henry@gmai l.com tejera
AutoIT bindings for Alexa Web Information Service (AWIS) API
awis.au3 | |
Functions | |
_GetXMLHTTP() | Returns an XMLHTTP object |
_AWIS_GetURLInfo | The URL Information Action provides information about websites. |
_AWIS_CategoryBrowse | Get lists of sites within a specific category ordered by traffic rank, or create a browseable directory of websites The CategoryBrowse action provide a directory service based on the Open Directory, www.dmoz.org, and enhanced with Alexa traffic data. |
_AWIS_CategoryListings | The CategoryListings action is a directory service based on the Open Directory, www.dmoz.org. |
_AWIS_SitesLinkingIn | The Sites Linking In action returns a list of web sites linking to a given web site. |
_AWIS_TrafficHistory | The TrafficHistory action returns the daily Alexa Traffic Rank, Reach per Million Users, and Unique Page Views per Million Users for each day since June 2007. |
_AWIS_TopSites | The TopSites action provides lists of web sites ordered by Alexa Traffic Rank. |
_buildQueryParams | Builds the url for the request to ATS The url will be urlencoded as per RFC 3986 and the uri params will be in alphabetical order |
_generateSignature | Generates an HMAC signature per RFC 2104. |
_makeRequest | Makes request to AWIS |
_parseResponseUrlInfo() | Parses XML response from AWIS for UrlInfo action. |
_parseResponseCategoryBrowse() | Parses XML response from AWIS for CategoryBrowse action. |
_parseResponseCategoryListings() | Parses XML response from AWIS for CategoryListings action. |
_parseResponseSitesLinkingIn() | Parses XML response from AWIS for SitesLinkingIn action. |
_parseResponseTrafficHistory | Parses XML response from AWIS for SitesLinkingIn action. |
_parseResponseTopSites | Parses XML response from AWIS for TopSites action. |
_Log | Logging utility that you can use to output messages. |
_ErrFunc | COM error hanlder |
Func _AWIS_GetURLInfo( $Count, $ResponseGroup, $Start, $Url, $XMLResponse = False )
The URL Information Action provides information about websites. Examples of this information may include data on how popular a site is, sites that are related, and contact information for the owner of a site.
$Conunt | String number of results (maximum) per page to return. |
$ResponseGroup | String Response groups allow the user more control over what data is returned. |
$Start | Int 1-based index of result at which to start |
$Url | String Any valid URL. The URL parameter specifies the URL, host or domain about which you would like to receive information. |
$XMLResponse | Boolean If True the value returned is the XML response, if False returned a Scripting.Dictionary |
Func _AWIS_CategoryBrowse( $Count, $ResponseGroup, $Start, $Path, $Descriptions = True, $XMLResponse = False )
Get lists of sites within a specific category ordered by traffic rank, or create a browseable directory of websites The CategoryBrowse action provide a directory service based on the Open Directory, www.dmoz.org, and enhanced with Alexa traffic data.
$Conunt | String number of results (maximum) per page to return. |
$ResponseGroup | String Response groups allow the user more control over what data is returned.; |
$Start | Int 1-based index of result at which to start |
$Path | String Valid category path (Top/Arts, Top/Business/Automotive) |
$Descriptions | Boolean indicating whether to return descriptions with categories. (Default is True) |
$XMLResponse | Boolean If True the value returned is the XML response, if False returned a Scripting.Dictionary |
Func _AWIS_CategoryListings( $Count, $ResponseGroup, $Start, $Path, $SortBy = "Popularity", $Recursive = False, $Descriptions = True, $XMLResponse = False )
The CategoryListings action is a directory service based on the Open Directory, www.dmoz.org. For any given category, it returns a list of site listings contained within that category.
$Conunt | Number of results to return for this request, beginning from specified Start number (maximum 20) |
$ResponseGroup | String “Listings” is the only available response group. |
$Path | String Valid category path. Note that top-level categories will not return any listings unless Recursive=yes is specified. |
$Start | Int 1-based index of result at which to start. Note: An empty document will be returned if this value exceeds the total number of available results. |
$SortBy | String Indicates how to sort the results returned by this service: ( Popularity | Title | AverageReview ) Deault is Popularity. |
$Recursive | Boolean specify whether to return listings for the current category only, or for the current category plus all subcategories. |
$sDescription | boolean indicating whether to return descriptions with categories Default is True |
$XMLResponse | Boolean If True the value returned is the XML response, if False returned a Scripting.Dictionary |
Func _AWIS_SitesLinkingIn( $Count, $Start, $Url, $XMLResponse = False )
The Sites Linking In action returns a list of web sites linking to a given web site. Within each domain linking into the web site, only a single link - the one with the highest page-level traffic - is returned. The data is updated once every two months.; Atention: In this action the URL no allow http://www. For more information check this: https://forums.aws.amazon.com
$Conunt | String number of results (maximum) per page to return. Note that the response document may contain fewer results than this maximum. |
$ResponseGroup | String Response groups allow the user more control over what data is returned. By specifying one or more response groups when making the request, you can retrieve only the information you are interested in |
$Start | Int 1-based index of result at which to start. |
$Url | String Any valid URL. The URL parameter specifies the URL, host or domain about which you would like to receive information. |
$XMLResponse | Boolean If True the value returned is the XML response, if False returned a Scripting.Dictionary. |
Func _AWIS_TrafficHistory( $Count, $Url, $Start, $Range = 3, $XMLResponse = False )
The TrafficHistory action returns the daily Alexa Traffic Rank, Reach per Million Users, and Unique Page Views per Million Users for each day since June 2007. This same data is used to produce the traffic graphs found on alexa.com.
$Conunt | String number of results (maximum) per page to return. |
$ResponseGroup | String “History” is the only available response group. |
$Url | String Any valid URL. The URL parameter specifies the URL, host or domain about which you would like to receive information. |
$Start | String start date for results. The first start available date is “20070601” (June 1, 2007). |
$Range | String number of days to return. Note that the response document may contain fewer results than this maximum if data is not available. Default is 3. |
$XMLResponse | Boolean If True the value returned is the XML response, if False returned a Scripting.Dictionary. |
Func _AWIS_TopSites( $Count, $ResponseGroup, $Start, $CountryCode, $XMLResponse = False )
The TopSites action provides lists of web sites ordered by Alexa Traffic Rank. A global list is available, as well as lists for individual countries.
$Count | String number of results (maximum) per page to return. Maximum is ‘100’. |
$ResponseGroup | String Any valid response group. |
$Start | Int number of result at which to start. Used for paging through results. |
$CountryCode | String Valid country code. |
$XMLResponse | Boolean If True the value returned is the XML response, if False returned a Scripting.Dictionary. |
Returns an XMLHTTP object
Func _GetXMLHTTP()
The URL Information Action provides information about websites.
Func _AWIS_GetURLInfo( $Count, $ResponseGroup, $Start, $Url, $XMLResponse = False )
Get lists of sites within a specific category ordered by traffic rank, or create a browseable directory of websites The CategoryBrowse action provide a directory service based on the Open Directory, www.dmoz.org, and enhanced with Alexa traffic data.
Func _AWIS_CategoryBrowse( $Count, $ResponseGroup, $Start, $Path, $Descriptions = True, $XMLResponse = False )
The CategoryListings action is a directory service based on the Open Directory, www.dmoz.org.
Func _AWIS_CategoryListings( $Count, $ResponseGroup, $Start, $Path, $SortBy = "Popularity", $Recursive = False, $Descriptions = True, $XMLResponse = False )
The Sites Linking In action returns a list of web sites linking to a given web site.
Func _AWIS_SitesLinkingIn( $Count, $Start, $Url, $XMLResponse = False )
The TrafficHistory action returns the daily Alexa Traffic Rank, Reach per Million Users, and Unique Page Views per Million Users for each day since June 2007.
Func _AWIS_TrafficHistory( $Count, $Url, $Start, $Range = 3, $XMLResponse = False )
The TopSites action provides lists of web sites ordered by Alexa Traffic Rank.
Func _AWIS_TopSites( $Count, $ResponseGroup, $Start, $CountryCode, $XMLResponse = False )
Builds the url for the request to ATS The url will be urlencoded as per RFC 3986 and the uri params will be in alphabetical order
Func _buildQueryParams( $oParameters )
Generates an HMAC signature per RFC 2104.
Func _generateSignature( $sUrlParams, $sHost )
Makes request to AWIS
Func _makeRequest( $sURL )
Parses XML response from AWIS for UrlInfo action.
Func _parseResponseUrlInfo( $sResponse )
Parses XML response from AWIS for CategoryBrowse action.
Func _parseResponseCategoryBrowse( $sResponse )
Parses XML response from AWIS for CategoryListings action.
Func _parseResponseCategoryListings( $sResponse )
Parses XML response from AWIS for SitesLinkingIn action.
Func _parseResponseSitesLinkingIn( $sResponse )
Parses XML response from AWIS for SitesLinkingIn action.
Func _parseResponseTrafficHistory( $sResponse )
Parses XML response from AWIS for TopSites action.
Func _parseResponseTopSites( $sResponse )
Logging utility that you can use to output messages.
Func _Log( $sText, $iStyle )
COM error hanlder
Func _ErrFunc( $oError )