Method: GoogleClient#initialize

Defined in:
lib/whos_using_what/api_clients/google_client.rb

#initializeGoogleClient

Returns a new instance of GoogleClient.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/whos_using_what/api_clients/google_client.rb', line 10

def initialize

  @negativeMatchUrlPatterns = ['google', 'youtube', 'duckduckgo', 'bing', 'yahoo']

  @positiveMatchUrlPatterns = ['http', 'www']

  @technologiesToSearchFor = ['ruby', 'java', 'javascript', 'python']

  @jobPageTokens = ['job', 'hiring', 'career']

  @results = Hash.new

  @mechanize = Mechanize.new

  headless = Headless.new
  headless.start
  @browser = Watir::Browser.new :firefox


end