unusual export google search results

General discussions related to php

Moderators: macek, egami, gesf

hatkeykkomp
New php-forum User
New php-forum User
Posts: 1
Joined: Wed Jun 11, 2014 11:36 pm

unusual export google search results

Postby hatkeykkomp » Wed Jun 11, 2014 11:41 pm

Hi

I put on, the search provider Google CSE at:

http://serwerek.laohost.net/tajne/cse.html

Code: Select all

<script>
  (function() {
    var cx = '000743429867938185976:bvd3rzumobk';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search gl="pl"></gcse:search>


Is it possible to extract from these results some variables?

I mean something like that when you type the phrase and its searching shows us 10 results in the form of:

TITLE
DESCRIPTION
http://www.examplesearchresult.com

it is possible to save the page adress as a variable, e.g.: $adress1

Return to “PHP General”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron