Getting Google PageRank via an API (PHP) [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-18 10:14:09

问题


I have a list of domains and would like to get the:

  1. PageRank for all the domains. So just an integer, there must be an API that returns this.
  2. The number of results in Google
  3. 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.

回答1:


This will have everything you need. https://github.com/eyecatchup/SEOstats

Amazing.




回答2:


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.




回答3:


  1. 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.

  2. 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.

  3. I don't understand you question here. Could you clarify and I'll update my answer?




回答4:


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.



来源:https://stackoverflow.com/questions/1344917/getting-google-pagerank-via-an-api-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!