有没有办法检查在Google+上完成了多少个网址?
来自Facebook和Twitter的相应内容将是:http://graph.facebook.com/http: //stackoverflow.com 和 http://urls.api.twitter.com/1/urls/count.json?url=http ://stackoverflow.com
在Google+上有相同的内容吗?
你在找这个吗?
https://plusone.google.com/_/+1/fastbutton?url=http://stackoverflow.com
如果要搜索文本值,可以在URL的源代码中搜索以下行:
<div id="aggregateCount" class="Oy">{NUMBER_OF_SHARES}</div>
Run Code Online (Sandbox Code Playgroud)
以下JavaScript将从URL中提取共享的数量:
parseInt(document.getElementById('aggregateCount').innerHTML.replace('.',''))
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1746 次 |
最近记录: |