outscraper 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/examples/Company Insights.md +32 -0
- data/examples/Company Website Finder.md +32 -0
- data/examples/Email Addresses Finder.md +32 -0
- data/examples/Google Maps Photos Scraper.md +33 -0
- data/examples/SimilarWeb Scraper.md +32 -0
- data/examples/Tripadvisor Reviews Scraper.md +33 -0
- data/examples/Trustpilot Reviews Scraper.md +32 -0
- data/examples/Trustpilot Scraper.md +32 -0
- data/examples/Trustpilot Search Scraper.md +33 -0
- data/examples/Yellow Pages Search Scraper.md +32 -0
- data/examples/Youtube Comments Scraper.md +32 -0
- data/lib/outscraper/version.rb +1 -1
- data/lib/outscraper.rb +15 -0
- metadata +13 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec5ef9939bfb85733eed3c608843fc3fb85ea39a63878361d33d6da2a0c425be
|
4
|
+
data.tar.gz: 4f83e435a083940c3bad53e843802a7ced0e9115b02836b87400a6ed6a17acee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f61c6a799dffe2c1cd2f12f2cc9e99e361086508803cd41c2b7298fb8b9e16f2cf948c555d8aada2c26b021bd256d8f25cba227dcf1adf8cee6c55c5e17837f
|
7
|
+
data.tar.gz: b8065effab991cea7f30a8628b35b3d334fa0267c5815e352a246d0caf14aff59f16ee34cacd55384dd25e86e4c3271afced432457bba1d924505e8fa47223d6
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Company Insights With Ruby
|
2
|
+
|
3
|
+
Finds company details such as revenue, size, founding year, public status, etc. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Other-Services/paths/~1company-insights/get).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Get information about the companies:
|
31
|
+
results = client.company_insights('outscraper.com')
|
32
|
+
```
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Company Website Finder With Ruby
|
2
|
+
|
3
|
+
Finds company websites based on business names.[Outscraper API](https://app.outscraper.cloud/api-docs#tag/Domain-Related/paths/~1company-website-finder/get).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Get information about business:
|
31
|
+
results = client.company_website_finder('Apple Inc')
|
32
|
+
```
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Email Addresses Finder With Ruby
|
2
|
+
|
3
|
+
Allows to validate email addresses. Checks if emails are deliverable. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Email-Related/paths/~1email-validator/get).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Validate email addresses:
|
31
|
+
results = client.validate_emails('support@outscraper.com')
|
32
|
+
```
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Google Maps Photos Scraper With Ruby
|
2
|
+
|
3
|
+
Returns Google Maps photos from places when using search queries (e.g., restaurants, Manhattan, NY, USA) or from a single place when using IDs or names (e.g., NoMad Restaurant, NY, USA, 0x886916e8bc273979:0x5141fcb11460b226, ChIJu7bMNFV-54gR-lrHScvPRX4).
|
4
|
+
In case no photos were found by your search criteria, your search request will consume the usage of one photo.[Outscraper API](https://app.outscraper.cloud/api-docs#tag/Google/paths/~1maps~1photos-v3/get).
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Install the gem and add to the application's Gemfile by executing:
|
9
|
+
```bash
|
10
|
+
bundle add outscraper
|
11
|
+
```
|
12
|
+
|
13
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
|
+
```bash
|
15
|
+
gem install outscraper
|
16
|
+
```
|
17
|
+
|
18
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
19
|
+
|
20
|
+
## Initialization
|
21
|
+
```ruby
|
22
|
+
require 'Outscraper'
|
23
|
+
|
24
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
25
|
+
```
|
26
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# Get information about the places photos:
|
32
|
+
results = client.google_maps_photos('The NoMad Restaurant, NY, USA')
|
33
|
+
```
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# SimilarWeb Scraper With Ruby
|
2
|
+
|
3
|
+
Returns website analytics data including traffic, rankings, audience insights, and competitive intelligence from SimilarWeb [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Domain-Related/paths/~1similarweb/get).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Get data from Similarweb businesses:
|
31
|
+
results = client.similarweb('apple.com')
|
32
|
+
```
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Tripadvisor Reviews Scraper With Ruby
|
2
|
+
|
3
|
+
Returns reviews from Tripadvisor businesses.
|
4
|
+
In case no reviews were found by your search criteria, your search request will consume the usage of one review. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Reviews-and-Comments/paths/~1tripadvisor-reviews/get).
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Install the gem and add to the application's Gemfile by executing:
|
9
|
+
```bash
|
10
|
+
bundle add outscraper
|
11
|
+
```
|
12
|
+
|
13
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
|
+
```bash
|
15
|
+
gem install outscraper
|
16
|
+
```
|
17
|
+
|
18
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
19
|
+
|
20
|
+
## Initialization
|
21
|
+
```ruby
|
22
|
+
require 'Outscraper'
|
23
|
+
|
24
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
25
|
+
```
|
26
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# Get information about business:
|
32
|
+
results = client.tripadvisor_reviews('https://www.tripadvisor.com Restaurant_Review-g187147-d12947099-Reviews-Mayfair_Garden-Paris_Ile_de_France.html')
|
33
|
+
```
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Trustpilot Reviews Scraper With Ruby
|
2
|
+
|
3
|
+
Returns reviews from Trustpilot businesses. In case no reviews were found by your search criteria, your search request will consume the usage of one review.[Outscraper API](https://app.outscraper.cloud/api-docs#tag/Reviews-and-Comments/paths/~1trustpilot~1reviews/get).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Get information about the reviews from Trustpilot:
|
31
|
+
results = client.trustpilot_reviews('https://www.trustpilot.com/review/outscraper.com')
|
32
|
+
```
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Trustpilot Scraper With Ruby
|
2
|
+
|
3
|
+
Returns data from Trustpilot businesses. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Businesses-and-POI/paths/~1trustpilot/get).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Search data from Trustpilot businesses:
|
31
|
+
results = client.trustpilot('outscraper.com')
|
32
|
+
```
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Trustpilot Search Scraper With Ruby
|
2
|
+
|
3
|
+
Returns search results from Trustpilot. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Trustpilot/paths/~1trustpilot~1search/get).
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Install the gem and add to the application's Gemfile by executing:
|
9
|
+
```bash
|
10
|
+
bundle add outscraper
|
11
|
+
```
|
12
|
+
|
13
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
|
+
```bash
|
15
|
+
gem install outscraper
|
16
|
+
```
|
17
|
+
|
18
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
19
|
+
|
20
|
+
## Initialization
|
21
|
+
```ruby
|
22
|
+
require 'Outscraper'
|
23
|
+
|
24
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
25
|
+
```
|
26
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# Get information about the search results from Trustpilot:
|
32
|
+
results = client.trustpilot_search('real estate')
|
33
|
+
```
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Emails And Contacts Scraper With Ruby
|
2
|
+
|
3
|
+
Allows finding email addresses, social links, and phones from domains via [Outscraper API](https://app.outscraper.com/api-docs#tag/Emails-and-Contacts).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Search results from Yellow Pages:
|
31
|
+
results = client.yellowpages_search('restaurants')
|
32
|
+
```
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Youtube Comments Scraper With Ruby
|
2
|
+
|
3
|
+
Returns comments from YouTube videos.[Outscraper API](https://app.outscraper.cloud/api-docs#tag/Reviews-and-Comments/paths/~1youtube-comments/get).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
```bash
|
9
|
+
bundle add outscraper
|
10
|
+
```
|
11
|
+
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
13
|
+
```bash
|
14
|
+
gem install outscraper
|
15
|
+
```
|
16
|
+
|
17
|
+
[Link to the Ruby package page](https://rubygems.org/gems/outscraper)
|
18
|
+
|
19
|
+
## Initialization
|
20
|
+
```ruby
|
21
|
+
require 'Outscraper'
|
22
|
+
|
23
|
+
client = Outscraper::Client.new('SECRET_API_KEY')
|
24
|
+
```
|
25
|
+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
# Get information about the comments from YouTube videos:
|
31
|
+
results = client.youtube_comments('https://www.youtube.com/watch?v=ph5pHgklaZ0')
|
32
|
+
```
|
data/lib/outscraper/version.rb
CHANGED
data/lib/outscraper.rb
CHANGED
@@ -337,5 +337,20 @@ module Outscraper
|
|
337
337
|
async: async_request
|
338
338
|
}).parsed_response['data']
|
339
339
|
end
|
340
|
+
|
341
|
+
def yellowpages_search(query, location: 'New York, NY', limit: 100, region: nil, enrichment: [], fields: '', async_request: false, ui: nil, webhook: nil)
|
342
|
+
enrichment_array = enrichment.is_a?(Array) ? enrichment : [enrichment]
|
343
|
+
response = self.class.get('/yellowpages-search', query: {
|
344
|
+
query: query.is_a?(Array) ? query : [query],
|
345
|
+
location: location,
|
346
|
+
limit: limit,
|
347
|
+
region: region,
|
348
|
+
enrichment: enrichment_array,
|
349
|
+
fields: fields,
|
350
|
+
async: async_request,
|
351
|
+
ui: ui,
|
352
|
+
webhook: webhook
|
353
|
+
}).parsed_response['data']
|
354
|
+
end
|
340
355
|
end
|
341
356
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: outscraper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Outscraper
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -39,11 +39,22 @@ files:
|
|
39
39
|
- LICENSE.txt
|
40
40
|
- README.md
|
41
41
|
- Rakefile
|
42
|
+
- examples/Company Insights.md
|
43
|
+
- examples/Company Website Finder.md
|
44
|
+
- examples/Email Addresses Finder.md
|
42
45
|
- examples/Emails And Contacts.md
|
46
|
+
- examples/Google Maps Photos Scraper.md
|
43
47
|
- examples/Google Maps Reviews.md
|
44
48
|
- examples/Google Maps.md
|
45
49
|
- examples/Google SERP.md
|
46
50
|
- examples/Phones Validator.md
|
51
|
+
- examples/SimilarWeb Scraper.md
|
52
|
+
- examples/Tripadvisor Reviews Scraper.md
|
53
|
+
- examples/Trustpilot Reviews Scraper.md
|
54
|
+
- examples/Trustpilot Scraper.md
|
55
|
+
- examples/Trustpilot Search Scraper.md
|
56
|
+
- examples/Yellow Pages Search Scraper.md
|
57
|
+
- examples/Youtube Comments Scraper.md
|
47
58
|
- lib/outscraper.rb
|
48
59
|
- lib/outscraper/version.rb
|
49
60
|
- sig/outscraper.rbs
|