Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

mlcdf/sc-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sc-backup

/!\ DOES NOT WORK SINCE THE LATEST SENSCRITIQUE UPDATE WITH USES CLIENT-SIDE RENDERING :/

/!\ I since changed the URL to old.senscritique.com, so this will actually work (as long as old.senscritique.com refers to the old server-side-rendered website)

/!\ For some time now, even old.senscritique.com refers to the new client-side rendered website. So this program won't work anymore.

test coverage

A fast and easy way to backup a SensCritique user or list.

Install

  • From GitHub releases: download the binary corresponding to your OS and architecture.
  • From source (make sure $GOPATH/bin is in your $PATH):
go get go.mlcdf.fr/sc-backup

Usage

Usage:
    sc-backup --collection [USERNAME]
    sc-backup --list [URL]

Options:
    -c, --collection USERNAME   Backup a user's collection
    -l, --list URL              Backup a list
    -o, --output PATH           Directory at which to backup the data. Defaults to ./output
    -f, --format json|csv       Export format. Defaults to json
    -p, --pretty                Prettify the JSON exports
    -v, --verbose               Print verbose output
    -V, --version               Print version

Examples:
    sc-backup --collection mlcdf
    sc-backup --list https://www.senscritique.com/liste/Vu_au_cinema/363578

Check out the examples to see what the output looks like.

Development

Run the app

go run main.go

Run the tests

go test ./...