Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kagermanov27 committed Jul 6, 2023
1 parent d658675 commit 7a8e7b4
Show file tree
Hide file tree
Showing 7 changed files with 488 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
source 'https://rubygems.org'
gemspec

gem 'faraday', '~> 2.7', '>= 2.7.9'
gem 'json', '~> 2.6', '>= 2.6.3'
gem 'optparse', '~> 0.3.1'
gem 'concurrent-ruby', '~> 1.2', '>= 1.2.2'
gem 'csv', '~> 3.2', '>= 3.2.7'
gem 'zlib', '~> 3.0'
gem 'stringio', '~> 3.0', '>= 3.0.7'
gem 'brotli', '~> 0.4.0'
45 changes: 45 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
PATH
remote: .
specs:
clauneck (0.0.1)
brotli (~> 0.4.0)
concurrent-ruby (~> 1.2, >= 1.2.2)
csv (~> 3.2, >= 3.2.7)
faraday (~> 2.7, >= 2.7.9)
json (~> 2.6, >= 2.6.3)
optparse (~> 0.3.1)
stringio (~> 3.0, >= 3.0.7)
zlib (~> 3.0)

GEM
remote: https://rubygems.org/
specs:
brotli (0.4.0)
concurrent-ruby (1.2.2)
csv (3.2.7)
faraday (2.7.9)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
json (2.6.3)
optparse (0.3.1)
ruby2_keywords (0.0.5)
stringio (3.0.7)
zlib (3.0.0)

PLATFORMS
ruby

DEPENDENCIES
brotli (~> 0.4.0)
clauneck!
concurrent-ruby (~> 1.2, >= 1.2.2)
csv (~> 3.2, >= 3.2.7)
faraday (~> 2.7, >= 2.7.9)
json (~> 2.6, >= 2.6.3)
optparse (~> 0.3.1)
stringio (~> 3.0, >= 3.0.7)
zlib (~> 3.0)

BUNDLED WITH
2.4.12
5 changes: 5 additions & 0 deletions bin/clauneck
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env ruby

require_relative '../lib/clauneck'

Clauneck.run
23 changes: 23 additions & 0 deletions clauneck.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Gem::Specification.new do |s|
s.name = 'clauneck'
s.version = '0.0.1'
s.date = '2023-07-05'
s.summary = "Custom Lead Acquisition Using Next-Generation Extraction and Collection Kit"
s.description = "A tool for scraping emails, social media accounts, and many more information from websites using Google Search Results."
s.authors = ["Emirhan Akdeniz"]
s.email = '[email protected]'
s.files = ["lib/clauneck.rb", "bin/clauneck"]
s.homepage = 'https://github.com/serpapi/clauneck'
s.license = 'MIT'
s.require_paths = ["lib"]
s.bindir = 'bin'
s.executables = ["clauneck"]
s.add_dependency 'faraday', '~> 2.7', '>= 2.7.9'
s.add_dependency 'json', '~> 2.6', '>= 2.6.3'
s.add_dependency 'optparse', '~> 0.3.1'
s.add_dependency 'concurrent-ruby', '~> 1.2', '>= 1.2.2'
s.add_dependency 'csv', '~> 3.2', '>= 3.2.7'
s.add_dependency 'zlib', '~> 3.0'
s.add_dependency 'stringio', '~> 3.0', '>= 3.0.7'
s.add_dependency 'brotli', '~> 0.4.0'
end
11 changes: 11 additions & 0 deletions example.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env ruby

require './lib/clauneck'

api_key = "<SerpApi API Key>" # Visit https://serpapi.com/users/sign_up to get free credits.
proxy = "proxies.txt" # Only HTTP Proxies are accepted
params = {
"q": "site:*.ai AND inurl:/contact OR inurl:/contact-us"
}

Clauneck.run(api_key: api_key, params: params, proxy: proxy, pages: 2)
8 changes: 8 additions & 0 deletions example_output.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
www.serpapi.com,[email protected],Email
www.serpapi.com,serpapicom,Instagram
www.serpapi.com,serpapicom,Facebook
www.serpapi.com,serp_api,Twitter
www.serpapi.com,null,Tiktok
www.serpapi.com,channel/UCUgIHlYBOD3yA3yDIRhg_mg,Youtube
www.serpapi.com,serpapi,Github
www.serpapi.com,serpapi,Medium
Loading

0 comments on commit 7a8e7b4

Please sign in to comment.