URL indexing in Google

*爱你&永不变心* 提交于 2019-12-19 10:07:33

问题


I want to check that a specific url is indexed in google using asp.net. Is google provide any api, webmethod anything regarding this.

Please provide your comments if anybody know about this:

Syed,


回答1:


You can search Google for

site:www.websiteyouwanttosearch.com

and parse the results for this.




回答2:


You could use Google's JSON/Atom Custom Search API to accomplish that. Search for a website's address like ?q=www.stackoverflow.com and if you get any results, it's indexed.

To access this API in .NET you can use Google's APIs Client Library for .NET.

According to this answer on SO, it's probably not a good idea to to it without using an official API provided by Google because that would be against their ToS.



来源:https://stackoverflow.com/questions/5089640/url-indexing-in-google

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