GithubHelp home page GithubHelp logo

timtate / sc_archiver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drldcsta/sc_archiver

0.0 2.0 0.0 8 KB

A wrapper for youtube-dl for osx that automates backing up your SC likes and artists you follow

Shell 100.00%

sc_archiver's Introduction

#sc_archiver.sh

I wanted to see if I could wrap youtube-dl in pure bash to archive my SoundCloud likes. I thought it would take 30 mintues. It did not take 30 minutes

#Usage

  • Every time you run ./sc_archiver.sh the script will first check if dependencies are present and attempt to download if not.
    • By default the script will ask you before installing, creating folders, or starting a download.
    • I think this script is fully portable, but uses brew for grabbing dependencies so really this is somewhat osx specific (but if you have jq and youtube-dl it "should" work)
    • You can disable prompts by commenting the line interactive_mode=true at the top of the script
    • Even when in non-interactive mode the script inserts pauses. This is only because you have to spam ^c to break out of the main loop and I'm not writing traps at 4 in the morning
  • Running ./sc_archiver.sh by itself will prompt you for your SoundCloud username
    • you can also run ./sc_archiver username to skip prompt (useful if running in non-interactive mode)
    • You can set the script to run non-interactively by commenting the $interactive_mode variable at the top of the script

#CAVEAT: The script only downloads the first 100 artists you follow. I'm almost certainly not going back to write pagination (I follow <100 artists) but you can change the curl command in get_collection to either grab more artists or change the offset.

##TL;DR, download the script, run it once to make sure all your dependencies are met, and let it prompt you to download your likes and an artist or two. If that works fine, and you don'w wnat to confirm every artist, kill the script and comment the interactive_mode variable. (you can also un comment skip_likes to save some time.) and kick it off again.

Dependencies:

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.