Giter Club home page Giter Club logo

goggles_import's Introduction

Goggles -o^o-

Data-Import tools suite

Goggles is a Rails application developed to manage and browse the results obtained dynamically from any official Swimming competition. The app is designed also to handle a lot more, as long as is related to Swimming.

This Project covers the new data-import utility and is designed for internal usage only, together with the original Admin application.

Official framework Wiki, here

Dependencies & setup:

Internal custom Crawler:

Basic dependencies installation (from Rails app root):

> rails yarn:install

Run (for example, the FIN crawler):

> cd crawler
> node fin-crawler.js

This will expect a list.csv file containing the (editable) list of meeting URLs to be crawled.

The crawler will start looping on all URLs found in the .csv file, extracting data and will produce a .json file for each meeting result page crawled.

Each JSON file will be created in the current running directory (crawler) and have as its filename a semi-normalized meeting name with a prefixed unique code.

Data fields for the list.csv input file (comma separated):

`URL`,`date`,`isCancelled`,`name`,`place`,`meetingUrl`,`year`

File sample (1 line required header + 1 data line):

----8<----
URL,date,isCancelled,name,place,meetingUrl,year
https://www.federnuoto.it/home/master/circuito-supermaster/riepilogo-eventi.html,21/10,,Distanze speciali Lombardia,Brescia,https://www.federnuoto.it/home/master/circuito-supermaster/eventi-circuito-supermaster.html#/risultati/134168:distanze-speciali-master-lombardia.html,"2018"
----8<----

The data-crawl resulting files should be moved by hand to the data.new folder before being processed by Kiba.

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.