scraping only the 2nd page - X page

Discussion in 'A-Parser Support Forum' started by bhseo, Apr 6, 2016.

  1. bhseo

    bhseo A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Dec 30, 2015
    Messages:
    1
    Likes Received:
    0
    please help with this task:

    i want to load a list of keywords and aparser will scrape the results for each keyword on google. however, i want to only save the results that were found on the 2nd and 3rd page of google. i DONT want to save the first page results. additionally, in the results file, i want to append the keyword used for that result. for example

    url1 - kw1
    url2- kw1
    url3- kw1
    url4 -kw2
    url5- kw2

    etc. i just want to know what keyword created that result.

    please help me with this, thanks so much!
     
  2. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    4,547
    Likes Received:
    2,164
    Set the output of specific page of search results can not. But it is possible to output all the elements between the specified boundaries. For example, if on each page is 100 links, then to display all the results from the second page with keywords, you need to specify a format of the result:
    Code:
    [% p1.serp.slice(100,p1.serp.max).format('$link - $query\n') %]
     

Share This Page