<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>awis归档 - 布鲁文的蓝色奇想</title>
	<atom:link href="https://www.mrven.com/node/tag/awis/feed" rel="self" type="application/rss+xml" />
	<link>https://www.mrven.com/node/tag/awis</link>
	<description>A MRVEN SITE</description>
	<lastBuildDate>Tue, 30 Dec 2008 03:54:23 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>
	<item>
		<title>Alexa Web Information Service 出现异常</title>
		<link>https://www.mrven.com/node/335</link>
					<comments>https://www.mrven.com/node/335#comments</comments>
		
		<dc:creator><![CDATA[Ven]]></dc:creator>
		<pubDate>Tue, 30 Dec 2008 03:54:23 +0000</pubDate>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[alexa]]></category>
		<category><![CDATA[awis]]></category>
		<guid isPermaLink="false">http://www.naks.cn/blueven/?p=335</guid>

					<description><![CDATA[<p>awis最近出了点问题，ContributingSubdomains中只包含了PageViewsPercent [&#8230;]</p>
<p><a href="https://www.mrven.com/node/335">Alexa Web Information Service 出现异常</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>awis最近出了点问题，ContributingSubdomains中只包含了PageViewsPercentage信息，其他信息全部没了。因此在查看网站子域名流量时，只能看到页面浏览量比例，而子域名、访问比例和人均浏览量都成了空的。</p>
<p>返回信息样本：</p>
<pre>&lt;aws:ContributingSubdomain&gt;
&lt;aws:DataUrl/&gt;
−
&lt;aws:TimeRange&gt;
&lt;aws:Months&gt;1&lt;/aws:Months&gt;
&lt;/aws:TimeRange&gt;
−
&lt;aws:Reach&gt;
&lt;aws:Percentage/&gt;
&lt;/aws:Reach&gt;
−
&lt;aws:PageViews&gt;
&lt;aws:Percentage&gt;91.1&lt;/aws:Percentage&gt;
&lt;aws:PerUser/&gt;
&lt;/aws:PageViews&gt;
&lt;/aws:ContributingSubdomain&gt;</pre>
<p>此现象大概开始于本月初，Alexa官方并为对这一问题进行回应。结合最近Alexa工具条上的排名已超过一星期未更新，猜测可能是Alexa正在进行大规模的调整。</p>
<p><a href="https://www.mrven.com/node/335">Alexa Web Information Service 出现异常</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mrven.com/node/335/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Alexa Web Information Service 开发指南</title>
		<link>https://www.mrven.com/node/157</link>
					<comments>https://www.mrven.com/node/157#comments</comments>
		
		<dc:creator><![CDATA[Ven]]></dc:creator>
		<pubDate>Tue, 15 Apr 2008 01:25:25 +0000</pubDate>
				<category><![CDATA[Web开发]]></category>
		<category><![CDATA[awis]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[原创]]></category>
		<category><![CDATA[翻译]]></category>
		<guid isPermaLink="false">http://www.naks.cn/blueven/?p=157</guid>

					<description><![CDATA[<p>Alexa Web Information Service（简称AWIS）是Alexa提供的一个基于Web的A [&#8230;]</p>
<p><a href="https://www.mrven.com/node/157">Alexa Web Information Service 开发指南</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>Alexa Web Information Service（简称AWIS）是Alexa提供的一个基于Web的API服务。通过此API，你可以查询指定网站或网址的Alexa流量信息等内容。</p>
<p>由于工作上的需要，最近接触了Alexa Web Information Service（AWIS），发现开发文档没有中文版，内容不多，我就顺手翻译了。</p>
<p>Alexa和Amazon对本文的原文保有版权（如果有的话）。本人对译文保有版权。如需转载请与本人联系（联系方式见此页：<a href="https://www.mrven.com//?page_id=35">http://www.naks.cn/blueven/?page_id=35</a>）。</p>
<p>本人才疏学浅，翻译中难免有错，欢迎大家指正。如果你对AWIS有问题的话，可以在这个页面（<a href="https://www.mrven.com//?page_id=155">http://www.naks.cn/blueven//?page_id=155</a>）提出，我将尽力回答。</p>
<p>感谢我的老板牛先生，他让我有机会接触AWIS，并且借我AWIS的账号用。</p>
<p>——by Ven</p>
<p>2008-4-15</p>
<p>下载本文档的PDF版：<a href="https://www.mrven.com/wp-content/uploads/awis_dg.zip" title="Alexa Web Information Service 开发者指南">Alexa Web Information Service 开发者指南 PDF版<br />
</a></p>
<p><a href="http://docs.amazonwebservices.com/AlexaWebInfoService/2005-07-11/"></a></p>
<p>在线阅读：<a href="https://www.mrven.com//?page_id=155">http://www.naks.cn/blueven/?page_id=155</a></p>
<p>英文原文链接：<a href="http://docs.amazonwebservices.com/AlexaWebInfoService/2005-07-11/">http://docs.amazonwebservices.com/AlexaWebInfoService/2005-07-11/</a></p>
<p><a href="https://www.mrven.com/node/157">Alexa Web Information Service 开发指南</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mrven.com/node/157/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>用SimpleXML函数解析AWIS（Alexa Web Information Service）数据</title>
		<link>https://www.mrven.com/node/152</link>
					<comments>https://www.mrven.com/node/152#respond</comments>
		
		<dc:creator><![CDATA[Ven]]></dc:creator>
		<pubDate>Fri, 11 Apr 2008 07:19:35 +0000</pubDate>
				<category><![CDATA[Web开发]]></category>
		<category><![CDATA[awis]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[simplexml]]></category>
		<guid isPermaLink="false">http://www.naks.cn/blueven/?p=152</guid>

					<description><![CDATA[<p>公司要用Alexa Web Information Service（简称AWIS）做一个网站查询系统。 AWI [&#8230;]</p>
<p><a href="https://www.mrven.com/node/152">用SimpleXML函数解析AWIS（Alexa Web Information Service）数据</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>公司要用Alexa Web Information Service（简称AWIS）做一个网站查询系统。</p>
<p>AWIS的工作原理是：用户发送一个URL请求，该请求包含账号ID与密码（是的，这个API是收费的，每千次查询0.15美元） 、需要查询的网址和查询信息的种类等。Alexa的服务器接收请求后，返回一个XML文件，该文件即包含了结果信息。</p>
<p>本打算用PHP的SimpleXML函数来解析这个XML，但SimplyXML不支持Alexa自定义的Name Space（aws:），于是想到个办法，把这个自定义的Name Space删除掉。结果一切就正常了。</p>
<p>示例代码如下：</p>
<p>$filecontent  = file_get_contents( $awis_url ); //从alexa获取数据<br />
$filecontent = str_replace(&#8216;aws:&#8217;,&#8221;,$filecontent); //剔除aws:<br />
$xml =  simplexml_load_string( $filecontent  );</p>
<p>这只是一种简单、懒惰的解决方法。它不够强健， 无法应对多种多样的自定义namespace。如果你追求完美，请参考以下文档：</p>
<p><a href="http://devzone.zend.com/node/view/id/688#Heading3" target="_blank">http://devzone.zend.com/node/view/id/688#Heading3</a></p>
<p><a href="https://www.mrven.com/node/152">用SimpleXML函数解析AWIS（Alexa Web Information Service）数据</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mrven.com/node/152/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
