Tamamlanmış

PHP function to check a site position in Google Search Results for an exact phrase

$qst is a word (phrase) to search in Google Search Results (test word)

$qsd is a web page url address (https://*.[login to view URL]*)

$num is the amount of results to fetch in SERP

We need you to write

the

function google_pos($qst , $qsd, $num=100) {

must return

a result array

with elements

['0'] - the number of results in SERP per given word when rhe result is valid

or on error

-1 invalid word - if strlen($qst) <3 and >64

-2 invalid url syntax in $qsd

-3 invalid url lenght strlen($qsd <6 and >96)

-4 google do not provide results

i.e. if the web server we are checking from is blocked due to many requests in a short time

['gPosOrg'] - the position where the DOMAIN name is FOUND on the organic search results ($num results per page)

if not found- 0

if found from 1 to $num

['exact'] = 1 if the result matches the full url, 0 if only a domain match

['adwords'] - the amount of results in Google Ads (=0 if no Google paid ads results)

We will use the script in [login to view URL] mainly

with cirilic results

example search url is

$google_url = '[login to view URL]'.str_replace(" ", "%20", $qst).'&num='.$num;

an additional parameter for the page encoiding must be provided as we want to use the script in both

cp1251 and utf8 encoding.

Provide the best available ini_set('user_agent',' ...

and note the script must work as naturaly as possible as we need to check a big amount of words

Beceriler: PHP, HTML

Daha fazlasını gör: php parse html google search results, bring site google search results, google search results scrape php, extract google search results php program, google search results keyword phrase script, php count number google search results, php class google search results, using php scrape google search results, counting google search results php script, curl php google search results, download google search results php, php google search results, php site position google, google search results count php, scrape google search results count php, scraping google search results keywords position php, php parsing google search results

İşveren Hakkında:
( 2 değerlendirme ) Sofia, Bulgaria

Proje NO: #29309089

Seçilen:

ligagre

Hello! I will do it quickly. I have an idea how to make it more organic, for Google.bg. You will like working with me!

%selectedBids___i_period_sub_7% gün içinde 30%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(2 Değerlendirme)
2.6

Bu iş için 2 freelancer ortalamada €25 teklif veriyor

aryan151

Hello Sir I have 10 plus years experience, I have read the requirement. Ready to start work now.........

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(396 Değerlendirme)
7.1