Giter Club home page Giter Club logo

scraperrr.js's Introduction

Scraperrr.js

Command-line-based web crawler configured by JSON configurations, defining what data fields to scrape from the visited websites and how to export them as JSON.

This crawler was designed for motion portals in Pirate-Party wikis. This examples given extract motions of a party assembly and exports them to JSON to be used on pirat.ly and Spickerrr.

Installation

$ npm install -g scraperrr

Quick Start

Several example configuration are provided in the presets-folder.

$ scraperrr -c presets/gvtk131_config.json

This will export a JSON data file with the motions from the wiki.

Options

$ scraperrr -c presets/gvtk131_config.json -o out/gv-anträge.json

The resulting json export is saved in the defined output file.

$ scraperrr -v -c presets/gvtk131_config.json

Verbose output for debugging. --verbose works as well.

$ scraperrr -p 500 -c presets/gvtk131_config.json

Politeness, defines a waiting period in miliseconds between HTTP requests. --politeness works as well.

Writing own configurations

The config format is still in development and changes occasionally. Once, it is freezed full documentation will be provided.

Features

  • Flexible configuration files for scraping websites and exporting results to a specified JSON file
  • Waiting period between HTTP-requests

More Information

scraperrr.js's People

Contributors

dahie avatar felixwoestmann avatar

Stargazers

Davide Covato avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Forkers

piraten-tools

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.