Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sledgehammer

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sledgehammer

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Sledgehammer

Sledgehammer is a gem which allows to crawl websites in search of email addresses. It uses Typhoeus and Sidekiq to spawn ultra-fast workers which gathers data in no-time.

Installation

Include the gem in your Gemfile

gem "sledgehammer"

Bundle the Gemfile

bundle install

Run the install script which will create a migration file and a config file.

bundle exec rails generate sledgehammer:install

Migrate your database

bundle exec rake db:migrate

Setup

You should be aware of using this gem with application with sqlite3 database. Due to multi threaded nature of gem you will be greeted with "SQLite3::BusyException: database is locked" errors. PostgreSQL, MySQL or MongoDB should be just fine.

Usage

Run sidekiq worker form your code:

Sledgehammer::CrawlWorker.perform_async ARRAY_OF_URLS, [OPTIONS]

Here is sample usage:

Sledgehammer::CrawlWorker.perform_async ['http://example.com'], { depth_limit: 3 }

Contributors

[d4rky-pl] (https://github.com/d4rky-pl)

rabsztok

License

Sledgehammer is Copyright © 2014 Growth Republic. It is free software, and may be redistributed under the terms specified in the LICENSE file.

FAQs

Package last updated on 10 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc