Coder Social home page Coder Social logo

spotify-to-pocketcasts's Introduction

spotify-to-pocketcasts

This is a script to transfer Spotify podcast subscriptions and listening history to Pocket Casts.

It uses the openly available Spotify API through the spotipy module as well as a reverse-engineered Pocket Casts API. So far, I've only tested it for my own switch from Spotify to Pocketcasts for which it worked fairly well.

Features

  • Transfer subscriptions
  • Transfer listening history (including marking as played on Pocket Casts)
  • Optional script to delete subscriptions from Spotify

Drawbacks

Before you start using this script please read the drawbacks as there are some fairly large failure cases where the script does not work 100%. The summary is that:

  1. Sometimes there are 2+ podcasts with the same name and in those cases syncing may not work correctly. You could end up subscribed to the wrong podcast so to mitigate this you should verify your subscriptions after the transfer, and manually fix any errors.
  2. Sometimes the name of episodes is mismatched between Spotify and Pocketcasts. In such cases the episode with the mismatched name will not have its listening history synced.

How to Use

  1. Install Python >= 3.11 and run pip install -r requirements.txt to install all Python requirements
  2. Setup a new application at https://developer.spotify.com/dashboard. The name does not matter.
  3. Set the environment variables POCKETCASTS_EMAIL and POCKETCASTS_PW for your Pocketcasts username and password respectively.
  4. Run the script using
    python spotify_to_pocketcasts.py
    You'll be asked to authorise the script to read your library and podcast data - this is required to be able to transfer the data.

If you encounter any bugs please open an issue to let me know.

Future Plans

I welcome any forks and/or open a pull requests for any changes you'd like to make. The main todo just involves making this easier to run by:

  • Adding CLI options for passwords/usernames/secrets
  • Lots of tests
  • Push to pip to make the script easier to install
  • A web-app version of this script if there is demand

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.