Skip to content

Instantly share code, notes, and snippets.

@Evshved
Created August 22, 2017 17:08
Show Gist options
  • Select an option

  • Save Evshved/9a09752f1617bd355fcfbdcd114cebd8 to your computer and use it in GitHub Desktop.

Select an option

Save Evshved/9a09752f1617bd355fcfbdcd114cebd8 to your computer and use it in GitHub Desktop.
Output
[1] pry(#<RelatedSearchWorker>)> @search_parsers
=> [#<SearchParser::Parser::GoogleRelatedParser:0x00000008570410
@cookies=
"NID=110=HFSiKlCsLEYEMXtK0IAfqYmHCVen-D5ZJEAZT; expires=Wed, 21-Feb-2018 16:51:05 GMT; path=/; domain=.google.com; HttpOnly",
@domain="google.com",
@not_found=false,
@results=
[{:url=>"https://www.bing.com/", :title=>"Bing", :domain=>"www.bing.com", :short_domain=>"bing.com"},
{:url=>"https://www.yahoo.com/", :title=>"Yahoo", :domain=>"www.yahoo.com", :short_domain=>"yahoo.com"},
{:url=>"https://search.yahoo.com/", :title=>"Yahoo Search - Web Search", :domain=>"search.yahoo.com", :short_domain=>"yahoo.com"},
{:url=>"http://www.ask.com/", :title=>"Ask.com - What's Your Question?", :domain=>"www.ask.com", :short_domain=>"ask.com"},
{:url=>"https://www.youtube.com/", :title=>"YouTube", :domain=>"www.youtube.com", :short_domain=>"youtube.com"},
{:url=>"https://duckduckgo.com/", :title=>"DuckDuckGo", :domain=>"duckduckgo.com", :short_domain=>"duckduckgo.com"},
{:url=>"https://www.linkedin.com/", :title=>"LinkedIn: Log In or Sign Up", :domain=>"www.linkedin.com", :short_domain=>"linkedin.com"}],
@results_count=7,
@retries=5,
@status={:errors=>[], :code=>200},
@timeout=10,
@without_duplicates=nil>]
@Evshved

Evshved commented Aug 22, 2017

Copy link
Copy Markdown
Author

Addressable::URI.parse('google.com')
=> #<Addressable::URI:0x3cdbc18 URI:google.com>

@Evshved

Evshved commented Aug 23, 2017

Copy link
Copy Markdown
Author

:021 > с['similargroup']['search_site']['url']
=> "jobs.tut.by"
:022 > с['similargroup']['search_site']['title']
=> "Работа в Минске, поиск работы в Беларуси. Вакансии и резюме на jobs.tut.by | РАБОТА.TUT.BY"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment