Coder Social home page Coder Social logo

manuasir / node-lastfm-scrobblings Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 37.94 MB

Backup your full LastFM scrobblings list pretty fast

License: MIT License

JavaScript 89.87% Shell 8.80% Dockerfile 1.33%
es6 javascript nodejs lastfm scrobbling backup script bash shell splunk

node-lastfm-scrobblings's Introduction

Code-Style

node-lastfm-scrobblings

Backup your LastFM scrobblings and store them in a friendly JSON format file.

Using the script:

No previous configuration needed, just clone this repo and use the binary file on any Linux distribution.

  • Execute the binary file

    ./bin/index-linux key=<YOUR-API-KEY> user=<LASTFM-USER> start=<start-page> end=<end-page> grade=<concurrency-grade>
    
  • Docker

    docker build -t lastfm-scrobblings .
    docker run lastfm-scrobblings key=<YOUR-API-KEY> user=<LASTFM-USER>
    
  • Parameters

    • key (Mandatory): The API KEY provided by LastFM.
    • user (Mandatory): The user to grab the data from.
    • start (Optional: The API page to start. By default, the first page.
    • end (Optional: The API page to end pagination. By default, the last page.
    • grade (Optional): The 'grade' parameter for setting the concurrency level. A grade is the number of chunks that requests will be splitted and performed in parallel. Example: grade=1 launches all the requests in parallel (1 chunk with all data), grade=2 splits the dataset in half and performs two sequential rounds of requests.

How to build:

Follow these steps if you want to build your own package:

  • A Linux executable will be generated with pkg, so it'd be needed to install it globally:
    npm install -g pkg
    
  • Also Babel is used for transpiling the code from latest ES6 features to ES5:
    npm install -g babel-cli
    
  • Then install the rest of the dev-dependencies:
    npm install
    
  • Run the attached bash script for building the binaries:
    ./makefile
    

Contributing

Do not hesitate to open issues or make Pull requests.

node-lastfm-scrobblings's People

Contributors

dependabot[bot] avatar gabteles avatar manuasir avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

flomko gabteles

node-lastfm-scrobblings's Issues

Add Dockerfile

Hi folks,

It'd be great if this repo could have a Dockerfile for deploying and executing the script fastly.

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.