Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 855 Bytes

File metadata and controls

32 lines (23 loc) · 855 Bytes

SimilarWeb Scraper With Ruby

Returns website analytics data including traffic, rankings, audience insights, and competitive intelligence from SimilarWeb Outscraper API.

Installation

Install the gem and add to the application's Gemfile by executing:

bundle add outscraper

If bundler is not being used to manage dependencies, install the gem by executing:

gem install outscraper

Link to the Ruby package page

Initialization

require 'Outscraper'

client = Outscraper::Client.new('SECRET_API_KEY')

Link to the profile page to create the API key

Usage

# Get data from Similarweb businesses:
results = client.similarweb('apple.com')