From 37e51c4e49fccda61c26dd659fe3db5e87c41283 Mon Sep 17 00:00:00 2001 From: Stepbus Date: Mon, 8 Jun 2026 12:49:05 +0300 Subject: [PATCH 1/4] version increased --- lib/outscraper/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outscraper/version.rb b/lib/outscraper/version.rb index 5352dfd..c42c2aa 100644 --- a/lib/outscraper/version.rb +++ b/lib/outscraper/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Outscraper - VERSION = "0.3.7" + VERSION = "0.3.8" end From f6790c9645a7ab1a36e0b8375442ee34b07b44d2 Mon Sep 17 00:00:00 2001 From: Stepbus Date: Mon, 8 Jun 2026 12:51:20 +0300 Subject: [PATCH 2/4] renamed contacts-and-leads --- lib/outscraper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outscraper.rb b/lib/outscraper.rb index 7e921c9..d1548ed 100644 --- a/lib/outscraper.rb +++ b/lib/outscraper.rb @@ -149,7 +149,7 @@ def contacts_and_leads( ui: false, webhook: nil ) - response = self.class.get('/contacts-and-leads', query: { + response = self.class.get('/leads-and-contacts', query: { query: query, fields: fields ? Array(fields) : nil, async: ui ? true : async_request, From 80cae4415fc9295eddecb864965b94b644e6ddac Mon Sep 17 00:00:00 2001 From: Stepbus Date: Mon, 8 Jun 2026 12:53:19 +0300 Subject: [PATCH 3/4] renamed readmy file Contacta and Leads --- examples/{Contacts And Leads.md => Leads And Contacts.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename examples/{Contacts And Leads.md => Leads And Contacts.md} (93%) diff --git a/examples/Contacts And Leads.md b/examples/Leads And Contacts.md similarity index 93% rename from examples/Contacts And Leads.md rename to examples/Leads And Contacts.md index 2eed3f3..d0f8b47 100644 --- a/examples/Contacts And Leads.md +++ b/examples/Leads And Contacts.md @@ -1,6 +1,6 @@ # Emails And Contacts Scraper With Python -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). +Allows finding email addresses, social links, and phones from domains via [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Email-Related/paths/~1leads-and-contacts/get). ## Installation From ec48d461aee86e2f7780b9983752dac97328669e Mon Sep 17 00:00:00 2001 From: Stepbus Date: Mon, 8 Jun 2026 15:20:59 +0300 Subject: [PATCH 4/4] renamed method --- examples/Leads And Contacts.md | 2 +- lib/outscraper.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/Leads And Contacts.md b/examples/Leads And Contacts.md index d0f8b47..6ff58c1 100644 --- a/examples/Leads And Contacts.md +++ b/examples/Leads And Contacts.md @@ -28,5 +28,5 @@ client = Outscraper::Client.new('SECRET_API_KEY') ```ruby # Search contacts from a website: -results = client.contacts_and_leads('outscraper.com') +results = client.leads_and_contacts('outscraper.com') ``` diff --git a/lib/outscraper.rb b/lib/outscraper.rb index d1548ed..0ad4019 100644 --- a/lib/outscraper.rb +++ b/lib/outscraper.rb @@ -137,7 +137,7 @@ def google_play_reviews(query, reviews_limit: 100, sort: 'most_relevant', cutoff }).parsed_response['data'] end - def contacts_and_leads( + def leads_and_contacts( query, fields: nil, async_request: true, @@ -163,6 +163,10 @@ def contacts_and_leads( }).parsed_response['data'] end + def contacts_and_leads(*args, **kwargs) + leads_and_contacts(*args, **kwargs) + end + def emails_and_contacts(query) response = self.class.get("/emails-and-contacts", 'query': { query: query,