通过 API (PHP) 获取 Google PageRank
我有一个域列表,并希望获得:
- 所有域的 PageRank。所以只要是一个整数,就一定有一个 API 可以返回它。
- Google 中的结果数
- 域名单词的位置。例如,“google.com”将是单词“google”的位置。这可能是位置 20。
I have a list of domains and would like to get the:
- PageRank for all the domains. So just an integer, there must be an API that returns this.
- The number of results in Google
- The position of the word of the domainname. For example, "google.com" would be the position of the word "google". This could be position 20.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这将拥有您需要的一切。
https://github.com/eyecatchup/SEOstats
太棒了。
This will have everything you need.
https://github.com/eyecatchup/SEOstats
Amazing.
我发布了 Pagerank API返回一个 json 数组,其中包含任何 URL 的校验和和 Pagerank。
我还有一堆相关工具和一个您可能感兴趣的 Google 代码项目。
I've published a Pagerank API that returns a json array, containing the checksum and the Pagerank of any URL.
I also have a bunch of related tools and a Google code project that might interest you.
没有 API。然而,有一些方法可以做到这一点,但都可能存在问题。如果您愿意使用 Python,我最近发现了一个 脚本 来执行此操作。
Google 曾经有 SOAP API,但现在没有了。有些人会抓取结果。您可以尝试从 AJAX API 获取它,但没有用于此目的的公共 API。
我不明白你在这里问的问题。您能否澄清一下,我会更新我的答案?
There isn't an API. However, there are ways to do it, all potentially problematic. If you were willing to use Python, I recently discovered a script to do it.
Google used to have a SOAP API, but no longer. Some people scrape the results. You can try to get it from the AJAX API, but there's not a public API for this.
I don't understand you question here. Could you clarify and I'll update my answer?
试试这个家伙:http://www.fourmilab.ch/webtools/PageRank/
虽然写了在 perl 中,您可以从 PHP 向操作系统发出调用来运行它,然后进一步处理输出。确保将 http:// 放在查询的开头,并且每秒访问 google 服务器的频率不要超过一次,如果用户将使用此功能,请清理(urlencode)用户输入。
Try this guy: http://www.fourmilab.ch/webtools/PageRank/
although written in perl, you can issue a call to your OS from PHP to run this, then further process the output. Make sure to put http:// at the beginning your your query, and not hit the google server more often than once per second, and sanitize (urlencode) the user input if users will be using this.