mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 17:10:45 +00:00
Corrections to Grammar Errors and Typos in Documentation (#1017)
* Fixed grammar errors and typos. * Update CHANGELOG.md to mention documentation typo corrections. --------- Co-authored-by: Stéphane Bruckert <stephane.bruckert@gmail.com>
This commit is contained in:
1 parent
126da62dd0
commit
a810edf5da
5 files changed
+26
-30
No files matched your search
+6
-6
@@ -7,12 +7,12 @@ In order to complete this tutorial successfully, there are a few things that you
|
||||
**1. pip package manager**
|
||||
|
||||
You can check to see if you have pip installed by opening up Terminal and typing the following command: pip --version
|
||||
If you see a version number, pip is installed and you're ready to proceed. If not, instructions for downloading the latest version of pip can be found here: https://pip.pypa.io/en/stable/cli/pip_download/
|
||||
If you see a version number, pip is installed, and you're ready to proceed. If not, instructions for downloading the latest version of pip can be found here: https://pip.pypa.io/en/stable/cli/pip_download/
|
||||
|
||||
|
||||
**2. python3**
|
||||
|
||||
Spotipy is written in Python, so you'll need to have the lastest version of Python installed in order to use Spotipy. Check if you already have Python installed with the Terminal command: python --version
|
||||
Spotipy is written in Python, so you'll need to have the latest version of Python installed in order to use Spotipy. Check if you already have Python installed with the Terminal command: python --version
|
||||
If you see a version number, Python is already installed. If not, you can download it here: https://www.python.org/downloads/
|
||||
|
||||
**3. spotipy**
|
||||
@@ -37,13 +37,13 @@ B. Click the "Create an App" button. Enter any name and description you'd like f
|
||||
|
||||
C. In your new app's Overview screen, click the "Edit Settings" button and scroll down to "Redirect URIs." Add "http://localhost:1234" (or any other port number of your choosing). Hit the "Save" button at the bottom of the Settings panel to return to you App Overview screen.
|
||||
|
||||
D. Underneath your app name and description on the lefthand side, you'll see a "Show Client Secret" link. Click that link to reveal your Client Secret, then copy both your Client Secret and your Client ID somewhere on your computer. You'll need to access them later.
|
||||
D. Underneath your app name and description on the left-hand side, you'll see a "Show Client Secret" link. Click that link to reveal your Client Secret, then copy both your Client Secret and your Client ID somewhere on your computer. You'll need to access them later.
|
||||
|
||||
## Step 2. Installation and Setup
|
||||
|
||||
A. Create a folder somewhere on your computer where you'd like to store the code for your Spotipy app. You can create a folder in terminal with this command: mkdir folder_name
|
||||
|
||||
B. In that folder, create a Python file named main.py. You can create the file directly from Terminal using a built in text editor like Vim, which comes preinstalled on Linux operating systems. To create the file with Vim, ensure that you are in your new directory, then run: vim main.py
|
||||
B. In that folder, create a Python file named main.py. You can create the file directly from Terminal using a built-in text editor like Vim, which comes preinstalled on Linux operating systems. To create the file with Vim, ensure that you are in your new directory, then run: vim main.py
|
||||
|
||||
C. Paste the following code into your main.py file:
|
||||
```
|
||||
@@ -61,11 +61,11 @@ D. Replace YOUR_APP_CLIENT_ID and YOUR_APP_CLIENT_SECRET with the values you cop
|
||||
|
||||
After completing steps 1 and 2, your app is fully configured and ready to fetch data from the Spotify API. All that's left is to tell the API what data we're looking for, and we do that by adding some additional code to main.py. The code that follows is just an example - once you get it working, you should feel free to modify it in order to get different results.
|
||||
|
||||
For now, let's assume that we want to print the names of all of the albums on Spotify by Taylor Swift:
|
||||
For now, let's assume that we want to print the names of all the albums on Spotify by Taylor Swift:
|
||||
|
||||
A. First, we need to find Taylor Swift's Spotify URI (Uniform Resource Indicator). Every entity (artist, album, song, etc.) has a URI that can identify it. To find Taylor's URI, navigate to [her page on Spotify](https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02) and look at the URI in your browser. Everything there that follows the last backslash in the URL path is Taylor's URI, in this case: 06HL4z0CvFAxyc27GXpf02
|
||||
|
||||
B. Add the URI as a variable in main.py. Notice the prefix added the the URI:
|
||||
B. Add the URI as a variable in main.py. Notice the prefix added the URI:
|
||||
```
|
||||
taylor_uri = 'spotify:artist:06HL4z0CvFAxyc27GXpf02'
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user