outscraper 0.3.2 → 0.3.3
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/Contacts And Leads.md +32 -0
- data/lib/outscraper/version.rb +1 -1
- data/lib/outscraper.rb +26 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b226c0d690b74a7dbbb8607a448a77038e9fbd63b1353afe75a316c4124d28c5
|
|
4
|
+
data.tar.gz: 3a6fcc25a46e9308f78c25de4493fc7d4e3b7eedebc0013827dcb51e76abe2af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c81d7bcf948d7e50a5df01eccc8b5a9e24dfd2d3b166ac134a36e6622515c3579c6cb090dc05c71b8cb87124e6c18963c1f408c7d0ca0cf17d4a6d8b20ff5cf1
|
|
7
|
+
data.tar.gz: 26ba1c97c2f46ec65af900b031cd06f994e4dcb7d6bce1cd245f5c2d67070bbaa5e2f7caa302a39c71d15097d9ff4740a072627db8556384c3ac6a93b82ad340
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Emails And Contacts Scraper With Python
|
|
2
|
+
|
|
3
|
+
Allows finding email addresses, social links, and phones from domains via [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Email-Related/paths/~1contacts-and-leads/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 contacts from a website:
|
|
31
|
+
results = client.contacts_and_leads('outscraper.com')
|
|
32
|
+
```
|
data/lib/outscraper/version.rb
CHANGED
data/lib/outscraper.rb
CHANGED
|
@@ -122,6 +122,32 @@ module Outscraper
|
|
|
122
122
|
}).parsed_response['data']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
def contacts_and_leads(
|
|
126
|
+
query,
|
|
127
|
+
fields: nil,
|
|
128
|
+
async_request: true,
|
|
129
|
+
preferred_contacts: nil,
|
|
130
|
+
contacts_per_company: 3,
|
|
131
|
+
emails_per_contact: 1,
|
|
132
|
+
skip_contacts: 0,
|
|
133
|
+
general_emails: false,
|
|
134
|
+
ui: false,
|
|
135
|
+
webhook: nil
|
|
136
|
+
)
|
|
137
|
+
response = self.class.get('/contacts-and-leads', query: {
|
|
138
|
+
query: query,
|
|
139
|
+
fields: fields ? Array(fields) : nil,
|
|
140
|
+
async: ui ? true : async_request,
|
|
141
|
+
preferred_contacts: preferred_contacts ? Array(preferred_contacts) : nil,
|
|
142
|
+
contacts_per_company: contacts_per_company,
|
|
143
|
+
emails_per_contact: emails_per_contact,
|
|
144
|
+
skip_contacts: skip_contacts,
|
|
145
|
+
general_emails: general_emails,
|
|
146
|
+
ui: ui,
|
|
147
|
+
webhook: webhook
|
|
148
|
+
}).parsed_response['data']
|
|
149
|
+
end
|
|
150
|
+
|
|
125
151
|
def emails_and_contacts(query)
|
|
126
152
|
response = self.class.get("/emails-and-contacts", 'query': {
|
|
127
153
|
query: query,
|
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.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Outscraper
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -41,6 +41,7 @@ files:
|
|
|
41
41
|
- Rakefile
|
|
42
42
|
- examples/Company Insights.md
|
|
43
43
|
- examples/Company Website Finder.md
|
|
44
|
+
- examples/Contacts And Leads.md
|
|
44
45
|
- examples/Email Addresses Finder.md
|
|
45
46
|
- examples/Emails And Contacts.md
|
|
46
47
|
- examples/Google Maps Photos Scraper.md
|