 cheerio   = require 'cheerio'
 htmlStrip = require 'htmlstrip-native'
 
-TARGET_VERSION = 5.1
+TARGET_VERSION = 5.2
 SEARCH_URL = 'https://www.google.com/search'
 USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36'
 #Rommie=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1309.0 Safari/537.17

      else
        "site:laravel.com/api/#{TARGET_VERSION} #{query}"
    else if doctype == 'lumen'
      "site:lumen.laravel.com/docs #{query}"
    else if doctype == 'php'
      "site:php.net/manual/en #{query}"
    else

      else
        "site:laravel.com/docs/#{TARGET_VERSION} #{query}"

  fetchResult = (query, location, callback) ->
    robot.http(location)
      .header('User-Agent', USER_AGENT)
      .query(q: query)
      .get() (err, res, body) ->
        if res.statusCode is 302
          return fetchResult query, res.headers.location, callback

        $ = cheerio.load body
        result = $('#rso .g').first()
        # Jump To Link ? Main Link
