Skip to content

unable to run on colab #5

@askfriends

Description

@askfriends

hi..
i am running this script on google colab, so i am confused when you say run these commands in terminal, so where to run these commands in colab?

In terminal Run these commands:

export SPOTIPY_CLIENT_ID='06e4213bc2324960891fc9713cc3e82d'
export SPOTIPY_CLIENT_SECRET='ad8fd4b52f8c4c62bfeaa0e48d8e305d'
export SPOTIPY_REDIRECT_URI='http://localhost:8888/callback'
Now, run the script python spotify.py your_spotify_username

when i run these conmmand one by one like
!export SPOTIPY_CLIENT_ID='06e4213bc2324960891fc9713cc3e82d'
.
.
.
and so on..it doesnt show anything in output, but when i run !python spotify.py username it gives error
File "spotify.py", line 12
print "%32.32s %s" % (track['artists'][0]['name'], track['name'])
^
SyntaxError: invalid syntax

so how to solve it and how to run it on colab successfully?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions