PHP Find pages Indexed by Bing for a domain example

Hi Guys,

In the previous post I showed you how to get pages indexed by Google. We used function file_get_contents() to get page as HTML and then parse it to extract the value that we are interested in.

 

This post is pretty much the same logic with only difference that we will be using CURL to get the contents and the parse it

Pages indexed by Bing can be quickly checked with query site:yoursite.com and the Number that we are interested in is directly under the search box with value something like this “1231123 Results

This post shows you how to extract that value.

The PHP Code snippet

Here is a function that you can include in your utility class or just

 

Usage

Using the above function as per the previous post is quite save and is shown below

Bing does not have any API as such that can give you this value. So this is kinda workaround. If I am wrong to say this please correct me.

I hope that this helps

Cheers.

VN:R_U [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:R_U [1.9.22_1171]
Rating: 0 (from 0 votes)

Speak Your Mind

*

CommentLuv badge