GithubHelp home page GithubHelp logo

shivsondhi / export-spotify-playlists Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 5.0 422 KB

Export Spotify playlist data to .txt or .csv using Spotipy and the WebAPI.

License: GNU General Public License v3.0

Python 64.17% CSS 16.36% HTML 19.47%
export-to-text export-to-csv flask spotify python

export-spotify-playlists's Introduction

Hi I'm Shiv ๐Ÿ‘‹

Shivโ€™s github stats Top Langs

  • ๐Ÿ”ญ Iโ€™m currently working on a blockchain project.
  • ๐Ÿ‘ฏ Open to collaborate on anything written in python.
  • ๐Ÿ“ซ How to reach me:

alt text alt text

export-spotify-playlists's People

Contributors

shivsondhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

export-spotify-playlists's Issues

Keep receiving "TypeError: 'NoneType' object is not subscriptable" on CSV writer

Hello, I'm new to github so I'm not sure if this is the correct spot for this, but I'm having an issue trying to write some data to a CSV.

I keep receiving "TypeError: 'NoneType' object is not subscriptable."

Here is the full error I am getting.

Traceback (most recent call last):
File "spoti_api.py", line 199, in
main()
File "spoti_api.py", line 53, in main
write_playlist(playlist[1], playlist[0], mode)
File "spoti_api.py", line 81, in write_playlist
old_total = write_csv(filename, tracks)
File "spoti_api.py", line 177, in write_csv
track_url = track['external_urls']['spotify']
TypeError: 'NoneType' object is not subscriptable

I entered my valid CLI_ID & CLI_KEY and set the mode to CSV, as well as entered the filepath correctly for the output. I apologize I am pretty new to python, and have never worked with an API before so I am fairly clueless about what I'm doing here.

Am I missing something? Thanks.

INVALID_CLIENT: Invalid redirect URI

I'm able to use the exporter to make txt files by with $ run spotify_exporter.py however, I'm trying to format things such that the trick is links in markdown and I think that would be easier to manage with .csv maybe? I am able to get app.py to work, however when I click to connect, sometimes I get INVALID_CLIENT: Invalid redirect URI but sometimes I am able to sign in, and then after I sign into spotify it throws INVALID_CLIENT: Invalid redirect URI.

My final goal is to get all of my wrapped playlists into .md tables for my Obsidian vault. I looked at the exporter code and can't see how I'd modify it to format it how I need it. Any help in this endeavor would be greatly appreciated :)

example table in Obsidian

Artist | Track 
 :- | :- 
Artist | [Track](https://www.spotify.com)
Artist Track
Artist Track

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.