Finalised data gathering
[battle-of-the-bands.git] / beatles-vs-stones-gather-data.ipynb
1 {
2 "cells": [
3 {
4 "cell_type": "markdown",
5 "metadata": {},
6 "source": [
7 "# Sad songs<a name=\"top\"></a>\n",
8 "\n",
9 "This is a replication of the [fitteR happieR](http://rcharlie.com/2017-02-16-fitteR-happieR/) post which attempted to find the most depressing Radiohead song.\n",
10 "\n",
11 "I've redone it here, using tools available in TM351.\n",
12 "\n",
13 "I'm also on a bit of a Beatles jag, so I've also done the analysis for Beatles songs.\n",
14 "\n",
15 "### Some data sources\n",
16 "\n",
17 "* http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115255#s5\n",
18 "* https://www.discogs.com/developers/#page:database,header:database-artist-releases\n",
19 "* http://data.discogs.com/\n",
20 "\n",
21 "* https://labrosa.ee.columbia.edu/millionsong/\n",
22 "\n",
23 "* https://twitter.com/kcimc/status/893855561590157312?s=09 and https://drive.google.com/file/d/0B9tyIRZ76JCdN3NtaVpPU3c4QWs/view (stored locally in the [1m.pkl](1m.pkl) folder)\n",
24 "\n",
25 "\n",
26 "## Contents\n",
27 "### Data gathering\n",
28 "\n",
29 "* [Getting data from Spotify](#getspotify)\n",
30 "* [Tag album with artist](#tagalbumwithartist)\n",
31 "* [Tag track with artist](#tagtrackwithartist)\n",
32 "* [Get full track data](#fulltrackdata)\n",
33 "* [Lyrics search](#lyricssearch)\n",
34 "* [Matching datasets](#matchingdatasets)\n",
35 "* [Copy the lyrics over](#copylyrics)\n",
36 "* [Sentiment analysis](#sentimentanalysis)\n",
37 "\n",
38 "### Data analysis\n",
39 "* [Analysis](#analysis)\n",
40 "* [Sentiment](#sentiment)\n",
41 "* [Gloom index](#gloomindex)\n",
42 "* [Revised gloom index](#revisedgloomindex)\n",
43 "* [Contrasting songs](#valencenegcontrast)\n",
44 "* [Gloom per album](#gloomperalbum)\n",
45 "* [Complexity per album](#complexityovertime)\n",
46 "\n",
47 "### [Conclusion](#conclusion)"
48 ]
49 },
50 {
51 "cell_type": "code",
52 "execution_count": 3,
53 "metadata": {
54 "run_control": {
55 "read_only": false
56 }
57 },
58 "outputs": [],
59 "source": [
60 "import pandas as pd\n",
61 "import numpy as np\n",
62 "import matplotlib\n",
63 "import matplotlib.pyplot as plt\n",
64 "%matplotlib inline \n",
65 "import urllib.request\n",
66 "import urllib.parse\n",
67 "import urllib.error\n",
68 "import json\n",
69 "import base64\n",
70 "import configparser\n",
71 "from bs4 import BeautifulSoup\n",
72 "import re\n",
73 "import pymongo\n",
74 "from datetime import datetime\n",
75 "import time\n",
76 "import collections"
77 ]
78 },
79 {
80 "cell_type": "markdown",
81 "metadata": {},
82 "source": [
83 "We'll use MongoDB to store the data, to save keeping it all in memory, and mean we don't have to recapture all the data to to a different analysis."
84 ]
85 },
86 {
87 "cell_type": "code",
88 "execution_count": 4,
89 "metadata": {},
90 "outputs": [],
91 "source": [
92 "# Open a connection to the Mongo server\n",
93 "client = pymongo.MongoClient('mongodb://localhost:27017/')"
94 ]
95 },
96 {
97 "cell_type": "code",
98 "execution_count": 10,
99 "metadata": {},
100 "outputs": [],
101 "source": [
102 "# try:\n",
103 "# client.drop_database(songs_db)\n",
104 "# except NameError:\n",
105 "# print(\"DB doesn't exist yet.\")"
106 ]
107 },
108 {
109 "cell_type": "code",
110 "execution_count": 5,
111 "metadata": {},
112 "outputs": [],
113 "source": [
114 "# Create a database and a collections within it.\n",
115 "songs_db = client.songs\n",
116 "albums = songs_db.albums\n",
117 "tracks = songs_db.tracks\n",
118 "genius_tracks = songs_db.gtracks"
119 ]
120 },
121 {
122 "cell_type": "markdown",
123 "metadata": {},
124 "source": [
125 "API keys and the like are kept in a configuration file, which is read here.\n",
126 "\n",
127 "You'll need to create a web API key for Spotify and Genius. "
128 ]
129 },
130 {
131 "cell_type": "code",
132 "execution_count": 6,
133 "metadata": {},
134 "outputs": [
135 {
136 "data": {
137 "text/plain": [
138 "['app_name', 'client_id', 'client_secret', 'redirect_uri', 'token']"
139 ]
140 },
141 "execution_count": 6,
142 "metadata": {},
143 "output_type": "execute_result"
144 }
145 ],
146 "source": [
147 "config = configparser.ConfigParser()\n",
148 "config.read('secrets.ini')\n",
149 "[k for k in config['genius']]"
150 ]
151 },
152 {
153 "cell_type": "code",
154 "execution_count": 5,
155 "metadata": {
156 "collapsed": true
157 },
158 "outputs": [],
159 "source": [
160 "## How to write the config file. Fill in the details, and create a different config section for Spotify.\n",
161 "# config['genius'] = {}\n",
162 "# config['genius']['app_name'] = 'xxx'\n",
163 "# config['genius']['client_id'] = 'xxx'\n",
164 "# config['genius']['client_secret'] = 'xxx'\n",
165 "# config['genius']['token'] = 'xxx'\n",
166 "# with open('secrets.ini', 'w') as configfile:\n",
167 "# config.write(configfile)"
168 ]
169 },
170 {
171 "cell_type": "code",
172 "execution_count": 7,
173 "metadata": {},
174 "outputs": [],
175 "source": [
176 "stones_id = '22bE4uQ6baNwSHPVcDxLCe'\n",
177 "beatles_id = '3WrFJ7ztbogyGnTHbHJFl2'"
178 ]
179 },
180 {
181 "cell_type": "markdown",
182 "metadata": {},
183 "source": [
184 "# Get album and track data from Spotify<a name='getspotify'></a>\n",
185 "We'll download the data on artists, albums, and tracks from Spotify.\n",
186 "\n",
187 "* [Top](#top)"
188 ]
189 },
190 {
191 "cell_type": "code",
192 "execution_count": 6,
193 "metadata": {},
194 "outputs": [],
195 "source": [
196 "def get_artists(artist_name):\n",
197 " query = urllib.parse.urlencode({'q': artist_name, 'type': 'artist'})\n",
198 " request = 'https://api.spotify.com/v1/search?{}'.format(query)\n",
199 " with urllib.request.urlopen(request) as f:\n",
200 " response = json.loads(f.read().decode('utf-8'))\n",
201 " artists = []\n",
202 " for artist in response['artists']['items']:\n",
203 " if artist['name'].lower() == artist_name.lower():\n",
204 " this_artist = {'name': artist['name'], 'id': artist['id']}\n",
205 " if artist['images']:\n",
206 " this_artist['image'] = artist['images'][0]['url']\n",
207 " artists += [this_artist]\n",
208 " return artists"
209 ]
210 },
211 {
212 "cell_type": "code",
213 "execution_count": 7,
214 "metadata": {},
215 "outputs": [
216 {
217 "data": {
218 "text/plain": [
219 "('22bE4uQ6baNwSHPVcDxLCe',\n",
220 " [{'id': '22bE4uQ6baNwSHPVcDxLCe',\n",
221 " 'image': 'https://i.scdn.co/image/999fa985ec8beb68af356b1fc1bc3cd5ba3e0a68',\n",
222 " 'name': 'The Rolling Stones'}])"
223 ]
224 },
225 "execution_count": 7,
226 "metadata": {},
227 "output_type": "execute_result"
228 }
229 ],
230 "source": [
231 "artists = get_artists('the rolling stones')\n",
232 "stones_id = artists[0]['id']\n",
233 "stones_id, artists"
234 ]
235 },
236 {
237 "cell_type": "code",
238 "execution_count": 8,
239 "metadata": {},
240 "outputs": [
241 {
242 "data": {
243 "text/plain": [
244 "('3WrFJ7ztbogyGnTHbHJFl2',\n",
245 " [{'id': '3WrFJ7ztbogyGnTHbHJFl2',\n",
246 " 'image': 'https://i.scdn.co/image/934c57df9fbdbbaa5e93b55994a4cb9571fd2085',\n",
247 " 'name': 'The Beatles'}])"
248 ]
249 },
250 "execution_count": 8,
251 "metadata": {},
252 "output_type": "execute_result"
253 }
254 ],
255 "source": [
256 "artists = get_artists('the beatles')\n",
257 "beatles_id = artists[0]['id']\n",
258 "beatles_id, artists"
259 ]
260 },
261 {
262 "cell_type": "markdown",
263 "metadata": {},
264 "source": [
265 "Find all the albums for an artist."
266 ]
267 },
268 {
269 "cell_type": "code",
270 "execution_count": 9,
271 "metadata": {},
272 "outputs": [],
273 "source": [
274 "def get_albums(artist_id):\n",
275 " request = 'https://api.spotify.com/v1/artists/{id}/albums?market=GB&album_type=album'.format(id=artist_id)\n",
276 " with urllib.request.urlopen(request) as f:\n",
277 " response = json.loads(f.read().decode('utf-8'))\n",
278 " for a in response['items']:\n",
279 " album_request = a['href']\n",
280 " with urllib.request.urlopen(album_request) as af:\n",
281 " album = json.loads(af.read().decode('utf-8'))\n",
282 " album['_id'] = album['id']\n",
283 " albums.replace_one({'_id': album['_id']}, album, upsert=True)"
284 ]
285 },
286 {
287 "cell_type": "code",
288 "execution_count": 41,
289 "metadata": {},
290 "outputs": [
291 {
292 "data": {
293 "text/plain": [
294 "15"
295 ]
296 },
297 "execution_count": 41,
298 "metadata": {},
299 "output_type": "execute_result"
300 }
301 ],
302 "source": [
303 "get_albums(beatles_id)\n",
304 "albums.find().count()"
305 ]
306 },
307 {
308 "cell_type": "code",
309 "execution_count": 13,
310 "metadata": {},
311 "outputs": [
312 {
313 "data": {
314 "text/plain": [
315 "48"
316 ]
317 },
318 "execution_count": 13,
319 "metadata": {},
320 "output_type": "execute_result"
321 }
322 ],
323 "source": [
324 "get_albums(stones_id)\n",
325 "albums.find().count()"
326 ]
327 },
328 {
329 "cell_type": "code",
330 "execution_count": 13,
331 "metadata": {},
332 "outputs": [
333 {
334 "data": {
335 "text/html": [
336 "<div>\n",
337 "<table border=\"1\" class=\"dataframe\">\n",
338 " <thead>\n",
339 " <tr style=\"text-align: right;\">\n",
340 " <th></th>\n",
341 " <th>0</th>\n",
342 " <th>1</th>\n",
343 " <th>2</th>\n",
344 " <th>3</th>\n",
345 " <th>4</th>\n",
346 " </tr>\n",
347 " </thead>\n",
348 " <tbody>\n",
349 " <tr>\n",
350 " <th>_id</th>\n",
351 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
352 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
353 " <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
354 " <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
355 " <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
356 " </tr>\n",
357 " <tr>\n",
358 " <th>album_type</th>\n",
359 " <td>album</td>\n",
360 " <td>album</td>\n",
361 " <td>album</td>\n",
362 " <td>album</td>\n",
363 " <td>album</td>\n",
364 " </tr>\n",
365 " <tr>\n",
366 " <th>artists</th>\n",
367 " <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
368 " <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
369 " <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
370 " <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
371 " <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
372 " </tr>\n",
373 " <tr>\n",
374 " <th>available_markets</th>\n",
375 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
376 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
377 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
378 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
379 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
380 " </tr>\n",
381 " <tr>\n",
382 " <th>copyrights</th>\n",
383 " <td>[{'text': '(C) 2016 Apple Corps Ltd.', 'type':...</td>\n",
384 " <td>[{'text': '(C) 2015 Apple Corps Ltd.', 'type':...</td>\n",
385 " <td>[{'text': '(C) 2015 Apple Corps Ltd', 'type': ...</td>\n",
386 " <td>[{'text': '(C) 2015 Apple Corps Ltd', 'type': ...</td>\n",
387 " <td>[{'text': '(C) 2015 Apple Corps Ltd', 'type': ...</td>\n",
388 " </tr>\n",
389 " <tr>\n",
390 " <th>external_ids</th>\n",
391 " <td>{'upc': '00602557054989'}</td>\n",
392 " <td>{'upc': '00602547673503'}</td>\n",
393 " <td>{'upc': '00602547670069'}</td>\n",
394 " <td>{'upc': '00602547670342'}</td>\n",
395 " <td>{'upc': '00602547670328'}</td>\n",
396 " </tr>\n",
397 " <tr>\n",
398 " <th>external_urls</th>\n",
399 " <td>{'spotify': 'https://open.spotify.com/album/5X...</td>\n",
400 " <td>{'spotify': 'https://open.spotify.com/album/5j...</td>\n",
401 " <td>{'spotify': 'https://open.spotify.com/album/2p...</td>\n",
402 " <td>{'spotify': 'https://open.spotify.com/album/2P...</td>\n",
403 " <td>{'spotify': 'https://open.spotify.com/album/47...</td>\n",
404 " </tr>\n",
405 " <tr>\n",
406 " <th>genres</th>\n",
407 " <td>[]</td>\n",
408 " <td>[]</td>\n",
409 " <td>[]</td>\n",
410 " <td>[]</td>\n",
411 " <td>[]</td>\n",
412 " </tr>\n",
413 " <tr>\n",
414 " <th>href</th>\n",
415 " <td>https://api.spotify.com/v1/albums/5XfJmldgWzrc...</td>\n",
416 " <td>https://api.spotify.com/v1/albums/5ju5Ouzan3Qw...</td>\n",
417 " <td>https://api.spotify.com/v1/albums/2pCqZLeavM2B...</td>\n",
418 " <td>https://api.spotify.com/v1/albums/2Pqkn9Dq2DFt...</td>\n",
419 " <td>https://api.spotify.com/v1/albums/47bcKzmKgmMP...</td>\n",
420 " </tr>\n",
421 " <tr>\n",
422 " <th>id</th>\n",
423 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
424 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
425 " <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
426 " <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
427 " <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
428 " </tr>\n",
429 " <tr>\n",
430 " <th>images</th>\n",
431 " <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
432 " <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
433 " <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
434 " <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
435 " <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
436 " </tr>\n",
437 " <tr>\n",
438 " <th>label</th>\n",
439 " <td>Digital Distribution Trinidad and Tobago</td>\n",
440 " <td>Digital Distribution Trinidad and Tobago</td>\n",
441 " <td>EMI Catalogue</td>\n",
442 " <td>EMI Catalogue</td>\n",
443 " <td>EMI Catalogue</td>\n",
444 " </tr>\n",
445 " <tr>\n",
446 " <th>name</th>\n",
447 " <td>Live At The Hollywood Bowl</td>\n",
448 " <td>1 (Remastered)</td>\n",
449 " <td>Let It Be (Remastered)</td>\n",
450 " <td>Abbey Road (Remastered)</td>\n",
451 " <td>Yellow Submarine (Remastered)</td>\n",
452 " </tr>\n",
453 " <tr>\n",
454 " <th>popularity</th>\n",
455 " <td>63</td>\n",
456 " <td>77</td>\n",
457 " <td>68</td>\n",
458 " <td>75</td>\n",
459 " <td>58</td>\n",
460 " </tr>\n",
461 " <tr>\n",
462 " <th>release_date</th>\n",
463 " <td>2016-09-09</td>\n",
464 " <td>2000-11-13</td>\n",
465 " <td>1970-05-08</td>\n",
466 " <td>1969-09-26</td>\n",
467 " <td>1969-01-17</td>\n",
468 " </tr>\n",
469 " <tr>\n",
470 " <th>release_date_precision</th>\n",
471 " <td>day</td>\n",
472 " <td>day</td>\n",
473 " <td>day</td>\n",
474 " <td>day</td>\n",
475 " <td>day</td>\n",
476 " </tr>\n",
477 " <tr>\n",
478 " <th>tracks</th>\n",
479 " <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
480 " <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
481 " <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
482 " <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
483 " <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
484 " </tr>\n",
485 " <tr>\n",
486 " <th>type</th>\n",
487 " <td>album</td>\n",
488 " <td>album</td>\n",
489 " <td>album</td>\n",
490 " <td>album</td>\n",
491 " <td>album</td>\n",
492 " </tr>\n",
493 " <tr>\n",
494 " <th>uri</th>\n",
495 " <td>spotify:album:5XfJmldgWzrc1AIdbBaVZn</td>\n",
496 " <td>spotify:album:5ju5Ouzan3QwXqQt1Tihbh</td>\n",
497 " <td>spotify:album:2pCqZLeavM2BMovJXsJEIV</td>\n",
498 " <td>spotify:album:2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
499 " <td>spotify:album:47bcKzmKgmMPHXNVOWpLiu</td>\n",
500 " </tr>\n",
501 " </tbody>\n",
502 "</table>\n",
503 "</div>"
504 ],
505 "text/plain": [
506 " 0 \\\n",
507 "_id 5XfJmldgWzrc1AIdbBaVZn \n",
508 "album_type album \n",
509 "artists [{'href': 'https://api.spotify.com/v1/artists/... \n",
510 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
511 "copyrights [{'text': '(C) 2016 Apple Corps Ltd.', 'type':... \n",
512 "external_ids {'upc': '00602557054989'} \n",
513 "external_urls {'spotify': 'https://open.spotify.com/album/5X... \n",
514 "genres [] \n",
515 "href https://api.spotify.com/v1/albums/5XfJmldgWzrc... \n",
516 "id 5XfJmldgWzrc1AIdbBaVZn \n",
517 "images [{'height': 640, 'url': 'https://i.scdn.co/ima... \n",
518 "label Digital Distribution Trinidad and Tobago \n",
519 "name Live At The Hollywood Bowl \n",
520 "popularity 63 \n",
521 "release_date 2016-09-09 \n",
522 "release_date_precision day \n",
523 "tracks {'limit': 50, 'previous': None, 'next': None, ... \n",
524 "type album \n",
525 "uri spotify:album:5XfJmldgWzrc1AIdbBaVZn \n",
526 "\n",
527 " 1 \\\n",
528 "_id 5ju5Ouzan3QwXqQt1Tihbh \n",
529 "album_type album \n",
530 "artists [{'href': 'https://api.spotify.com/v1/artists/... \n",
531 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
532 "copyrights [{'text': '(C) 2015 Apple Corps Ltd.', 'type':... \n",
533 "external_ids {'upc': '00602547673503'} \n",
534 "external_urls {'spotify': 'https://open.spotify.com/album/5j... \n",
535 "genres [] \n",
536 "href https://api.spotify.com/v1/albums/5ju5Ouzan3Qw... \n",
537 "id 5ju5Ouzan3QwXqQt1Tihbh \n",
538 "images [{'height': 640, 'url': 'https://i.scdn.co/ima... \n",
539 "label Digital Distribution Trinidad and Tobago \n",
540 "name 1 (Remastered) \n",
541 "popularity 77 \n",
542 "release_date 2000-11-13 \n",
543 "release_date_precision day \n",
544 "tracks {'limit': 50, 'previous': None, 'next': None, ... \n",
545 "type album \n",
546 "uri spotify:album:5ju5Ouzan3QwXqQt1Tihbh \n",
547 "\n",
548 " 2 \\\n",
549 "_id 2pCqZLeavM2BMovJXsJEIV \n",
550 "album_type album \n",
551 "artists [{'href': 'https://api.spotify.com/v1/artists/... \n",
552 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
553 "copyrights [{'text': '(C) 2015 Apple Corps Ltd', 'type': ... \n",
554 "external_ids {'upc': '00602547670069'} \n",
555 "external_urls {'spotify': 'https://open.spotify.com/album/2p... \n",
556 "genres [] \n",
557 "href https://api.spotify.com/v1/albums/2pCqZLeavM2B... \n",
558 "id 2pCqZLeavM2BMovJXsJEIV \n",
559 "images [{'height': 640, 'url': 'https://i.scdn.co/ima... \n",
560 "label EMI Catalogue \n",
561 "name Let It Be (Remastered) \n",
562 "popularity 68 \n",
563 "release_date 1970-05-08 \n",
564 "release_date_precision day \n",
565 "tracks {'limit': 50, 'previous': None, 'next': None, ... \n",
566 "type album \n",
567 "uri spotify:album:2pCqZLeavM2BMovJXsJEIV \n",
568 "\n",
569 " 3 \\\n",
570 "_id 2Pqkn9Dq2DFtdfkKAeqgMd \n",
571 "album_type album \n",
572 "artists [{'href': 'https://api.spotify.com/v1/artists/... \n",
573 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
574 "copyrights [{'text': '(C) 2015 Apple Corps Ltd', 'type': ... \n",
575 "external_ids {'upc': '00602547670342'} \n",
576 "external_urls {'spotify': 'https://open.spotify.com/album/2P... \n",
577 "genres [] \n",
578 "href https://api.spotify.com/v1/albums/2Pqkn9Dq2DFt... \n",
579 "id 2Pqkn9Dq2DFtdfkKAeqgMd \n",
580 "images [{'height': 640, 'url': 'https://i.scdn.co/ima... \n",
581 "label EMI Catalogue \n",
582 "name Abbey Road (Remastered) \n",
583 "popularity 75 \n",
584 "release_date 1969-09-26 \n",
585 "release_date_precision day \n",
586 "tracks {'limit': 50, 'previous': None, 'next': None, ... \n",
587 "type album \n",
588 "uri spotify:album:2Pqkn9Dq2DFtdfkKAeqgMd \n",
589 "\n",
590 " 4 \n",
591 "_id 47bcKzmKgmMPHXNVOWpLiu \n",
592 "album_type album \n",
593 "artists [{'href': 'https://api.spotify.com/v1/artists/... \n",
594 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
595 "copyrights [{'text': '(C) 2015 Apple Corps Ltd', 'type': ... \n",
596 "external_ids {'upc': '00602547670328'} \n",
597 "external_urls {'spotify': 'https://open.spotify.com/album/47... \n",
598 "genres [] \n",
599 "href https://api.spotify.com/v1/albums/47bcKzmKgmMP... \n",
600 "id 47bcKzmKgmMPHXNVOWpLiu \n",
601 "images [{'height': 640, 'url': 'https://i.scdn.co/ima... \n",
602 "label EMI Catalogue \n",
603 "name Yellow Submarine (Remastered) \n",
604 "popularity 58 \n",
605 "release_date 1969-01-17 \n",
606 "release_date_precision day \n",
607 "tracks {'limit': 50, 'previous': None, 'next': None, ... \n",
608 "type album \n",
609 "uri spotify:album:47bcKzmKgmMPHXNVOWpLiu "
610 ]
611 },
612 "execution_count": 13,
613 "metadata": {},
614 "output_type": "execute_result"
615 }
616 ],
617 "source": [
618 "pd.DataFrame(list(albums.find())).head().T"
619 ]
620 },
621 {
622 "cell_type": "markdown",
623 "metadata": {},
624 "source": [
625 "### Tag albums with artists<a name=\"tagalbumwithartist\"></a>\n",
626 "As we have tracks for two artists, let's keep the identification easy and insert the artist name and id into each track document.\n",
627 "\n",
628 "* [Top](#top)"
629 ]
630 },
631 {
632 "cell_type": "code",
633 "execution_count": 10,
634 "metadata": {
635 "collapsed": true
636 },
637 "outputs": [],
638 "source": [
639 "for a in albums.find({}, ['artists']):\n",
640 " albums.update_one({'_id': a['_id']}, \n",
641 " {'$set': {'artist_name': a['artists'][0]['name'],\n",
642 " 'artist_id': a['artists'][0]['id']}})"
643 ]
644 },
645 {
646 "cell_type": "code",
647 "execution_count": 11,
648 "metadata": {
649 "scrolled": true
650 },
651 "outputs": [
652 {
653 "data": {
654 "text/html": [
655 "<div>\n",
656 "<table border=\"1\" class=\"dataframe\">\n",
657 " <thead>\n",
658 " <tr style=\"text-align: right;\">\n",
659 " <th></th>\n",
660 " <th>_id</th>\n",
661 " <th>artist_name</th>\n",
662 " <th>name</th>\n",
663 " </tr>\n",
664 " </thead>\n",
665 " <tbody>\n",
666 " <tr>\n",
667 " <th>0</th>\n",
668 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
669 " <td>The Beatles</td>\n",
670 " <td>Live At The Hollywood Bowl</td>\n",
671 " </tr>\n",
672 " <tr>\n",
673 " <th>1</th>\n",
674 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
675 " <td>The Beatles</td>\n",
676 " <td>1 (Remastered)</td>\n",
677 " </tr>\n",
678 " <tr>\n",
679 " <th>2</th>\n",
680 " <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
681 " <td>The Beatles</td>\n",
682 " <td>Let It Be (Remastered)</td>\n",
683 " </tr>\n",
684 " <tr>\n",
685 " <th>3</th>\n",
686 " <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
687 " <td>The Beatles</td>\n",
688 " <td>Abbey Road (Remastered)</td>\n",
689 " </tr>\n",
690 " <tr>\n",
691 " <th>4</th>\n",
692 " <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
693 " <td>The Beatles</td>\n",
694 " <td>Yellow Submarine (Remastered)</td>\n",
695 " </tr>\n",
696 " <tr>\n",
697 " <th>5</th>\n",
698 " <td>03Qh833fEdVT30Pfs93ea6</td>\n",
699 " <td>The Beatles</td>\n",
700 " <td>The Beatles (Remastered)</td>\n",
701 " </tr>\n",
702 " <tr>\n",
703 " <th>6</th>\n",
704 " <td>6P9yO0ukhOx3dvmhGKeYoC</td>\n",
705 " <td>The Beatles</td>\n",
706 " <td>Magical Mystery Tour (Remastered)</td>\n",
707 " </tr>\n",
708 " <tr>\n",
709 " <th>7</th>\n",
710 " <td>1PULmKbHeOqlkIwcDMNwD4</td>\n",
711 " <td>The Beatles</td>\n",
712 " <td>Sgt. Pepper's Lonely Hearts Club Band (Remaste...</td>\n",
713 " </tr>\n",
714 " <tr>\n",
715 " <th>8</th>\n",
716 " <td>0PYyrqs9NXtxPhf0CZkq2L</td>\n",
717 " <td>The Beatles</td>\n",
718 " <td>Revolver (Remastered)</td>\n",
719 " </tr>\n",
720 " <tr>\n",
721 " <th>9</th>\n",
722 " <td>3OdI6e43crvyAHhaqpxSyz</td>\n",
723 " <td>The Beatles</td>\n",
724 " <td>Rubber Soul (Remastered)</td>\n",
725 " </tr>\n",
726 " <tr>\n",
727 " <th>10</th>\n",
728 " <td>19K3IHYeVkUTjcBHGfbCOi</td>\n",
729 " <td>The Beatles</td>\n",
730 " <td>Help! (Remastered)</td>\n",
731 " </tr>\n",
732 " <tr>\n",
733 " <th>11</th>\n",
734 " <td>7BgGBZndAvDlKOcwe5rscZ</td>\n",
735 " <td>The Beatles</td>\n",
736 " <td>Beatles For Sale (Remastered)</td>\n",
737 " </tr>\n",
738 " <tr>\n",
739 " <th>12</th>\n",
740 " <td>71Mwd9tntFQYUk4k2DwA0D</td>\n",
741 " <td>The Beatles</td>\n",
742 " <td>A Hard Day's Night (Remastered)</td>\n",
743 " </tr>\n",
744 " <tr>\n",
745 " <th>13</th>\n",
746 " <td>1DBkJIEoeHrTX4WCBQGcCi</td>\n",
747 " <td>Radiohead</td>\n",
748 " <td>The King Of Limbs</td>\n",
749 " </tr>\n",
750 " <tr>\n",
751 " <th>14</th>\n",
752 " <td>3nkEsxmIX0zRNXGAexaHAn</td>\n",
753 " <td>The Beatles</td>\n",
754 " <td>With The Beatles (Remastered)</td>\n",
755 " </tr>\n",
756 " <tr>\n",
757 " <th>15</th>\n",
758 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
759 " <td>The Beatles</td>\n",
760 " <td>Please Please Me (Remastered)</td>\n",
761 " </tr>\n",
762 " <tr>\n",
763 " <th>16</th>\n",
764 " <td>6vuykQgDLUCiZ7YggIpLM9</td>\n",
765 " <td>Radiohead</td>\n",
766 " <td>A Moon Shaped Pool</td>\n",
767 " </tr>\n",
768 " <tr>\n",
769 " <th>17</th>\n",
770 " <td>47xaqCsJcYFWqD1gwujl1T</td>\n",
771 " <td>Radiohead</td>\n",
772 " <td>TKOL RMX 1234567</td>\n",
773 " </tr>\n",
774 " <tr>\n",
775 " <th>18</th>\n",
776 " <td>7eyQXxuf2nGj9d2367Gi5f</td>\n",
777 " <td>Radiohead</td>\n",
778 " <td>In Rainbows</td>\n",
779 " </tr>\n",
780 " <tr>\n",
781 " <th>19</th>\n",
782 " <td>36lJLPoPPOKNFddTAcirnc</td>\n",
783 " <td>Radiohead</td>\n",
784 " <td>In Rainbows Disk 2</td>\n",
785 " </tr>\n",
786 " <tr>\n",
787 " <th>20</th>\n",
788 " <td>6Eo5EkmdLvZrONzi046iC2</td>\n",
789 " <td>Radiohead</td>\n",
790 " <td>Com Lag: 2+2=5</td>\n",
791 " </tr>\n",
792 " <tr>\n",
793 " <th>21</th>\n",
794 " <td>1oW3v5Har9mvXnGk0x4fHm</td>\n",
795 " <td>Radiohead</td>\n",
796 " <td>Hail To the Thief</td>\n",
797 " </tr>\n",
798 " <tr>\n",
799 " <th>22</th>\n",
800 " <td>6svTt5o2lUgIrgYDKVmdnD</td>\n",
801 " <td>Radiohead</td>\n",
802 " <td>I Might Be Wrong</td>\n",
803 " </tr>\n",
804 " <tr>\n",
805 " <th>23</th>\n",
806 " <td>6V9YnBmFjWmXCBaUVRCVXP</td>\n",
807 " <td>Radiohead</td>\n",
808 " <td>Amnesiac</td>\n",
809 " </tr>\n",
810 " <tr>\n",
811 " <th>24</th>\n",
812 " <td>19RUXBFyM4PpmrLRdtqWbp</td>\n",
813 " <td>Radiohead</td>\n",
814 " <td>Kid A</td>\n",
815 " </tr>\n",
816 " <tr>\n",
817 " <th>25</th>\n",
818 " <td>7dxKtc08dYeRVHt3p9CZJn</td>\n",
819 " <td>Radiohead</td>\n",
820 " <td>OK Computer</td>\n",
821 " </tr>\n",
822 " <tr>\n",
823 " <th>26</th>\n",
824 " <td>500FEaUzn8lN9zWFyZG5C2</td>\n",
825 " <td>Radiohead</td>\n",
826 " <td>The Bends</td>\n",
827 " </tr>\n",
828 " <tr>\n",
829 " <th>27</th>\n",
830 " <td>6400dnyeDyD2mIFHfkwHXN</td>\n",
831 " <td>Radiohead</td>\n",
832 " <td>Pablo Honey</td>\n",
833 " </tr>\n",
834 " <tr>\n",
835 " <th>28</th>\n",
836 " <td>4g9Jfls8z2nbQxj5PiXkiy</td>\n",
837 " <td>The Rolling Stones</td>\n",
838 " <td>Blue &amp; Lonesome</td>\n",
839 " </tr>\n",
840 " <tr>\n",
841 " <th>29</th>\n",
842 " <td>4fhWcu56Bbh5wALuTouFVW</td>\n",
843 " <td>The Rolling Stones</td>\n",
844 " <td>Havana Moon (Live)</td>\n",
845 " </tr>\n",
846 " <tr>\n",
847 " <th>30</th>\n",
848 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
849 " <td>The Rolling Stones</td>\n",
850 " <td>Totally Stripped (Live)</td>\n",
851 " </tr>\n",
852 " <tr>\n",
853 " <th>31</th>\n",
854 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
855 " <td>The Rolling Stones</td>\n",
856 " <td>Live 1965: Music From Charlie Is My Darling (L...</td>\n",
857 " </tr>\n",
858 " <tr>\n",
859 " <th>32</th>\n",
860 " <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
861 " <td>The Rolling Stones</td>\n",
862 " <td>Shine A Light</td>\n",
863 " </tr>\n",
864 " <tr>\n",
865 " <th>33</th>\n",
866 " <td>4FTHynKEtuP7eppERNfjyG</td>\n",
867 " <td>The Rolling Stones</td>\n",
868 " <td>A Bigger Bang (2009 Re-Mastered)</td>\n",
869 " </tr>\n",
870 " <tr>\n",
871 " <th>34</th>\n",
872 " <td>50UGtgNA5bq1c0BDjPfmbD</td>\n",
873 " <td>The Rolling Stones</td>\n",
874 " <td>Live Licks</td>\n",
875 " </tr>\n",
876 " <tr>\n",
877 " <th>35</th>\n",
878 " <td>0ZGddnvcVzHVHfE3WW1tV5</td>\n",
879 " <td>The Rolling Stones</td>\n",
880 " <td>Bridges To Babylon (2009 Re-Mastered)</td>\n",
881 " </tr>\n",
882 " <tr>\n",
883 " <th>36</th>\n",
884 " <td>4M8Q1L9PZq0xK5tLUpO3jd</td>\n",
885 " <td>The Rolling Stones</td>\n",
886 " <td>Stripped</td>\n",
887 " </tr>\n",
888 " <tr>\n",
889 " <th>37</th>\n",
890 " <td>62ZT16LY1phGM0O8x5qW1z</td>\n",
891 " <td>The Rolling Stones</td>\n",
892 " <td>Voodoo Lounge (2009 Re-Mastered)</td>\n",
893 " </tr>\n",
894 " <tr>\n",
895 " <th>38</th>\n",
896 " <td>1W1UJulgICjFDyYIMUwRs7</td>\n",
897 " <td>The Rolling Stones</td>\n",
898 " <td>Flashpoint</td>\n",
899 " </tr>\n",
900 " <tr>\n",
901 " <th>39</th>\n",
902 " <td>25mfHGJNQkluvIqedXHSx3</td>\n",
903 " <td>The Rolling Stones</td>\n",
904 " <td>Steel Wheels (2009 Re-Mastered)</td>\n",
905 " </tr>\n",
906 " <tr>\n",
907 " <th>40</th>\n",
908 " <td>1TpcI1LEFVhBvDPSTMPGFG</td>\n",
909 " <td>The Rolling Stones</td>\n",
910 " <td>Dirty Work</td>\n",
911 " </tr>\n",
912 " <tr>\n",
913 " <th>41</th>\n",
914 " <td>1WSfNoPDPzgyKFN6OSYWUx</td>\n",
915 " <td>The Rolling Stones</td>\n",
916 " <td>Dirty Work (Remastered 2009)</td>\n",
917 " </tr>\n",
918 " <tr>\n",
919 " <th>42</th>\n",
920 " <td>064eFGemsrDcMvgRZ0gqtw</td>\n",
921 " <td>The Rolling Stones</td>\n",
922 " <td>Undercover (2009 Re-Mastered)</td>\n",
923 " </tr>\n",
924 " <tr>\n",
925 " <th>43</th>\n",
926 " <td>0hxrNynMDh5QeyALlf1CdS</td>\n",
927 " <td>The Rolling Stones</td>\n",
928 " <td>Still Life</td>\n",
929 " </tr>\n",
930 " <tr>\n",
931 " <th>44</th>\n",
932 " <td>1YvnuYGlblQ5vLnOhaZzpn</td>\n",
933 " <td>The Rolling Stones</td>\n",
934 " <td>Tattoo You (2009 Re-Mastered)</td>\n",
935 " </tr>\n",
936 " <tr>\n",
937 " <th>45</th>\n",
938 " <td>2wZgoXS06wSdu9C0ZJOvlc</td>\n",
939 " <td>The Rolling Stones</td>\n",
940 " <td>Emotional Rescue (2009 Re-Mastered)</td>\n",
941 " </tr>\n",
942 " <tr>\n",
943 " <th>46</th>\n",
944 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
945 " <td>The Rolling Stones</td>\n",
946 " <td>Some Girls</td>\n",
947 " </tr>\n",
948 " <tr>\n",
949 " <th>47</th>\n",
950 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
951 " <td>The Rolling Stones</td>\n",
952 " <td>Some Girls (Deluxe Version)</td>\n",
953 " </tr>\n",
954 " </tbody>\n",
955 "</table>\n",
956 "</div>"
957 ],
958 "text/plain": [
959 " _id artist_name \\\n",
960 "0 5XfJmldgWzrc1AIdbBaVZn The Beatles \n",
961 "1 5ju5Ouzan3QwXqQt1Tihbh The Beatles \n",
962 "2 2pCqZLeavM2BMovJXsJEIV The Beatles \n",
963 "3 2Pqkn9Dq2DFtdfkKAeqgMd The Beatles \n",
964 "4 47bcKzmKgmMPHXNVOWpLiu The Beatles \n",
965 "5 03Qh833fEdVT30Pfs93ea6 The Beatles \n",
966 "6 6P9yO0ukhOx3dvmhGKeYoC The Beatles \n",
967 "7 1PULmKbHeOqlkIwcDMNwD4 The Beatles \n",
968 "8 0PYyrqs9NXtxPhf0CZkq2L The Beatles \n",
969 "9 3OdI6e43crvyAHhaqpxSyz The Beatles \n",
970 "10 19K3IHYeVkUTjcBHGfbCOi The Beatles \n",
971 "11 7BgGBZndAvDlKOcwe5rscZ The Beatles \n",
972 "12 71Mwd9tntFQYUk4k2DwA0D The Beatles \n",
973 "13 1DBkJIEoeHrTX4WCBQGcCi Radiohead \n",
974 "14 3nkEsxmIX0zRNXGAexaHAn The Beatles \n",
975 "15 7gDXyW16byCQOgK965BRzn The Beatles \n",
976 "16 6vuykQgDLUCiZ7YggIpLM9 Radiohead \n",
977 "17 47xaqCsJcYFWqD1gwujl1T Radiohead \n",
978 "18 7eyQXxuf2nGj9d2367Gi5f Radiohead \n",
979 "19 36lJLPoPPOKNFddTAcirnc Radiohead \n",
980 "20 6Eo5EkmdLvZrONzi046iC2 Radiohead \n",
981 "21 1oW3v5Har9mvXnGk0x4fHm Radiohead \n",
982 "22 6svTt5o2lUgIrgYDKVmdnD Radiohead \n",
983 "23 6V9YnBmFjWmXCBaUVRCVXP Radiohead \n",
984 "24 19RUXBFyM4PpmrLRdtqWbp Radiohead \n",
985 "25 7dxKtc08dYeRVHt3p9CZJn Radiohead \n",
986 "26 500FEaUzn8lN9zWFyZG5C2 Radiohead \n",
987 "27 6400dnyeDyD2mIFHfkwHXN Radiohead \n",
988 "28 4g9Jfls8z2nbQxj5PiXkiy The Rolling Stones \n",
989 "29 4fhWcu56Bbh5wALuTouFVW The Rolling Stones \n",
990 "30 3PbRKFafwE7Of8e4dTee72 The Rolling Stones \n",
991 "31 5eTqRwTGKPBUiUuN1rFaXD The Rolling Stones \n",
992 "32 3CHu7qW160uqPZHW3TMZ1l The Rolling Stones \n",
993 "33 4FTHynKEtuP7eppERNfjyG The Rolling Stones \n",
994 "34 50UGtgNA5bq1c0BDjPfmbD The Rolling Stones \n",
995 "35 0ZGddnvcVzHVHfE3WW1tV5 The Rolling Stones \n",
996 "36 4M8Q1L9PZq0xK5tLUpO3jd The Rolling Stones \n",
997 "37 62ZT16LY1phGM0O8x5qW1z The Rolling Stones \n",
998 "38 1W1UJulgICjFDyYIMUwRs7 The Rolling Stones \n",
999 "39 25mfHGJNQkluvIqedXHSx3 The Rolling Stones \n",
1000 "40 1TpcI1LEFVhBvDPSTMPGFG The Rolling Stones \n",
1001 "41 1WSfNoPDPzgyKFN6OSYWUx The Rolling Stones \n",
1002 "42 064eFGemsrDcMvgRZ0gqtw The Rolling Stones \n",
1003 "43 0hxrNynMDh5QeyALlf1CdS The Rolling Stones \n",
1004 "44 1YvnuYGlblQ5vLnOhaZzpn The Rolling Stones \n",
1005 "45 2wZgoXS06wSdu9C0ZJOvlc The Rolling Stones \n",
1006 "46 54sqbAXxR1jFfyXb1WvrHK The Rolling Stones \n",
1007 "47 6FjXxl9VLURGuubdXUn2J3 The Rolling Stones \n",
1008 "\n",
1009 " name \n",
1010 "0 Live At The Hollywood Bowl \n",
1011 "1 1 (Remastered) \n",
1012 "2 Let It Be (Remastered) \n",
1013 "3 Abbey Road (Remastered) \n",
1014 "4 Yellow Submarine (Remastered) \n",
1015 "5 The Beatles (Remastered) \n",
1016 "6 Magical Mystery Tour (Remastered) \n",
1017 "7 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n",
1018 "8 Revolver (Remastered) \n",
1019 "9 Rubber Soul (Remastered) \n",
1020 "10 Help! (Remastered) \n",
1021 "11 Beatles For Sale (Remastered) \n",
1022 "12 A Hard Day's Night (Remastered) \n",
1023 "13 The King Of Limbs \n",
1024 "14 With The Beatles (Remastered) \n",
1025 "15 Please Please Me (Remastered) \n",
1026 "16 A Moon Shaped Pool \n",
1027 "17 TKOL RMX 1234567 \n",
1028 "18 In Rainbows \n",
1029 "19 In Rainbows Disk 2 \n",
1030 "20 Com Lag: 2+2=5 \n",
1031 "21 Hail To the Thief \n",
1032 "22 I Might Be Wrong \n",
1033 "23 Amnesiac \n",
1034 "24 Kid A \n",
1035 "25 OK Computer \n",
1036 "26 The Bends \n",
1037 "27 Pablo Honey \n",
1038 "28 Blue & Lonesome \n",
1039 "29 Havana Moon (Live) \n",
1040 "30 Totally Stripped (Live) \n",
1041 "31 Live 1965: Music From Charlie Is My Darling (L... \n",
1042 "32 Shine A Light \n",
1043 "33 A Bigger Bang (2009 Re-Mastered) \n",
1044 "34 Live Licks \n",
1045 "35 Bridges To Babylon (2009 Re-Mastered) \n",
1046 "36 Stripped \n",
1047 "37 Voodoo Lounge (2009 Re-Mastered) \n",
1048 "38 Flashpoint \n",
1049 "39 Steel Wheels (2009 Re-Mastered) \n",
1050 "40 Dirty Work \n",
1051 "41 Dirty Work (Remastered 2009) \n",
1052 "42 Undercover (2009 Re-Mastered) \n",
1053 "43 Still Life \n",
1054 "44 Tattoo You (2009 Re-Mastered) \n",
1055 "45 Emotional Rescue (2009 Re-Mastered) \n",
1056 "46 Some Girls \n",
1057 "47 Some Girls (Deluxe Version) "
1058 ]
1059 },
1060 "execution_count": 11,
1061 "metadata": {},
1062 "output_type": "execute_result"
1063 }
1064 ],
1065 "source": [
1066 "pd.DataFrame(list(albums.find({}, ['name', 'artist_name'])))"
1067 ]
1068 },
1069 {
1070 "cell_type": "markdown",
1071 "metadata": {},
1072 "source": [
1073 "According to the [Spotify documentation](https://developer.spotify.com/web-api/object-model/#track-object), some objects returned have only a bit of the data, and contain a `href` field for where to find the rest. The track details in the album documents fit that bill, so let's find the full track information.\n",
1074 "\n",
1075 "While doing this, not that Spotify will rate-limit the requests, so we have to include a loop to respect the timeout and retry the requests after the appropriate time."
1076 ]
1077 },
1078 {
1079 "cell_type": "code",
1080 "execution_count": 16,
1081 "metadata": {},
1082 "outputs": [],
1083 "source": [
1084 "def get_tracks(album_id):\n",
1085 " album = albums.find_one({'_id': album_id})\n",
1086 " for t in album['tracks']['items']:\n",
1087 " for _ in range(10):\n",
1088 " try:\n",
1089 " with urllib.request.urlopen(t['href']) as f:\n",
1090 " track = json.loads(f.read().decode('utf-8'))\n",
1091 " track['_id'] = track['id']\n",
1092 " track['album_id'] = album_id\n",
1093 " tracks.replace_one({'_id': track['_id']}, track, upsert=True)\n",
1094 " break\n",
1095 " except urllib.error.HTTPError as e:\n",
1096 " print(\"Rate limited. Pausing for\", e.info()['Retry-After'])\n",
1097 " time.sleep(int(e.info()['Retry-After']) + 0.5)\n",
1098 " continue"
1099 ]
1100 },
1101 {
1102 "cell_type": "code",
1103 "execution_count": 45,
1104 "metadata": {
1105 "scrolled": true
1106 },
1107 "outputs": [
1108 {
1109 "name": "stdout",
1110 "output_type": "stream",
1111 "text": [
1112 "Rate limited. Pausing for 4\n",
1113 "Rate limited. Pausing for 4\n",
1114 "Rate limited. Pausing for 4\n"
1115 ]
1116 },
1117 {
1118 "data": {
1119 "text/plain": [
1120 "383"
1121 ]
1122 },
1123 "execution_count": 45,
1124 "metadata": {},
1125 "output_type": "execute_result"
1126 }
1127 ],
1128 "source": [
1129 "for album in albums.find():\n",
1130 " get_tracks(album['_id'])\n",
1131 "tracks.find().count()"
1132 ]
1133 },
1134 {
1135 "cell_type": "code",
1136 "execution_count": 17,
1137 "metadata": {
1138 "scrolled": true
1139 },
1140 "outputs": [
1141 {
1142 "name": "stdout",
1143 "output_type": "stream",
1144 "text": [
1145 "Rate limited. Pausing for 4\n",
1146 "Rate limited. Pausing for 3\n",
1147 "Rate limited. Pausing for 0\n"
1148 ]
1149 },
1150 {
1151 "data": {
1152 "text/plain": [
1153 "671"
1154 ]
1155 },
1156 "execution_count": 17,
1157 "metadata": {},
1158 "output_type": "execute_result"
1159 }
1160 ],
1161 "source": [
1162 "for album in albums.find({'artist_id': stones_id}):\n",
1163 " get_tracks(album['_id'])\n",
1164 "tracks.find().count()"
1165 ]
1166 },
1167 {
1168 "cell_type": "code",
1169 "execution_count": 18,
1170 "metadata": {
1171 "scrolled": true
1172 },
1173 "outputs": [
1174 {
1175 "data": {
1176 "text/html": [
1177 "<div>\n",
1178 "<table border=\"1\" class=\"dataframe\">\n",
1179 " <thead>\n",
1180 " <tr style=\"text-align: right;\">\n",
1181 " <th></th>\n",
1182 " <th>0</th>\n",
1183 " <th>1</th>\n",
1184 " <th>2</th>\n",
1185 " <th>3</th>\n",
1186 " <th>4</th>\n",
1187 " </tr>\n",
1188 " </thead>\n",
1189 " <tbody>\n",
1190 " <tr>\n",
1191 " <th>_id</th>\n",
1192 " <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
1193 " <td>0TWa6TQFWHSG5QdSWuTMve</td>\n",
1194 " <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
1195 " <td>0Za26pWVLQpKfXmb9FX10S</td>\n",
1196 " <td>6295nz7PVXm49Ihqwm39Ew</td>\n",
1197 " </tr>\n",
1198 " <tr>\n",
1199 " <th>acousticness</th>\n",
1200 " <td>NaN</td>\n",
1201 " <td>NaN</td>\n",
1202 " <td>NaN</td>\n",
1203 " <td>NaN</td>\n",
1204 " <td>NaN</td>\n",
1205 " </tr>\n",
1206 " <tr>\n",
1207 " <th>album</th>\n",
1208 " <td>{'name': 'Totally Stripped (Live)', 'type': 'a...</td>\n",
1209 " <td>{'name': 'Totally Stripped (Live)', 'type': 'a...</td>\n",
1210 " <td>{'name': 'Totally Stripped (Live)', 'type': 'a...</td>\n",
1211 " <td>{'name': 'Some Girls', 'type': 'album', 'artis...</td>\n",
1212 " <td>{'name': 'Some Girls', 'type': 'album', 'artis...</td>\n",
1213 " </tr>\n",
1214 " <tr>\n",
1215 " <th>album_id</th>\n",
1216 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
1217 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
1218 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
1219 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
1220 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
1221 " </tr>\n",
1222 " <tr>\n",
1223 " <th>analysis_url</th>\n",
1224 " <td>NaN</td>\n",
1225 " <td>NaN</td>\n",
1226 " <td>NaN</td>\n",
1227 " <td>NaN</td>\n",
1228 " <td>NaN</td>\n",
1229 " </tr>\n",
1230 " <tr>\n",
1231 " <th>artist_id</th>\n",
1232 " <td>NaN</td>\n",
1233 " <td>NaN</td>\n",
1234 " <td>NaN</td>\n",
1235 " <td>NaN</td>\n",
1236 " <td>NaN</td>\n",
1237 " </tr>\n",
1238 " <tr>\n",
1239 " <th>artist_name</th>\n",
1240 " <td>NaN</td>\n",
1241 " <td>NaN</td>\n",
1242 " <td>NaN</td>\n",
1243 " <td>NaN</td>\n",
1244 " <td>NaN</td>\n",
1245 " </tr>\n",
1246 " <tr>\n",
1247 " <th>artists</th>\n",
1248 " <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
1249 " <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
1250 " <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
1251 " <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
1252 " <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
1253 " </tr>\n",
1254 " <tr>\n",
1255 " <th>available_markets</th>\n",
1256 " <td>[GB]</td>\n",
1257 " <td>[GB]</td>\n",
1258 " <td>[GB]</td>\n",
1259 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
1260 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
1261 " </tr>\n",
1262 " <tr>\n",
1263 " <th>complexity</th>\n",
1264 " <td>NaN</td>\n",
1265 " <td>NaN</td>\n",
1266 " <td>NaN</td>\n",
1267 " <td>NaN</td>\n",
1268 " <td>NaN</td>\n",
1269 " </tr>\n",
1270 " <tr>\n",
1271 " <th>ctitle</th>\n",
1272 " <td>NaN</td>\n",
1273 " <td>NaN</td>\n",
1274 " <td>NaN</td>\n",
1275 " <td>NaN</td>\n",
1276 " <td>NaN</td>\n",
1277 " </tr>\n",
1278 " <tr>\n",
1279 " <th>danceability</th>\n",
1280 " <td>NaN</td>\n",
1281 " <td>NaN</td>\n",
1282 " <td>NaN</td>\n",
1283 " <td>NaN</td>\n",
1284 " <td>NaN</td>\n",
1285 " </tr>\n",
1286 " <tr>\n",
1287 " <th>disc_number</th>\n",
1288 " <td>1</td>\n",
1289 " <td>1</td>\n",
1290 " <td>1</td>\n",
1291 " <td>1</td>\n",
1292 " <td>1</td>\n",
1293 " </tr>\n",
1294 " <tr>\n",
1295 " <th>duration_ms</th>\n",
1296 " <td>305280</td>\n",
1297 " <td>240333</td>\n",
1298 " <td>293773</td>\n",
1299 " <td>187440</td>\n",
1300 " <td>204960</td>\n",
1301 " </tr>\n",
1302 " <tr>\n",
1303 " <th>energy</th>\n",
1304 " <td>NaN</td>\n",
1305 " <td>NaN</td>\n",
1306 " <td>NaN</td>\n",
1307 " <td>NaN</td>\n",
1308 " <td>NaN</td>\n",
1309 " </tr>\n",
1310 " <tr>\n",
1311 " <th>explicit</th>\n",
1312 " <td>False</td>\n",
1313 " <td>False</td>\n",
1314 " <td>False</td>\n",
1315 " <td>False</td>\n",
1316 " <td>False</td>\n",
1317 " </tr>\n",
1318 " <tr>\n",
1319 " <th>external_ids</th>\n",
1320 " <td>{'isrc': 'GBCBR1500394'}</td>\n",
1321 " <td>{'isrc': 'GBCBR1500393'}</td>\n",
1322 " <td>{'isrc': 'GBCBR1500392'}</td>\n",
1323 " <td>{'isrc': 'GBCJN7800007'}</td>\n",
1324 " <td>{'isrc': 'GBCJN7800008'}</td>\n",
1325 " </tr>\n",
1326 " <tr>\n",
1327 " <th>external_urls</th>\n",
1328 " <td>{'spotify': 'https://open.spotify.com/track/1l...</td>\n",
1329 " <td>{'spotify': 'https://open.spotify.com/track/0T...</td>\n",
1330 " <td>{'spotify': 'https://open.spotify.com/track/74...</td>\n",
1331 " <td>{'spotify': 'https://open.spotify.com/track/0Z...</td>\n",
1332 " <td>{'spotify': 'https://open.spotify.com/track/62...</td>\n",
1333 " </tr>\n",
1334 " <tr>\n",
1335 " <th>gloom</th>\n",
1336 " <td>NaN</td>\n",
1337 " <td>NaN</td>\n",
1338 " <td>NaN</td>\n",
1339 " <td>NaN</td>\n",
1340 " <td>NaN</td>\n",
1341 " </tr>\n",
1342 " <tr>\n",
1343 " <th>href</th>\n",
1344 " <td>https://api.spotify.com/v1/tracks/1lLK53LFXWvP...</td>\n",
1345 " <td>https://api.spotify.com/v1/tracks/0TWa6TQFWHSG...</td>\n",
1346 " <td>https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...</td>\n",
1347 " <td>https://api.spotify.com/v1/tracks/0Za26pWVLQpK...</td>\n",
1348 " <td>https://api.spotify.com/v1/tracks/6295nz7PVXm4...</td>\n",
1349 " </tr>\n",
1350 " <tr>\n",
1351 " <th>id</th>\n",
1352 " <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
1353 " <td>0TWa6TQFWHSG5QdSWuTMve</td>\n",
1354 " <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
1355 " <td>0Za26pWVLQpKfXmb9FX10S</td>\n",
1356 " <td>6295nz7PVXm49Ihqwm39Ew</td>\n",
1357 " </tr>\n",
1358 " <tr>\n",
1359 " <th>instrumentalness</th>\n",
1360 " <td>NaN</td>\n",
1361 " <td>NaN</td>\n",
1362 " <td>NaN</td>\n",
1363 " <td>NaN</td>\n",
1364 " <td>NaN</td>\n",
1365 " </tr>\n",
1366 " <tr>\n",
1367 " <th>key</th>\n",
1368 " <td>NaN</td>\n",
1369 " <td>NaN</td>\n",
1370 " <td>NaN</td>\n",
1371 " <td>NaN</td>\n",
1372 " <td>NaN</td>\n",
1373 " </tr>\n",
1374 " <tr>\n",
1375 " <th>liveness</th>\n",
1376 " <td>NaN</td>\n",
1377 " <td>NaN</td>\n",
1378 " <td>NaN</td>\n",
1379 " <td>NaN</td>\n",
1380 " <td>NaN</td>\n",
1381 " </tr>\n",
1382 " <tr>\n",
1383 " <th>loudness</th>\n",
1384 " <td>NaN</td>\n",
1385 " <td>NaN</td>\n",
1386 " <td>NaN</td>\n",
1387 " <td>NaN</td>\n",
1388 " <td>NaN</td>\n",
1389 " </tr>\n",
1390 " <tr>\n",
1391 " <th>lyrical_density</th>\n",
1392 " <td>NaN</td>\n",
1393 " <td>NaN</td>\n",
1394 " <td>NaN</td>\n",
1395 " <td>NaN</td>\n",
1396 " <td>NaN</td>\n",
1397 " </tr>\n",
1398 " <tr>\n",
1399 " <th>lyrics</th>\n",
1400 " <td>NaN</td>\n",
1401 " <td>NaN</td>\n",
1402 " <td>NaN</td>\n",
1403 " <td>NaN</td>\n",
1404 " <td>NaN</td>\n",
1405 " </tr>\n",
1406 " <tr>\n",
1407 " <th>mode</th>\n",
1408 " <td>NaN</td>\n",
1409 " <td>NaN</td>\n",
1410 " <td>NaN</td>\n",
1411 " <td>NaN</td>\n",
1412 " <td>NaN</td>\n",
1413 " </tr>\n",
1414 " <tr>\n",
1415 " <th>name</th>\n",
1416 " <td>Faraway Eyes - Live</td>\n",
1417 " <td>Dead Flowers - Live</td>\n",
1418 " <td>Honky Tonk Women - Live</td>\n",
1419 " <td>Respectable - Remastered</td>\n",
1420 " <td>Before They Make Me Run - Remastered</td>\n",
1421 " </tr>\n",
1422 " <tr>\n",
1423 " <th>original_lyrics</th>\n",
1424 " <td>NaN</td>\n",
1425 " <td>NaN</td>\n",
1426 " <td>NaN</td>\n",
1427 " <td>NaN</td>\n",
1428 " <td>NaN</td>\n",
1429 " </tr>\n",
1430 " <tr>\n",
1431 " <th>popularity</th>\n",
1432 " <td>15</td>\n",
1433 " <td>17</td>\n",
1434 " <td>18</td>\n",
1435 " <td>30</td>\n",
1436 " <td>25</td>\n",
1437 " </tr>\n",
1438 " <tr>\n",
1439 " <th>preview_url</th>\n",
1440 " <td>https://p.scdn.co/mp3-preview/5afdaabfa28e067f...</td>\n",
1441 " <td>https://p.scdn.co/mp3-preview/e3900e8c4200974d...</td>\n",
1442 " <td>https://p.scdn.co/mp3-preview/671f51874a70b3f7...</td>\n",
1443 " <td>https://p.scdn.co/mp3-preview/f5e932d9acc6a359...</td>\n",
1444 " <td>https://p.scdn.co/mp3-preview/ee5832b597975b27...</td>\n",
1445 " </tr>\n",
1446 " <tr>\n",
1447 " <th>sentiment</th>\n",
1448 " <td>NaN</td>\n",
1449 " <td>NaN</td>\n",
1450 " <td>NaN</td>\n",
1451 " <td>NaN</td>\n",
1452 " <td>NaN</td>\n",
1453 " </tr>\n",
1454 " <tr>\n",
1455 " <th>speechiness</th>\n",
1456 " <td>NaN</td>\n",
1457 " <td>NaN</td>\n",
1458 " <td>NaN</td>\n",
1459 " <td>NaN</td>\n",
1460 " <td>NaN</td>\n",
1461 " </tr>\n",
1462 " <tr>\n",
1463 " <th>tempo</th>\n",
1464 " <td>NaN</td>\n",
1465 " <td>NaN</td>\n",
1466 " <td>NaN</td>\n",
1467 " <td>NaN</td>\n",
1468 " <td>NaN</td>\n",
1469 " </tr>\n",
1470 " <tr>\n",
1471 " <th>time_signature</th>\n",
1472 " <td>NaN</td>\n",
1473 " <td>NaN</td>\n",
1474 " <td>NaN</td>\n",
1475 " <td>NaN</td>\n",
1476 " <td>NaN</td>\n",
1477 " </tr>\n",
1478 " <tr>\n",
1479 " <th>track_href</th>\n",
1480 " <td>NaN</td>\n",
1481 " <td>NaN</td>\n",
1482 " <td>NaN</td>\n",
1483 " <td>NaN</td>\n",
1484 " <td>NaN</td>\n",
1485 " </tr>\n",
1486 " <tr>\n",
1487 " <th>track_number</th>\n",
1488 " <td>4</td>\n",
1489 " <td>3</td>\n",
1490 " <td>2</td>\n",
1491 " <td>7</td>\n",
1492 " <td>8</td>\n",
1493 " </tr>\n",
1494 " <tr>\n",
1495 " <th>type</th>\n",
1496 " <td>track</td>\n",
1497 " <td>track</td>\n",
1498 " <td>track</td>\n",
1499 " <td>track</td>\n",
1500 " <td>track</td>\n",
1501 " </tr>\n",
1502 " <tr>\n",
1503 " <th>uri</th>\n",
1504 " <td>spotify:track:1lLK53LFXWvPzPYtlJIvt0</td>\n",
1505 " <td>spotify:track:0TWa6TQFWHSG5QdSWuTMve</td>\n",
1506 " <td>spotify:track:74tlMxJ8wF0sNp93GBEPdK</td>\n",
1507 " <td>spotify:track:0Za26pWVLQpKfXmb9FX10S</td>\n",
1508 " <td>spotify:track:6295nz7PVXm49Ihqwm39Ew</td>\n",
1509 " </tr>\n",
1510 " <tr>\n",
1511 " <th>valence</th>\n",
1512 " <td>NaN</td>\n",
1513 " <td>NaN</td>\n",
1514 " <td>NaN</td>\n",
1515 " <td>NaN</td>\n",
1516 " <td>NaN</td>\n",
1517 " </tr>\n",
1518 " </tbody>\n",
1519 "</table>\n",
1520 "</div>"
1521 ],
1522 "text/plain": [
1523 " 0 \\\n",
1524 "_id 1lLK53LFXWvPzPYtlJIvt0 \n",
1525 "acousticness NaN \n",
1526 "album {'name': 'Totally Stripped (Live)', 'type': 'a... \n",
1527 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
1528 "analysis_url NaN \n",
1529 "artist_id NaN \n",
1530 "artist_name NaN \n",
1531 "artists [{'name': 'The Rolling Stones', 'type': 'artis... \n",
1532 "available_markets [GB] \n",
1533 "complexity NaN \n",
1534 "ctitle NaN \n",
1535 "danceability NaN \n",
1536 "disc_number 1 \n",
1537 "duration_ms 305280 \n",
1538 "energy NaN \n",
1539 "explicit False \n",
1540 "external_ids {'isrc': 'GBCBR1500394'} \n",
1541 "external_urls {'spotify': 'https://open.spotify.com/track/1l... \n",
1542 "gloom NaN \n",
1543 "href https://api.spotify.com/v1/tracks/1lLK53LFXWvP... \n",
1544 "id 1lLK53LFXWvPzPYtlJIvt0 \n",
1545 "instrumentalness NaN \n",
1546 "key NaN \n",
1547 "liveness NaN \n",
1548 "loudness NaN \n",
1549 "lyrical_density NaN \n",
1550 "lyrics NaN \n",
1551 "mode NaN \n",
1552 "name Faraway Eyes - Live \n",
1553 "original_lyrics NaN \n",
1554 "popularity 15 \n",
1555 "preview_url https://p.scdn.co/mp3-preview/5afdaabfa28e067f... \n",
1556 "sentiment NaN \n",
1557 "speechiness NaN \n",
1558 "tempo NaN \n",
1559 "time_signature NaN \n",
1560 "track_href NaN \n",
1561 "track_number 4 \n",
1562 "type track \n",
1563 "uri spotify:track:1lLK53LFXWvPzPYtlJIvt0 \n",
1564 "valence NaN \n",
1565 "\n",
1566 " 1 \\\n",
1567 "_id 0TWa6TQFWHSG5QdSWuTMve \n",
1568 "acousticness NaN \n",
1569 "album {'name': 'Totally Stripped (Live)', 'type': 'a... \n",
1570 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
1571 "analysis_url NaN \n",
1572 "artist_id NaN \n",
1573 "artist_name NaN \n",
1574 "artists [{'name': 'The Rolling Stones', 'type': 'artis... \n",
1575 "available_markets [GB] \n",
1576 "complexity NaN \n",
1577 "ctitle NaN \n",
1578 "danceability NaN \n",
1579 "disc_number 1 \n",
1580 "duration_ms 240333 \n",
1581 "energy NaN \n",
1582 "explicit False \n",
1583 "external_ids {'isrc': 'GBCBR1500393'} \n",
1584 "external_urls {'spotify': 'https://open.spotify.com/track/0T... \n",
1585 "gloom NaN \n",
1586 "href https://api.spotify.com/v1/tracks/0TWa6TQFWHSG... \n",
1587 "id 0TWa6TQFWHSG5QdSWuTMve \n",
1588 "instrumentalness NaN \n",
1589 "key NaN \n",
1590 "liveness NaN \n",
1591 "loudness NaN \n",
1592 "lyrical_density NaN \n",
1593 "lyrics NaN \n",
1594 "mode NaN \n",
1595 "name Dead Flowers - Live \n",
1596 "original_lyrics NaN \n",
1597 "popularity 17 \n",
1598 "preview_url https://p.scdn.co/mp3-preview/e3900e8c4200974d... \n",
1599 "sentiment NaN \n",
1600 "speechiness NaN \n",
1601 "tempo NaN \n",
1602 "time_signature NaN \n",
1603 "track_href NaN \n",
1604 "track_number 3 \n",
1605 "type track \n",
1606 "uri spotify:track:0TWa6TQFWHSG5QdSWuTMve \n",
1607 "valence NaN \n",
1608 "\n",
1609 " 2 \\\n",
1610 "_id 74tlMxJ8wF0sNp93GBEPdK \n",
1611 "acousticness NaN \n",
1612 "album {'name': 'Totally Stripped (Live)', 'type': 'a... \n",
1613 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
1614 "analysis_url NaN \n",
1615 "artist_id NaN \n",
1616 "artist_name NaN \n",
1617 "artists [{'name': 'The Rolling Stones', 'type': 'artis... \n",
1618 "available_markets [GB] \n",
1619 "complexity NaN \n",
1620 "ctitle NaN \n",
1621 "danceability NaN \n",
1622 "disc_number 1 \n",
1623 "duration_ms 293773 \n",
1624 "energy NaN \n",
1625 "explicit False \n",
1626 "external_ids {'isrc': 'GBCBR1500392'} \n",
1627 "external_urls {'spotify': 'https://open.spotify.com/track/74... \n",
1628 "gloom NaN \n",
1629 "href https://api.spotify.com/v1/tracks/74tlMxJ8wF0s... \n",
1630 "id 74tlMxJ8wF0sNp93GBEPdK \n",
1631 "instrumentalness NaN \n",
1632 "key NaN \n",
1633 "liveness NaN \n",
1634 "loudness NaN \n",
1635 "lyrical_density NaN \n",
1636 "lyrics NaN \n",
1637 "mode NaN \n",
1638 "name Honky Tonk Women - Live \n",
1639 "original_lyrics NaN \n",
1640 "popularity 18 \n",
1641 "preview_url https://p.scdn.co/mp3-preview/671f51874a70b3f7... \n",
1642 "sentiment NaN \n",
1643 "speechiness NaN \n",
1644 "tempo NaN \n",
1645 "time_signature NaN \n",
1646 "track_href NaN \n",
1647 "track_number 2 \n",
1648 "type track \n",
1649 "uri spotify:track:74tlMxJ8wF0sNp93GBEPdK \n",
1650 "valence NaN \n",
1651 "\n",
1652 " 3 \\\n",
1653 "_id 0Za26pWVLQpKfXmb9FX10S \n",
1654 "acousticness NaN \n",
1655 "album {'name': 'Some Girls', 'type': 'album', 'artis... \n",
1656 "album_id 54sqbAXxR1jFfyXb1WvrHK \n",
1657 "analysis_url NaN \n",
1658 "artist_id NaN \n",
1659 "artist_name NaN \n",
1660 "artists [{'name': 'The Rolling Stones', 'type': 'artis... \n",
1661 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
1662 "complexity NaN \n",
1663 "ctitle NaN \n",
1664 "danceability NaN \n",
1665 "disc_number 1 \n",
1666 "duration_ms 187440 \n",
1667 "energy NaN \n",
1668 "explicit False \n",
1669 "external_ids {'isrc': 'GBCJN7800007'} \n",
1670 "external_urls {'spotify': 'https://open.spotify.com/track/0Z... \n",
1671 "gloom NaN \n",
1672 "href https://api.spotify.com/v1/tracks/0Za26pWVLQpK... \n",
1673 "id 0Za26pWVLQpKfXmb9FX10S \n",
1674 "instrumentalness NaN \n",
1675 "key NaN \n",
1676 "liveness NaN \n",
1677 "loudness NaN \n",
1678 "lyrical_density NaN \n",
1679 "lyrics NaN \n",
1680 "mode NaN \n",
1681 "name Respectable - Remastered \n",
1682 "original_lyrics NaN \n",
1683 "popularity 30 \n",
1684 "preview_url https://p.scdn.co/mp3-preview/f5e932d9acc6a359... \n",
1685 "sentiment NaN \n",
1686 "speechiness NaN \n",
1687 "tempo NaN \n",
1688 "time_signature NaN \n",
1689 "track_href NaN \n",
1690 "track_number 7 \n",
1691 "type track \n",
1692 "uri spotify:track:0Za26pWVLQpKfXmb9FX10S \n",
1693 "valence NaN \n",
1694 "\n",
1695 " 4 \n",
1696 "_id 6295nz7PVXm49Ihqwm39Ew \n",
1697 "acousticness NaN \n",
1698 "album {'name': 'Some Girls', 'type': 'album', 'artis... \n",
1699 "album_id 54sqbAXxR1jFfyXb1WvrHK \n",
1700 "analysis_url NaN \n",
1701 "artist_id NaN \n",
1702 "artist_name NaN \n",
1703 "artists [{'name': 'The Rolling Stones', 'type': 'artis... \n",
1704 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
1705 "complexity NaN \n",
1706 "ctitle NaN \n",
1707 "danceability NaN \n",
1708 "disc_number 1 \n",
1709 "duration_ms 204960 \n",
1710 "energy NaN \n",
1711 "explicit False \n",
1712 "external_ids {'isrc': 'GBCJN7800008'} \n",
1713 "external_urls {'spotify': 'https://open.spotify.com/track/62... \n",
1714 "gloom NaN \n",
1715 "href https://api.spotify.com/v1/tracks/6295nz7PVXm4... \n",
1716 "id 6295nz7PVXm49Ihqwm39Ew \n",
1717 "instrumentalness NaN \n",
1718 "key NaN \n",
1719 "liveness NaN \n",
1720 "loudness NaN \n",
1721 "lyrical_density NaN \n",
1722 "lyrics NaN \n",
1723 "mode NaN \n",
1724 "name Before They Make Me Run - Remastered \n",
1725 "original_lyrics NaN \n",
1726 "popularity 25 \n",
1727 "preview_url https://p.scdn.co/mp3-preview/ee5832b597975b27... \n",
1728 "sentiment NaN \n",
1729 "speechiness NaN \n",
1730 "tempo NaN \n",
1731 "time_signature NaN \n",
1732 "track_href NaN \n",
1733 "track_number 8 \n",
1734 "type track \n",
1735 "uri spotify:track:6295nz7PVXm49Ihqwm39Ew \n",
1736 "valence NaN "
1737 ]
1738 },
1739 "execution_count": 18,
1740 "metadata": {},
1741 "output_type": "execute_result"
1742 }
1743 ],
1744 "source": [
1745 "pd.DataFrame(list(tracks.find())).head().T"
1746 ]
1747 },
1748 {
1749 "cell_type": "code",
1750 "execution_count": 49,
1751 "metadata": {},
1752 "outputs": [
1753 {
1754 "data": {
1755 "text/plain": [
1756 "{'_id': '4edArG2VehvJdwOZfYOxtK'}"
1757 ]
1758 },
1759 "execution_count": 49,
1760 "metadata": {},
1761 "output_type": "execute_result"
1762 }
1763 ],
1764 "source": [
1765 "tracks.find_one({}, 'album.id')"
1766 ]
1767 },
1768 {
1769 "cell_type": "markdown",
1770 "metadata": {},
1771 "source": [
1772 "### Tag tracks with artist<a name=\"tagtrackwithartist\"></a>\n",
1773 "Again, make an easy tag for the artist of each track.\n",
1774 "\n",
1775 "* [Top](#top)"
1776 ]
1777 },
1778 {
1779 "cell_type": "code",
1780 "execution_count": 12,
1781 "metadata": {
1782 "collapsed": true
1783 },
1784 "outputs": [],
1785 "source": [
1786 "for t in tracks.find({}, ['artists']):\n",
1787 " for a in t['artists']:\n",
1788 " if a['id'] in [beatles_id, stones_id]:\n",
1789 " tracks.update_one({'_id': t['_id']}, \n",
1790 " {'$set': {'artist_name': a['name'],\n",
1791 " 'artist_id': a['id']}})"
1792 ]
1793 },
1794 {
1795 "cell_type": "code",
1796 "execution_count": 14,
1797 "metadata": {
1798 "collapsed": true
1799 },
1800 "outputs": [],
1801 "source": [
1802 "for t in tracks.find({}, ['artists']):\n",
1803 " for a in t['artists']:\n",
1804 " #if a['id'] in [beatles_id, stones_id]:\n",
1805 " tracks.update_one({'_id': t['_id']}, \n",
1806 " {'$set': {'artist_name': a['name'],\n",
1807 " 'artist_id': a['id']}})"
1808 ]
1809 },
1810 {
1811 "cell_type": "code",
1812 "execution_count": 15,
1813 "metadata": {},
1814 "outputs": [
1815 {
1816 "data": {
1817 "text/plain": [
1818 "{'Billy Preston',\n",
1819 " 'Bob Clearmountain',\n",
1820 " 'Buddy Guy',\n",
1821 " 'Christina Aguilera',\n",
1822 " 'Duke Ellington',\n",
1823 " 'George Martin',\n",
1824 " 'Jack White',\n",
1825 " 'Jimi Hendrix',\n",
1826 " 'Radiohead',\n",
1827 " 'Sheryl Crow',\n",
1828 " 'Solomon Burke',\n",
1829 " 'The Beatles',\n",
1830 " 'The Rolling Stones'}"
1831 ]
1832 },
1833 "execution_count": 15,
1834 "metadata": {},
1835 "output_type": "execute_result"
1836 }
1837 ],
1838 "source": [
1839 "set(t['artist_name'] for t in tracks.find({}))"
1840 ]
1841 },
1842 {
1843 "cell_type": "code",
1844 "execution_count": 16,
1845 "metadata": {
1846 "scrolled": true
1847 },
1848 "outputs": [
1849 {
1850 "data": {
1851 "text/html": [
1852 "<div>\n",
1853 "<table border=\"1\" class=\"dataframe\">\n",
1854 " <thead>\n",
1855 " <tr style=\"text-align: right;\">\n",
1856 " <th></th>\n",
1857 " <th>album_id</th>\n",
1858 " <th>album_name</th>\n",
1859 " <th>artist_name</th>\n",
1860 " <th>track_id</th>\n",
1861 " <th>track_name</th>\n",
1862 " </tr>\n",
1863 " </thead>\n",
1864 " <tbody>\n",
1865 " <tr>\n",
1866 " <th>0</th>\n",
1867 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1868 " <td>Live At The Hollywood Bowl</td>\n",
1869 " <td>The Beatles</td>\n",
1870 " <td>4edArG2VehvJdwOZfYOxtK</td>\n",
1871 " <td>Twist And Shout - Live / Remastered</td>\n",
1872 " </tr>\n",
1873 " <tr>\n",
1874 " <th>1</th>\n",
1875 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1876 " <td>Live At The Hollywood Bowl</td>\n",
1877 " <td>The Beatles</td>\n",
1878 " <td>150EAeMGWJRubuH8zyx7h8</td>\n",
1879 " <td>She's A Woman - Live / Remastered</td>\n",
1880 " </tr>\n",
1881 " <tr>\n",
1882 " <th>2</th>\n",
1883 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1884 " <td>Live At The Hollywood Bowl</td>\n",
1885 " <td>The Beatles</td>\n",
1886 " <td>1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
1887 " <td>Dizzy Miss Lizzy - Live / Remastered</td>\n",
1888 " </tr>\n",
1889 " <tr>\n",
1890 " <th>3</th>\n",
1891 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1892 " <td>Live At The Hollywood Bowl</td>\n",
1893 " <td>The Beatles</td>\n",
1894 " <td>0GRplBEB2FWCKutwMmS6nY</td>\n",
1895 " <td>Ticket To Ride - Live / Remastered</td>\n",
1896 " </tr>\n",
1897 " <tr>\n",
1898 " <th>4</th>\n",
1899 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1900 " <td>Live At The Hollywood Bowl</td>\n",
1901 " <td>The Beatles</td>\n",
1902 " <td>1eVymk74iroqhsZxm0Vy3g</td>\n",
1903 " <td>Can't Buy Me Love - Live / Remastered</td>\n",
1904 " </tr>\n",
1905 " <tr>\n",
1906 " <th>5</th>\n",
1907 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1908 " <td>Live At The Hollywood Bowl</td>\n",
1909 " <td>The Beatles</td>\n",
1910 " <td>2p5a9gu6NECVSvBtGSU1vm</td>\n",
1911 " <td>Things We Said Today - Live / Remastered</td>\n",
1912 " </tr>\n",
1913 " <tr>\n",
1914 " <th>6</th>\n",
1915 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1916 " <td>Live At The Hollywood Bowl</td>\n",
1917 " <td>The Beatles</td>\n",
1918 " <td>1HyLh5cctOnP186CBi8bhm</td>\n",
1919 " <td>Roll Over Beethoven - Live / Remastered</td>\n",
1920 " </tr>\n",
1921 " <tr>\n",
1922 " <th>7</th>\n",
1923 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1924 " <td>Live At The Hollywood Bowl</td>\n",
1925 " <td>The Beatles</td>\n",
1926 " <td>7fZEWm7TAL2oZDyiYrrgnk</td>\n",
1927 " <td>Boys - Live / Remastered</td>\n",
1928 " </tr>\n",
1929 " <tr>\n",
1930 " <th>8</th>\n",
1931 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1932 " <td>Live At The Hollywood Bowl</td>\n",
1933 " <td>The Beatles</td>\n",
1934 " <td>21nhooOxso7CCoHPE73w4L</td>\n",
1935 " <td>A Hard Day's Night - Live / Remastered</td>\n",
1936 " </tr>\n",
1937 " <tr>\n",
1938 " <th>9</th>\n",
1939 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1940 " <td>Live At The Hollywood Bowl</td>\n",
1941 " <td>The Beatles</td>\n",
1942 " <td>1alcPfZWUHh01l4Fnoo5Jt</td>\n",
1943 " <td>Help! - Live / Remastered</td>\n",
1944 " </tr>\n",
1945 " <tr>\n",
1946 " <th>10</th>\n",
1947 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1948 " <td>Live At The Hollywood Bowl</td>\n",
1949 " <td>The Beatles</td>\n",
1950 " <td>24gUDXSQysdnTaRpbWtYlK</td>\n",
1951 " <td>All My Loving - Live / Remastered</td>\n",
1952 " </tr>\n",
1953 " <tr>\n",
1954 " <th>11</th>\n",
1955 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1956 " <td>Live At The Hollywood Bowl</td>\n",
1957 " <td>The Beatles</td>\n",
1958 " <td>2VmFFbXSJzYxzEJSAeI0lM</td>\n",
1959 " <td>She Loves You - Live / Remastered</td>\n",
1960 " </tr>\n",
1961 " <tr>\n",
1962 " <th>12</th>\n",
1963 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1964 " <td>Live At The Hollywood Bowl</td>\n",
1965 " <td>The Beatles</td>\n",
1966 " <td>6b8lhQ86u5MddlmXulslpD</td>\n",
1967 " <td>Long Tall Sally - Live / Remastered</td>\n",
1968 " </tr>\n",
1969 " <tr>\n",
1970 " <th>13</th>\n",
1971 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1972 " <td>Live At The Hollywood Bowl</td>\n",
1973 " <td>The Beatles</td>\n",
1974 " <td>1oKfZ5MTCSrv07hsHqJ0JS</td>\n",
1975 " <td>You Can't Do That - Live / Bonus Track</td>\n",
1976 " </tr>\n",
1977 " <tr>\n",
1978 " <th>14</th>\n",
1979 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1980 " <td>Live At The Hollywood Bowl</td>\n",
1981 " <td>The Beatles</td>\n",
1982 " <td>04gBqA2mubcTgFqL9Domlj</td>\n",
1983 " <td>I Want To Hold Your Hand - Live / Bonus Track</td>\n",
1984 " </tr>\n",
1985 " <tr>\n",
1986 " <th>15</th>\n",
1987 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1988 " <td>Live At The Hollywood Bowl</td>\n",
1989 " <td>The Beatles</td>\n",
1990 " <td>79QDgDoBbS7pCrOjIH7ByA</td>\n",
1991 " <td>Everybody’s Trying To Be My Baby - Live / Bonu...</td>\n",
1992 " </tr>\n",
1993 " <tr>\n",
1994 " <th>16</th>\n",
1995 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
1996 " <td>Live At The Hollywood Bowl</td>\n",
1997 " <td>The Beatles</td>\n",
1998 " <td>1yV2I5c6efVSqSiuv9H2AD</td>\n",
1999 " <td>Baby's In Black - Live / Bonus Track</td>\n",
2000 " </tr>\n",
2001 " <tr>\n",
2002 " <th>17</th>\n",
2003 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2004 " <td>1 (Remastered)</td>\n",
2005 " <td>The Beatles</td>\n",
2006 " <td>5JT7CoUSGNk7mMNkHMQjqr</td>\n",
2007 " <td>Love Me Do - Mono / Remastered 2015</td>\n",
2008 " </tr>\n",
2009 " <tr>\n",
2010 " <th>18</th>\n",
2011 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2012 " <td>1 (Remastered)</td>\n",
2013 " <td>The Beatles</td>\n",
2014 " <td>2Q2Gu7Bv8iLenuygtBgDUw</td>\n",
2015 " <td>From Me To You - Mono / Remastered 2015</td>\n",
2016 " </tr>\n",
2017 " <tr>\n",
2018 " <th>19</th>\n",
2019 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2020 " <td>1 (Remastered)</td>\n",
2021 " <td>The Beatles</td>\n",
2022 " <td>2Fk411Ix3qnMG8t8Qa74ZX</td>\n",
2023 " <td>She Loves You - Mono / Remastered 2015</td>\n",
2024 " </tr>\n",
2025 " <tr>\n",
2026 " <th>20</th>\n",
2027 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2028 " <td>1 (Remastered)</td>\n",
2029 " <td>The Beatles</td>\n",
2030 " <td>4DRBaZ760gyk7LWnaJFqsJ</td>\n",
2031 " <td>I Want To Hold Your Hand - Remastered 2015</td>\n",
2032 " </tr>\n",
2033 " <tr>\n",
2034 " <th>21</th>\n",
2035 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2036 " <td>1 (Remastered)</td>\n",
2037 " <td>The Beatles</td>\n",
2038 " <td>7pQAq14Z73YUFMtxCyt0bG</td>\n",
2039 " <td>Can't Buy Me Love - Remastered 2015</td>\n",
2040 " </tr>\n",
2041 " <tr>\n",
2042 " <th>22</th>\n",
2043 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2044 " <td>1 (Remastered)</td>\n",
2045 " <td>The Beatles</td>\n",
2046 " <td>0mNQUZEATk2uItMUtiLWK5</td>\n",
2047 " <td>A Hard Day's Night - Remastered 2015</td>\n",
2048 " </tr>\n",
2049 " <tr>\n",
2050 " <th>23</th>\n",
2051 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2052 " <td>1 (Remastered)</td>\n",
2053 " <td>The Beatles</td>\n",
2054 " <td>0Gm34HBxrXlaAf1jdJMjx2</td>\n",
2055 " <td>I Feel Fine - Remastered 2015</td>\n",
2056 " </tr>\n",
2057 " <tr>\n",
2058 " <th>24</th>\n",
2059 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2060 " <td>1 (Remastered)</td>\n",
2061 " <td>The Beatles</td>\n",
2062 " <td>3nhJDVdUrm6DnDW4iBfpKz</td>\n",
2063 " <td>Eight Days A Week - Remastered 2015</td>\n",
2064 " </tr>\n",
2065 " <tr>\n",
2066 " <th>25</th>\n",
2067 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2068 " <td>1 (Remastered)</td>\n",
2069 " <td>The Beatles</td>\n",
2070 " <td>6pkjW5srxjzRSKKMrl7et8</td>\n",
2071 " <td>Ticket To Ride - Remastered 2015</td>\n",
2072 " </tr>\n",
2073 " <tr>\n",
2074 " <th>26</th>\n",
2075 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2076 " <td>1 (Remastered)</td>\n",
2077 " <td>The Beatles</td>\n",
2078 " <td>1dfuJYDSIc41cw5RPsaCF1</td>\n",
2079 " <td>Help! - Remastered 2015</td>\n",
2080 " </tr>\n",
2081 " <tr>\n",
2082 " <th>27</th>\n",
2083 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2084 " <td>1 (Remastered)</td>\n",
2085 " <td>The Beatles</td>\n",
2086 " <td>63uskN0xLezVg4281wzeQn</td>\n",
2087 " <td>Yesterday - Remastered 2015</td>\n",
2088 " </tr>\n",
2089 " <tr>\n",
2090 " <th>28</th>\n",
2091 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2092 " <td>1 (Remastered)</td>\n",
2093 " <td>The Beatles</td>\n",
2094 " <td>0vXGSlE4ft3n5JHZMHHSIj</td>\n",
2095 " <td>Day Tripper - Remastered 2015</td>\n",
2096 " </tr>\n",
2097 " <tr>\n",
2098 " <th>29</th>\n",
2099 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
2100 " <td>1 (Remastered)</td>\n",
2101 " <td>The Beatles</td>\n",
2102 " <td>0Lckblu9CJUXOeMV0XY3b9</td>\n",
2103 " <td>We Can Work It Out - Remastered 2015</td>\n",
2104 " </tr>\n",
2105 " <tr>\n",
2106 " <th>...</th>\n",
2107 " <td>...</td>\n",
2108 " <td>...</td>\n",
2109 " <td>...</td>\n",
2110 " <td>...</td>\n",
2111 " <td>...</td>\n",
2112 " </tr>\n",
2113 " <tr>\n",
2114 " <th>641</th>\n",
2115 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2116 " <td>Some Girls</td>\n",
2117 " <td>The Rolling Stones</td>\n",
2118 " <td>5ZesVHq9Nox8YjOR1kCpbN</td>\n",
2119 " <td>Just My Imagination (Running Away With Me) - R...</td>\n",
2120 " </tr>\n",
2121 " <tr>\n",
2122 " <th>642</th>\n",
2123 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2124 " <td>Some Girls</td>\n",
2125 " <td>The Rolling Stones</td>\n",
2126 " <td>6hLpp90qMxG3TMvMzwJsiQ</td>\n",
2127 " <td>Some Girls - Remastered</td>\n",
2128 " </tr>\n",
2129 " <tr>\n",
2130 " <th>643</th>\n",
2131 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2132 " <td>Some Girls</td>\n",
2133 " <td>The Rolling Stones</td>\n",
2134 " <td>3WqR7lRoHEvG0ExkAqBkPj</td>\n",
2135 " <td>Lies - Remastered</td>\n",
2136 " </tr>\n",
2137 " <tr>\n",
2138 " <th>644</th>\n",
2139 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2140 " <td>Some Girls</td>\n",
2141 " <td>The Rolling Stones</td>\n",
2142 " <td>06PEXSCNl8Xwf2633TdNnx</td>\n",
2143 " <td>Far Away Eyes - Remastered</td>\n",
2144 " </tr>\n",
2145 " <tr>\n",
2146 " <th>645</th>\n",
2147 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2148 " <td>Some Girls</td>\n",
2149 " <td>The Rolling Stones</td>\n",
2150 " <td>0Za26pWVLQpKfXmb9FX10S</td>\n",
2151 " <td>Respectable - Remastered</td>\n",
2152 " </tr>\n",
2153 " <tr>\n",
2154 " <th>646</th>\n",
2155 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2156 " <td>Some Girls</td>\n",
2157 " <td>The Rolling Stones</td>\n",
2158 " <td>6295nz7PVXm49Ihqwm39Ew</td>\n",
2159 " <td>Before They Make Me Run - Remastered</td>\n",
2160 " </tr>\n",
2161 " <tr>\n",
2162 " <th>647</th>\n",
2163 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2164 " <td>Some Girls</td>\n",
2165 " <td>The Rolling Stones</td>\n",
2166 " <td>0832Tptls5YicHPGgw7ssP</td>\n",
2167 " <td>Beast Of Burden - Remastered</td>\n",
2168 " </tr>\n",
2169 " <tr>\n",
2170 " <th>648</th>\n",
2171 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
2172 " <td>Some Girls</td>\n",
2173 " <td>The Rolling Stones</td>\n",
2174 " <td>6yq33zsqWCd8cYXQdtAFZ9</td>\n",
2175 " <td>Shattered - Remastered</td>\n",
2176 " </tr>\n",
2177 " <tr>\n",
2178 " <th>649</th>\n",
2179 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2180 " <td>Some Girls (Deluxe Version)</td>\n",
2181 " <td>The Rolling Stones</td>\n",
2182 " <td>5pTWpY8l7B1XcQnijEFGFj</td>\n",
2183 " <td>Miss You - Remastered</td>\n",
2184 " </tr>\n",
2185 " <tr>\n",
2186 " <th>650</th>\n",
2187 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2188 " <td>Some Girls (Deluxe Version)</td>\n",
2189 " <td>The Rolling Stones</td>\n",
2190 " <td>4E8qFhiuYAWEYYAsYIf4dW</td>\n",
2191 " <td>When The Whip Comes Down - Remastered</td>\n",
2192 " </tr>\n",
2193 " <tr>\n",
2194 " <th>651</th>\n",
2195 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2196 " <td>Some Girls (Deluxe Version)</td>\n",
2197 " <td>The Rolling Stones</td>\n",
2198 " <td>7sDQlyQACyT7mNHFwwEMI7</td>\n",
2199 " <td>Just My Imagination (Running Away With Me) - R...</td>\n",
2200 " </tr>\n",
2201 " <tr>\n",
2202 " <th>652</th>\n",
2203 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2204 " <td>Some Girls (Deluxe Version)</td>\n",
2205 " <td>The Rolling Stones</td>\n",
2206 " <td>48bJ1sWhJKdB8M43uqi924</td>\n",
2207 " <td>Some Girls - Remastered</td>\n",
2208 " </tr>\n",
2209 " <tr>\n",
2210 " <th>653</th>\n",
2211 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2212 " <td>Some Girls (Deluxe Version)</td>\n",
2213 " <td>The Rolling Stones</td>\n",
2214 " <td>6362zAWHGgbrQaoeCFZpuO</td>\n",
2215 " <td>Lies - Remastered</td>\n",
2216 " </tr>\n",
2217 " <tr>\n",
2218 " <th>654</th>\n",
2219 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2220 " <td>Some Girls (Deluxe Version)</td>\n",
2221 " <td>The Rolling Stones</td>\n",
2222 " <td>4RlD0KvoqPZy5n9Zi76X9l</td>\n",
2223 " <td>Far Away Eyes - Remastered</td>\n",
2224 " </tr>\n",
2225 " <tr>\n",
2226 " <th>655</th>\n",
2227 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2228 " <td>Some Girls (Deluxe Version)</td>\n",
2229 " <td>The Rolling Stones</td>\n",
2230 " <td>33PXyHrkIHxp6PBVPlQGx7</td>\n",
2231 " <td>Respectable - Remastered</td>\n",
2232 " </tr>\n",
2233 " <tr>\n",
2234 " <th>656</th>\n",
2235 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2236 " <td>Some Girls (Deluxe Version)</td>\n",
2237 " <td>The Rolling Stones</td>\n",
2238 " <td>7vsPbFinz35mfQO5d6oL0l</td>\n",
2239 " <td>Before They Make Me Run - Remastered</td>\n",
2240 " </tr>\n",
2241 " <tr>\n",
2242 " <th>657</th>\n",
2243 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2244 " <td>Some Girls (Deluxe Version)</td>\n",
2245 " <td>The Rolling Stones</td>\n",
2246 " <td>7pfVe0VrMK5QhTaAYzkuYn</td>\n",
2247 " <td>Beast Of Burden - Remastered</td>\n",
2248 " </tr>\n",
2249 " <tr>\n",
2250 " <th>658</th>\n",
2251 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2252 " <td>Some Girls (Deluxe Version)</td>\n",
2253 " <td>The Rolling Stones</td>\n",
2254 " <td>2giRM7RrP6utWLAb8jnFFk</td>\n",
2255 " <td>Shattered - Remastered</td>\n",
2256 " </tr>\n",
2257 " <tr>\n",
2258 " <th>659</th>\n",
2259 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2260 " <td>Some Girls (Deluxe Version)</td>\n",
2261 " <td>The Rolling Stones</td>\n",
2262 " <td>1V25DJ3ghDJs8m58jbVMbf</td>\n",
2263 " <td>Claudine</td>\n",
2264 " </tr>\n",
2265 " <tr>\n",
2266 " <th>660</th>\n",
2267 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2268 " <td>Some Girls (Deluxe Version)</td>\n",
2269 " <td>The Rolling Stones</td>\n",
2270 " <td>3rNTjyvxae83nJCLMxoVSW</td>\n",
2271 " <td>So Young</td>\n",
2272 " </tr>\n",
2273 " <tr>\n",
2274 " <th>661</th>\n",
2275 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2276 " <td>Some Girls (Deluxe Version)</td>\n",
2277 " <td>The Rolling Stones</td>\n",
2278 " <td>5oAcuuY504M7eDCln5Xq89</td>\n",
2279 " <td>Do You Think I Really Care</td>\n",
2280 " </tr>\n",
2281 " <tr>\n",
2282 " <th>662</th>\n",
2283 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2284 " <td>Some Girls (Deluxe Version)</td>\n",
2285 " <td>The Rolling Stones</td>\n",
2286 " <td>1ZBnd9Z80QPQ58BaL5OWlP</td>\n",
2287 " <td>When You're Gone</td>\n",
2288 " </tr>\n",
2289 " <tr>\n",
2290 " <th>663</th>\n",
2291 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2292 " <td>Some Girls (Deluxe Version)</td>\n",
2293 " <td>The Rolling Stones</td>\n",
2294 " <td>624njB7Ny3mlA46QokEin9</td>\n",
2295 " <td>No Spare Parts</td>\n",
2296 " </tr>\n",
2297 " <tr>\n",
2298 " <th>664</th>\n",
2299 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2300 " <td>Some Girls (Deluxe Version)</td>\n",
2301 " <td>The Rolling Stones</td>\n",
2302 " <td>0WpZfMNsNhiEJ8RSLyjElp</td>\n",
2303 " <td>Don't Be A Stranger</td>\n",
2304 " </tr>\n",
2305 " <tr>\n",
2306 " <th>665</th>\n",
2307 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2308 " <td>Some Girls (Deluxe Version)</td>\n",
2309 " <td>The Rolling Stones</td>\n",
2310 " <td>0Baq94uZKy4pPvnc40xjPX</td>\n",
2311 " <td>We Had It All</td>\n",
2312 " </tr>\n",
2313 " <tr>\n",
2314 " <th>666</th>\n",
2315 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2316 " <td>Some Girls (Deluxe Version)</td>\n",
2317 " <td>The Rolling Stones</td>\n",
2318 " <td>4oOU3GgiZblheOI9JUmM1f</td>\n",
2319 " <td>Tallahassee Lassie</td>\n",
2320 " </tr>\n",
2321 " <tr>\n",
2322 " <th>667</th>\n",
2323 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2324 " <td>Some Girls (Deluxe Version)</td>\n",
2325 " <td>The Rolling Stones</td>\n",
2326 " <td>4LW3JaAze7gF8DpPBb2zzl</td>\n",
2327 " <td>I Love You Too Much</td>\n",
2328 " </tr>\n",
2329 " <tr>\n",
2330 " <th>668</th>\n",
2331 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2332 " <td>Some Girls (Deluxe Version)</td>\n",
2333 " <td>The Rolling Stones</td>\n",
2334 " <td>4LSyTg4sm3N99Pcckw9zjf</td>\n",
2335 " <td>Keep Up Blues</td>\n",
2336 " </tr>\n",
2337 " <tr>\n",
2338 " <th>669</th>\n",
2339 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2340 " <td>Some Girls (Deluxe Version)</td>\n",
2341 " <td>The Rolling Stones</td>\n",
2342 " <td>3u06WsJ1KtvEqmmmZqy76J</td>\n",
2343 " <td>You Win Again</td>\n",
2344 " </tr>\n",
2345 " <tr>\n",
2346 " <th>670</th>\n",
2347 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
2348 " <td>Some Girls (Deluxe Version)</td>\n",
2349 " <td>The Rolling Stones</td>\n",
2350 " <td>7DgRvvPcJlxks2lNpudsuT</td>\n",
2351 " <td>Petrol Blues</td>\n",
2352 " </tr>\n",
2353 " </tbody>\n",
2354 "</table>\n",
2355 "<p>671 rows × 5 columns</p>\n",
2356 "</div>"
2357 ],
2358 "text/plain": [
2359 " album_id album_name artist_name \\\n",
2360 "0 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2361 "1 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2362 "2 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2363 "3 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2364 "4 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2365 "5 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2366 "6 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2367 "7 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2368 "8 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2369 "9 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2370 "10 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2371 "11 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2372 "12 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2373 "13 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2374 "14 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2375 "15 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2376 "16 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl The Beatles \n",
2377 "17 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2378 "18 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2379 "19 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2380 "20 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2381 "21 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2382 "22 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2383 "23 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2384 "24 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2385 "25 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2386 "26 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2387 "27 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2388 "28 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2389 "29 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) The Beatles \n",
2390 ".. ... ... ... \n",
2391 "641 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2392 "642 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2393 "643 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2394 "644 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2395 "645 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2396 "646 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2397 "647 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2398 "648 54sqbAXxR1jFfyXb1WvrHK Some Girls The Rolling Stones \n",
2399 "649 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2400 "650 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2401 "651 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2402 "652 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2403 "653 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2404 "654 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2405 "655 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2406 "656 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2407 "657 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2408 "658 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2409 "659 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2410 "660 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2411 "661 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2412 "662 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2413 "663 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2414 "664 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2415 "665 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2416 "666 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2417 "667 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2418 "668 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2419 "669 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2420 "670 6FjXxl9VLURGuubdXUn2J3 Some Girls (Deluxe Version) The Rolling Stones \n",
2421 "\n",
2422 " track_id track_name \n",
2423 "0 4edArG2VehvJdwOZfYOxtK Twist And Shout - Live / Remastered \n",
2424 "1 150EAeMGWJRubuH8zyx7h8 She's A Woman - Live / Remastered \n",
2425 "2 1fVeHYkyMxrjbjRAD9uWsZ Dizzy Miss Lizzy - Live / Remastered \n",
2426 "3 0GRplBEB2FWCKutwMmS6nY Ticket To Ride - Live / Remastered \n",
2427 "4 1eVymk74iroqhsZxm0Vy3g Can't Buy Me Love - Live / Remastered \n",
2428 "5 2p5a9gu6NECVSvBtGSU1vm Things We Said Today - Live / Remastered \n",
2429 "6 1HyLh5cctOnP186CBi8bhm Roll Over Beethoven - Live / Remastered \n",
2430 "7 7fZEWm7TAL2oZDyiYrrgnk Boys - Live / Remastered \n",
2431 "8 21nhooOxso7CCoHPE73w4L A Hard Day's Night - Live / Remastered \n",
2432 "9 1alcPfZWUHh01l4Fnoo5Jt Help! - Live / Remastered \n",
2433 "10 24gUDXSQysdnTaRpbWtYlK All My Loving - Live / Remastered \n",
2434 "11 2VmFFbXSJzYxzEJSAeI0lM She Loves You - Live / Remastered \n",
2435 "12 6b8lhQ86u5MddlmXulslpD Long Tall Sally - Live / Remastered \n",
2436 "13 1oKfZ5MTCSrv07hsHqJ0JS You Can't Do That - Live / Bonus Track \n",
2437 "14 04gBqA2mubcTgFqL9Domlj I Want To Hold Your Hand - Live / Bonus Track \n",
2438 "15 79QDgDoBbS7pCrOjIH7ByA Everybody’s Trying To Be My Baby - Live / Bonu... \n",
2439 "16 1yV2I5c6efVSqSiuv9H2AD Baby's In Black - Live / Bonus Track \n",
2440 "17 5JT7CoUSGNk7mMNkHMQjqr Love Me Do - Mono / Remastered 2015 \n",
2441 "18 2Q2Gu7Bv8iLenuygtBgDUw From Me To You - Mono / Remastered 2015 \n",
2442 "19 2Fk411Ix3qnMG8t8Qa74ZX She Loves You - Mono / Remastered 2015 \n",
2443 "20 4DRBaZ760gyk7LWnaJFqsJ I Want To Hold Your Hand - Remastered 2015 \n",
2444 "21 7pQAq14Z73YUFMtxCyt0bG Can't Buy Me Love - Remastered 2015 \n",
2445 "22 0mNQUZEATk2uItMUtiLWK5 A Hard Day's Night - Remastered 2015 \n",
2446 "23 0Gm34HBxrXlaAf1jdJMjx2 I Feel Fine - Remastered 2015 \n",
2447 "24 3nhJDVdUrm6DnDW4iBfpKz Eight Days A Week - Remastered 2015 \n",
2448 "25 6pkjW5srxjzRSKKMrl7et8 Ticket To Ride - Remastered 2015 \n",
2449 "26 1dfuJYDSIc41cw5RPsaCF1 Help! - Remastered 2015 \n",
2450 "27 63uskN0xLezVg4281wzeQn Yesterday - Remastered 2015 \n",
2451 "28 0vXGSlE4ft3n5JHZMHHSIj Day Tripper - Remastered 2015 \n",
2452 "29 0Lckblu9CJUXOeMV0XY3b9 We Can Work It Out - Remastered 2015 \n",
2453 ".. ... ... \n",
2454 "641 5ZesVHq9Nox8YjOR1kCpbN Just My Imagination (Running Away With Me) - R... \n",
2455 "642 6hLpp90qMxG3TMvMzwJsiQ Some Girls - Remastered \n",
2456 "643 3WqR7lRoHEvG0ExkAqBkPj Lies - Remastered \n",
2457 "644 06PEXSCNl8Xwf2633TdNnx Far Away Eyes - Remastered \n",
2458 "645 0Za26pWVLQpKfXmb9FX10S Respectable - Remastered \n",
2459 "646 6295nz7PVXm49Ihqwm39Ew Before They Make Me Run - Remastered \n",
2460 "647 0832Tptls5YicHPGgw7ssP Beast Of Burden - Remastered \n",
2461 "648 6yq33zsqWCd8cYXQdtAFZ9 Shattered - Remastered \n",
2462 "649 5pTWpY8l7B1XcQnijEFGFj Miss You - Remastered \n",
2463 "650 4E8qFhiuYAWEYYAsYIf4dW When The Whip Comes Down - Remastered \n",
2464 "651 7sDQlyQACyT7mNHFwwEMI7 Just My Imagination (Running Away With Me) - R... \n",
2465 "652 48bJ1sWhJKdB8M43uqi924 Some Girls - Remastered \n",
2466 "653 6362zAWHGgbrQaoeCFZpuO Lies - Remastered \n",
2467 "654 4RlD0KvoqPZy5n9Zi76X9l Far Away Eyes - Remastered \n",
2468 "655 33PXyHrkIHxp6PBVPlQGx7 Respectable - Remastered \n",
2469 "656 7vsPbFinz35mfQO5d6oL0l Before They Make Me Run - Remastered \n",
2470 "657 7pfVe0VrMK5QhTaAYzkuYn Beast Of Burden - Remastered \n",
2471 "658 2giRM7RrP6utWLAb8jnFFk Shattered - Remastered \n",
2472 "659 1V25DJ3ghDJs8m58jbVMbf Claudine \n",
2473 "660 3rNTjyvxae83nJCLMxoVSW So Young \n",
2474 "661 5oAcuuY504M7eDCln5Xq89 Do You Think I Really Care \n",
2475 "662 1ZBnd9Z80QPQ58BaL5OWlP When You're Gone \n",
2476 "663 624njB7Ny3mlA46QokEin9 No Spare Parts \n",
2477 "664 0WpZfMNsNhiEJ8RSLyjElp Don't Be A Stranger \n",
2478 "665 0Baq94uZKy4pPvnc40xjPX We Had It All \n",
2479 "666 4oOU3GgiZblheOI9JUmM1f Tallahassee Lassie \n",
2480 "667 4LW3JaAze7gF8DpPBb2zzl I Love You Too Much \n",
2481 "668 4LSyTg4sm3N99Pcckw9zjf Keep Up Blues \n",
2482 "669 3u06WsJ1KtvEqmmmZqy76J You Win Again \n",
2483 "670 7DgRvvPcJlxks2lNpudsuT Petrol Blues \n",
2484 "\n",
2485 "[671 rows x 5 columns]"
2486 ]
2487 },
2488 "execution_count": 16,
2489 "metadata": {},
2490 "output_type": "execute_result"
2491 }
2492 ],
2493 "source": [
2494 "pd.DataFrame([{'album_id': a['id'], \n",
2495 " 'album_name': a['name'],\n",
2496 " 'track_id': t['id'],\n",
2497 " 'track_name': t['name'],\n",
2498 " 'artist_name': t['artist_name']}\n",
2499 " for a in albums.find()\n",
2500 " for tid in a['tracks']['items']\n",
2501 " for t in tracks.find({'_id': tid['id']})])"
2502 ]
2503 },
2504 {
2505 "cell_type": "markdown",
2506 "metadata": {},
2507 "source": [
2508 "### Get full track data<a name=\"fulltrackdata\"></a>\n",
2509 "The full audio analysis requires an API token to get the data. We use the client token to retreive an authorisation token, which will last for about ten minutes.\n",
2510 "\n",
2511 "* [Top](#top)"
2512 ]
2513 },
2514 {
2515 "cell_type": "code",
2516 "execution_count": 17,
2517 "metadata": {
2518 "collapsed": true
2519 },
2520 "outputs": [],
2521 "source": [
2522 "def get_spotify_auth_token():\n",
2523 " auth_url = 'https://accounts.spotify.com/api/token'\n",
2524 " auth_data = urllib.parse.urlencode({'grant_type': 'client_credentials'}).encode('utf-8')\n",
2525 " auth_id = base64.standard_b64encode((config['spotify']['client_id'] + \\\n",
2526 " ':' + config['spotify']['client_secret']).encode('utf-8')).decode('utf-8)')\n",
2527 " auth_headers = {'Authorization': 'Basic ' + auth_id}\n",
2528 " auth_request = urllib.request.Request(auth_url, data=auth_data, headers=auth_headers)\n",
2529 " with urllib.request.urlopen(auth_request) as f:\n",
2530 " response = json.loads(f.read().decode('utf-8'))\n",
2531 " return response['token_type'], response['access_token']"
2532 ]
2533 },
2534 {
2535 "cell_type": "code",
2536 "execution_count": 26,
2537 "metadata": {
2538 "collapsed": true
2539 },
2540 "outputs": [],
2541 "source": [
2542 "# def get_audio_features(track_ids, auth_type, auth_token):\n",
2543 "# url = 'https://api.spotify.com/v1/audio-features?ids={ids}'.format(ids=','.join(track_ids))\n",
2544 "# headers = {'Authorization': auth_type + ' ' + auth_token}\n",
2545 "# request = urllib.request.Request(url, headers=headers, method='GET')\n",
2546 "# with urllib.request.urlopen(request) as f:\n",
2547 "# response = json.loads(f.read().decode('utf-8'))\n",
2548 "# for track in response['audio_features']:\n",
2549 "# tracks.update_one({'_id': track['id']}, {'$set': track})"
2550 ]
2551 },
2552 {
2553 "cell_type": "code",
2554 "execution_count": 29,
2555 "metadata": {
2556 "collapsed": true
2557 },
2558 "outputs": [],
2559 "source": [
2560 "def get_audio_features(track_ids, auth_type, auth_token):\n",
2561 " url = 'https://api.spotify.com/v1/audio-features?ids={ids}'.format(ids=','.join(track_ids))\n",
2562 " headers = {'Authorization': auth_type + ' ' + auth_token}\n",
2563 " request = urllib.request.Request(url, headers=headers, method='GET')\n",
2564 " \n",
2565 " for _ in range(10):\n",
2566 " try:\n",
2567 " with urllib.request.urlopen(request) as f:\n",
2568 " response = json.loads(f.read().decode('utf-8'))\n",
2569 " for track in response['audio_features']:\n",
2570 " tracks.update_one({'_id': track['id']}, {'$set': track})\n",
2571 " break\n",
2572 " except urllib.error.HTTPError as e:\n",
2573 " print(\"Rate limited. Pausing for\", e.info()['Retry-After'])\n",
2574 " time.sleep(int(e.info()['Retry-After']) + 0.5)\n",
2575 " continue "
2576 ]
2577 },
2578 {
2579 "cell_type": "code",
2580 "execution_count": 30,
2581 "metadata": {},
2582 "outputs": [],
2583 "source": [
2584 "a_type, a_token = get_spotify_auth_token()\n",
2585 "for a in albums.find({}, []):\n",
2586 " track_ids = [t['_id'] for t in tracks.find({'album.id': a['_id']}, [])]\n",
2587 " get_audio_features(track_ids, a_type, a_token)"
2588 ]
2589 },
2590 {
2591 "cell_type": "code",
2592 "execution_count": 37,
2593 "metadata": {
2594 "scrolled": true
2595 },
2596 "outputs": [
2597 {
2598 "data": {
2599 "text/html": [
2600 "<div>\n",
2601 "<table border=\"1\" class=\"dataframe\">\n",
2602 " <thead>\n",
2603 " <tr style=\"text-align: right;\">\n",
2604 " <th></th>\n",
2605 " <th>0</th>\n",
2606 " <th>1</th>\n",
2607 " <th>2</th>\n",
2608 " <th>3</th>\n",
2609 " <th>4</th>\n",
2610 " <th>5</th>\n",
2611 " <th>6</th>\n",
2612 " <th>7</th>\n",
2613 " <th>8</th>\n",
2614 " <th>9</th>\n",
2615 " <th>...</th>\n",
2616 " <th>219</th>\n",
2617 " <th>220</th>\n",
2618 " <th>221</th>\n",
2619 " <th>222</th>\n",
2620 " <th>223</th>\n",
2621 " <th>224</th>\n",
2622 " <th>225</th>\n",
2623 " <th>226</th>\n",
2624 " <th>227</th>\n",
2625 " <th>228</th>\n",
2626 " </tr>\n",
2627 " </thead>\n",
2628 " <tbody>\n",
2629 " <tr>\n",
2630 " <th>_id</th>\n",
2631 " <td>2ucFulEWapRAmTn7l6f5Q7</td>\n",
2632 " <td>2z1p43SNSbeowzy8WdYHNk</td>\n",
2633 " <td>3ckvsHnEffhhS5c0Cs6Gv5</td>\n",
2634 " <td>4edArG2VehvJdwOZfYOxtK</td>\n",
2635 " <td>150EAeMGWJRubuH8zyx7h8</td>\n",
2636 " <td>1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
2637 " <td>0GRplBEB2FWCKutwMmS6nY</td>\n",
2638 " <td>1eVymk74iroqhsZxm0Vy3g</td>\n",
2639 " <td>2p5a9gu6NECVSvBtGSU1vm</td>\n",
2640 " <td>1HyLh5cctOnP186CBi8bhm</td>\n",
2641 " <td>...</td>\n",
2642 " <td>43feVCF6QfqIt9LnLs9BAH</td>\n",
2643 " <td>3NwEPV9MDr1z3KcHiAuz9d</td>\n",
2644 " <td>2Iccm3cKBQHWt5yk0yX9nh</td>\n",
2645 " <td>2OLMjGIhCNI6j34ysPscbp</td>\n",
2646 " <td>01n20rdBC5czKAhxmGREkr</td>\n",
2647 " <td>5gnrZoSS7nbDYtHp32RFiI</td>\n",
2648 " <td>5FBxWhG0nbBAF6lWgJFklM</td>\n",
2649 " <td>6tEwCsVtZ5tI8uHNJSHQ3b</td>\n",
2650 " <td>50jq8RgbDfmNNd0NiRnl4L</td>\n",
2651 " <td>4Z1fbYp0HuxLBje4MOZcSD</td>\n",
2652 " </tr>\n",
2653 " <tr>\n",
2654 " <th>acousticness</th>\n",
2655 " <td>0.425</td>\n",
2656 " <td>0.368</td>\n",
2657 " <td>0.614</td>\n",
2658 " <td>7.67e-05</td>\n",
2659 " <td>0.00675</td>\n",
2660 " <td>0.0131</td>\n",
2661 " <td>0.00327</td>\n",
2662 " <td>0.00865</td>\n",
2663 " <td>0.0836</td>\n",
2664 " <td>0.00242</td>\n",
2665 " <td>...</td>\n",
2666 " <td>0.607</td>\n",
2667 " <td>0.767</td>\n",
2668 " <td>0.334</td>\n",
2669 " <td>0.386</td>\n",
2670 " <td>0.389</td>\n",
2671 " <td>0.778</td>\n",
2672 " <td>0.608</td>\n",
2673 " <td>0.698</td>\n",
2674 " <td>0.629</td>\n",
2675 " <td>0.641</td>\n",
2676 " </tr>\n",
2677 " <tr>\n",
2678 " <th>album</th>\n",
2679 " <td>{'id': '03Qh833fEdVT30Pfs93ea6', 'uri': 'spoti...</td>\n",
2680 " <td>{'id': '6P9yO0ukhOx3dvmhGKeYoC', 'uri': 'spoti...</td>\n",
2681 " <td>{'id': '7BgGBZndAvDlKOcwe5rscZ', 'uri': 'spoti...</td>\n",
2682 " <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
2683 " <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
2684 " <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
2685 " <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
2686 " <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
2687 " <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
2688 " <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
2689 " <td>...</td>\n",
2690 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2691 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2692 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2693 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2694 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2695 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2696 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2697 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2698 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2699 " <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
2700 " </tr>\n",
2701 " <tr>\n",
2702 " <th>album_id</th>\n",
2703 " <td>03Qh833fEdVT30Pfs93ea6</td>\n",
2704 " <td>6P9yO0ukhOx3dvmhGKeYoC</td>\n",
2705 " <td>7BgGBZndAvDlKOcwe5rscZ</td>\n",
2706 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
2707 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
2708 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
2709 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
2710 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
2711 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
2712 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
2713 " <td>...</td>\n",
2714 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2715 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2716 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2717 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2718 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2719 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2720 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2721 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2722 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2723 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
2724 " </tr>\n",
2725 " <tr>\n",
2726 " <th>analysis_url</th>\n",
2727 " <td>https://api.spotify.com/v1/audio-analysis/2ucF...</td>\n",
2728 " <td>https://api.spotify.com/v1/audio-analysis/2z1p...</td>\n",
2729 " <td>https://api.spotify.com/v1/audio-analysis/3ckv...</td>\n",
2730 " <td>https://api.spotify.com/v1/audio-analysis/4edA...</td>\n",
2731 " <td>https://api.spotify.com/v1/audio-analysis/150E...</td>\n",
2732 " <td>https://api.spotify.com/v1/audio-analysis/1fVe...</td>\n",
2733 " <td>https://api.spotify.com/v1/audio-analysis/0GRp...</td>\n",
2734 " <td>https://api.spotify.com/v1/audio-analysis/1eVy...</td>\n",
2735 " <td>https://api.spotify.com/v1/audio-analysis/2p5a...</td>\n",
2736 " <td>https://api.spotify.com/v1/audio-analysis/1HyL...</td>\n",
2737 " <td>...</td>\n",
2738 " <td>https://api.spotify.com/v1/audio-analysis/43fe...</td>\n",
2739 " <td>https://api.spotify.com/v1/audio-analysis/3NwE...</td>\n",
2740 " <td>https://api.spotify.com/v1/audio-analysis/2Icc...</td>\n",
2741 " <td>https://api.spotify.com/v1/audio-analysis/2OLM...</td>\n",
2742 " <td>https://api.spotify.com/v1/audio-analysis/01n2...</td>\n",
2743 " <td>https://api.spotify.com/v1/audio-analysis/5gnr...</td>\n",
2744 " <td>https://api.spotify.com/v1/audio-analysis/5FBx...</td>\n",
2745 " <td>https://api.spotify.com/v1/audio-analysis/6tEw...</td>\n",
2746 " <td>https://api.spotify.com/v1/audio-analysis/50jq...</td>\n",
2747 " <td>https://api.spotify.com/v1/audio-analysis/4Z1f...</td>\n",
2748 " </tr>\n",
2749 " <tr>\n",
2750 " <th>artist_id</th>\n",
2751 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2752 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2753 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2754 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2755 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2756 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2757 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2758 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2759 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2760 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2761 " <td>...</td>\n",
2762 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2763 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2764 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2765 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2766 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2767 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2768 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2769 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2770 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2771 " <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
2772 " </tr>\n",
2773 " <tr>\n",
2774 " <th>artist_name</th>\n",
2775 " <td>The Beatles</td>\n",
2776 " <td>The Beatles</td>\n",
2777 " <td>The Beatles</td>\n",
2778 " <td>The Beatles</td>\n",
2779 " <td>The Beatles</td>\n",
2780 " <td>The Beatles</td>\n",
2781 " <td>The Beatles</td>\n",
2782 " <td>The Beatles</td>\n",
2783 " <td>The Beatles</td>\n",
2784 " <td>The Beatles</td>\n",
2785 " <td>...</td>\n",
2786 " <td>The Beatles</td>\n",
2787 " <td>The Beatles</td>\n",
2788 " <td>The Beatles</td>\n",
2789 " <td>The Beatles</td>\n",
2790 " <td>The Beatles</td>\n",
2791 " <td>The Beatles</td>\n",
2792 " <td>The Beatles</td>\n",
2793 " <td>The Beatles</td>\n",
2794 " <td>The Beatles</td>\n",
2795 " <td>The Beatles</td>\n",
2796 " </tr>\n",
2797 " <tr>\n",
2798 " <th>artists</th>\n",
2799 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2800 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2801 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2802 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2803 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2804 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2805 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2806 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2807 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2808 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2809 " <td>...</td>\n",
2810 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2811 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2812 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2813 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2814 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2815 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2816 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2817 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2818 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2819 " <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
2820 " </tr>\n",
2821 " <tr>\n",
2822 " <th>available_markets</th>\n",
2823 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2824 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2825 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2826 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2827 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2828 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2829 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2830 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2831 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2832 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2833 " <td>...</td>\n",
2834 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2835 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2836 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2837 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2838 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2839 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2840 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2841 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2842 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2843 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
2844 " </tr>\n",
2845 " <tr>\n",
2846 " <th>complexity</th>\n",
2847 " <td>0.0598502</td>\n",
2848 " <td>NaN</td>\n",
2849 " <td>NaN</td>\n",
2850 " <td>0.293946</td>\n",
2851 " <td>0.316303</td>\n",
2852 " <td>0.445783</td>\n",
2853 " <td>0.334303</td>\n",
2854 " <td>0.493981</td>\n",
2855 " <td>0.24995</td>\n",
2856 " <td>0.467134</td>\n",
2857 " <td>...</td>\n",
2858 " <td>NaN</td>\n",
2859 " <td>NaN</td>\n",
2860 " <td>NaN</td>\n",
2861 " <td>NaN</td>\n",
2862 " <td>NaN</td>\n",
2863 " <td>NaN</td>\n",
2864 " <td>NaN</td>\n",
2865 " <td>NaN</td>\n",
2866 " <td>NaN</td>\n",
2867 " <td>NaN</td>\n",
2868 " </tr>\n",
2869 " <tr>\n",
2870 " <th>ctitle</th>\n",
2871 " <td>wild honey pie</td>\n",
2872 " <td>flying</td>\n",
2873 " <td>kansas city heyheyheyhey</td>\n",
2874 " <td>twist and shout</td>\n",
2875 " <td>shes a woman</td>\n",
2876 " <td>dizzy miss lizzy</td>\n",
2877 " <td>ticket to ride</td>\n",
2878 " <td>cant buy me love</td>\n",
2879 " <td>things we said today</td>\n",
2880 " <td>roll over beethoven</td>\n",
2881 " <td>...</td>\n",
2882 " <td>boys</td>\n",
2883 " <td>ask me why</td>\n",
2884 " <td>please please me</td>\n",
2885 " <td>love me do</td>\n",
2886 " <td>ps i love you</td>\n",
2887 " <td>baby its you</td>\n",
2888 " <td>do you want to know a secret</td>\n",
2889 " <td>a taste of honey</td>\n",
2890 " <td>theres a place</td>\n",
2891 " <td>twist and shout</td>\n",
2892 " </tr>\n",
2893 " <tr>\n",
2894 " <th>danceability</th>\n",
2895 " <td>0.792</td>\n",
2896 " <td>0.551</td>\n",
2897 " <td>0.588</td>\n",
2898 " <td>0.311</td>\n",
2899 " <td>0.188</td>\n",
2900 " <td>0.406</td>\n",
2901 " <td>0.39</td>\n",
2902 " <td>0.2</td>\n",
2903 " <td>0.307</td>\n",
2904 " <td>0.204</td>\n",
2905 " <td>...</td>\n",
2906 " <td>0.402</td>\n",
2907 " <td>0.605</td>\n",
2908 " <td>0.527</td>\n",
2909 " <td>0.52</td>\n",
2910 " <td>0.635</td>\n",
2911 " <td>0.608</td>\n",
2912 " <td>0.673</td>\n",
2913 " <td>0.42</td>\n",
2914 " <td>0.455</td>\n",
2915 " <td>0.482</td>\n",
2916 " </tr>\n",
2917 " <tr>\n",
2918 " <th>disc_number</th>\n",
2919 " <td>1</td>\n",
2920 " <td>1</td>\n",
2921 " <td>1</td>\n",
2922 " <td>1</td>\n",
2923 " <td>1</td>\n",
2924 " <td>1</td>\n",
2925 " <td>1</td>\n",
2926 " <td>1</td>\n",
2927 " <td>1</td>\n",
2928 " <td>1</td>\n",
2929 " <td>...</td>\n",
2930 " <td>1</td>\n",
2931 " <td>1</td>\n",
2932 " <td>1</td>\n",
2933 " <td>1</td>\n",
2934 " <td>1</td>\n",
2935 " <td>1</td>\n",
2936 " <td>1</td>\n",
2937 " <td>1</td>\n",
2938 " <td>1</td>\n",
2939 " <td>1</td>\n",
2940 " </tr>\n",
2941 " <tr>\n",
2942 " <th>duration_ms</th>\n",
2943 " <td>52973</td>\n",
2944 " <td>135520</td>\n",
2945 " <td>158147</td>\n",
2946 " <td>93507</td>\n",
2947 " <td>192053</td>\n",
2948 " <td>219733</td>\n",
2949 " <td>146240</td>\n",
2950 " <td>134867</td>\n",
2951 " <td>138733</td>\n",
2952 " <td>134013</td>\n",
2953 " <td>...</td>\n",
2954 " <td>146440</td>\n",
2955 " <td>146533</td>\n",
2956 " <td>120853</td>\n",
2957 " <td>141693</td>\n",
2958 " <td>124360</td>\n",
2959 " <td>160520</td>\n",
2960 " <td>117013</td>\n",
2961 " <td>123480</td>\n",
2962 " <td>110493</td>\n",
2963 " <td>155227</td>\n",
2964 " </tr>\n",
2965 " <tr>\n",
2966 " <th>energy</th>\n",
2967 " <td>0.763</td>\n",
2968 " <td>0.395</td>\n",
2969 " <td>0.724</td>\n",
2970 " <td>0.822</td>\n",
2971 " <td>0.885</td>\n",
2972 " <td>0.867</td>\n",
2973 " <td>0.779</td>\n",
2974 " <td>0.849</td>\n",
2975 " <td>0.637</td>\n",
2976 " <td>0.808</td>\n",
2977 " <td>...</td>\n",
2978 " <td>0.86</td>\n",
2979 " <td>0.394</td>\n",
2980 " <td>0.48</td>\n",
2981 " <td>0.829</td>\n",
2982 " <td>0.656</td>\n",
2983 " <td>0.494</td>\n",
2984 " <td>0.349</td>\n",
2985 " <td>0.372</td>\n",
2986 " <td>0.582</td>\n",
2987 " <td>0.849</td>\n",
2988 " </tr>\n",
2989 " <tr>\n",
2990 " <th>explicit</th>\n",
2991 " <td>False</td>\n",
2992 " <td>False</td>\n",
2993 " <td>False</td>\n",
2994 " <td>False</td>\n",
2995 " <td>False</td>\n",
2996 " <td>False</td>\n",
2997 " <td>False</td>\n",
2998 " <td>False</td>\n",
2999 " <td>False</td>\n",
3000 " <td>False</td>\n",
3001 " <td>...</td>\n",
3002 " <td>False</td>\n",
3003 " <td>False</td>\n",
3004 " <td>False</td>\n",
3005 " <td>False</td>\n",
3006 " <td>False</td>\n",
3007 " <td>False</td>\n",
3008 " <td>False</td>\n",
3009 " <td>False</td>\n",
3010 " <td>False</td>\n",
3011 " <td>False</td>\n",
3012 " </tr>\n",
3013 " <tr>\n",
3014 " <th>external_ids</th>\n",
3015 " <td>{'isrc': 'GBAYE0601648'}</td>\n",
3016 " <td>{'isrc': 'GBAYE0601635'}</td>\n",
3017 " <td>{'isrc': 'GBAYE0601457'}</td>\n",
3018 " <td>{'isrc': 'GBUM71603960'}</td>\n",
3019 " <td>{'isrc': 'GBUM71603957'}</td>\n",
3020 " <td>{'isrc': 'GBUM71603952'}</td>\n",
3021 " <td>{'isrc': 'GBUM71603959'}</td>\n",
3022 " <td>{'isrc': 'GBUM71603951'}</td>\n",
3023 " <td>{'isrc': 'GBUM71603958'}</td>\n",
3024 " <td>{'isrc': 'GBUM71603955'}</td>\n",
3025 " <td>...</td>\n",
3026 " <td>{'isrc': 'GBAYE0601414'}</td>\n",
3027 " <td>{'isrc': 'GBAYE0601415'}</td>\n",
3028 " <td>{'isrc': 'GBAYE0601416'}</td>\n",
3029 " <td>{'isrc': 'GBAYE0601417'}</td>\n",
3030 " <td>{'isrc': 'GBAYE0601418'}</td>\n",
3031 " <td>{'isrc': 'GBAYE0601419'}</td>\n",
3032 " <td>{'isrc': 'GBAYE0601420'}</td>\n",
3033 " <td>{'isrc': 'GBAYE0601421'}</td>\n",
3034 " <td>{'isrc': 'GBAYE0601422'}</td>\n",
3035 " <td>{'isrc': 'GBAYE0601423'}</td>\n",
3036 " </tr>\n",
3037 " <tr>\n",
3038 " <th>external_urls</th>\n",
3039 " <td>{'spotify': 'https://open.spotify.com/track/2u...</td>\n",
3040 " <td>{'spotify': 'https://open.spotify.com/track/2z...</td>\n",
3041 " <td>{'spotify': 'https://open.spotify.com/track/3c...</td>\n",
3042 " <td>{'spotify': 'https://open.spotify.com/track/4e...</td>\n",
3043 " <td>{'spotify': 'https://open.spotify.com/track/15...</td>\n",
3044 " <td>{'spotify': 'https://open.spotify.com/track/1f...</td>\n",
3045 " <td>{'spotify': 'https://open.spotify.com/track/0G...</td>\n",
3046 " <td>{'spotify': 'https://open.spotify.com/track/1e...</td>\n",
3047 " <td>{'spotify': 'https://open.spotify.com/track/2p...</td>\n",
3048 " <td>{'spotify': 'https://open.spotify.com/track/1H...</td>\n",
3049 " <td>...</td>\n",
3050 " <td>{'spotify': 'https://open.spotify.com/track/43...</td>\n",
3051 " <td>{'spotify': 'https://open.spotify.com/track/3N...</td>\n",
3052 " <td>{'spotify': 'https://open.spotify.com/track/2I...</td>\n",
3053 " <td>{'spotify': 'https://open.spotify.com/track/2O...</td>\n",
3054 " <td>{'spotify': 'https://open.spotify.com/track/01...</td>\n",
3055 " <td>{'spotify': 'https://open.spotify.com/track/5g...</td>\n",
3056 " <td>{'spotify': 'https://open.spotify.com/track/5F...</td>\n",
3057 " <td>{'spotify': 'https://open.spotify.com/track/6t...</td>\n",
3058 " <td>{'spotify': 'https://open.spotify.com/track/50...</td>\n",
3059 " <td>{'spotify': 'https://open.spotify.com/track/4Z...</td>\n",
3060 " </tr>\n",
3061 " <tr>\n",
3062 " <th>gloom</th>\n",
3063 " <td>0.418731</td>\n",
3064 " <td>NaN</td>\n",
3065 " <td>NaN</td>\n",
3066 " <td>0.238815</td>\n",
3067 " <td>0.22727</td>\n",
3068 " <td>0.154272</td>\n",
3069 " <td>0.35295</td>\n",
3070 " <td>0.242494</td>\n",
3071 " <td>0.307075</td>\n",
3072 " <td>0.22049</td>\n",
3073 " <td>...</td>\n",
3074 " <td>NaN</td>\n",
3075 " <td>NaN</td>\n",
3076 " <td>NaN</td>\n",
3077 " <td>NaN</td>\n",
3078 " <td>NaN</td>\n",
3079 " <td>NaN</td>\n",
3080 " <td>NaN</td>\n",
3081 " <td>NaN</td>\n",
3082 " <td>NaN</td>\n",
3083 " <td>NaN</td>\n",
3084 " </tr>\n",
3085 " <tr>\n",
3086 " <th>href</th>\n",
3087 " <td>https://api.spotify.com/v1/tracks/2ucFulEWapRA...</td>\n",
3088 " <td>https://api.spotify.com/v1/tracks/2z1p43SNSbeo...</td>\n",
3089 " <td>https://api.spotify.com/v1/tracks/3ckvsHnEffhh...</td>\n",
3090 " <td>https://api.spotify.com/v1/tracks/4edArG2VehvJ...</td>\n",
3091 " <td>https://api.spotify.com/v1/tracks/150EAeMGWJRu...</td>\n",
3092 " <td>https://api.spotify.com/v1/tracks/1fVeHYkyMxrj...</td>\n",
3093 " <td>https://api.spotify.com/v1/tracks/0GRplBEB2FWC...</td>\n",
3094 " <td>https://api.spotify.com/v1/tracks/1eVymk74iroq...</td>\n",
3095 " <td>https://api.spotify.com/v1/tracks/2p5a9gu6NECV...</td>\n",
3096 " <td>https://api.spotify.com/v1/tracks/1HyLh5cctOnP...</td>\n",
3097 " <td>...</td>\n",
3098 " <td>https://api.spotify.com/v1/tracks/43feVCF6QfqI...</td>\n",
3099 " <td>https://api.spotify.com/v1/tracks/3NwEPV9MDr1z...</td>\n",
3100 " <td>https://api.spotify.com/v1/tracks/2Iccm3cKBQHW...</td>\n",
3101 " <td>https://api.spotify.com/v1/tracks/2OLMjGIhCNI6...</td>\n",
3102 " <td>https://api.spotify.com/v1/tracks/01n20rdBC5cz...</td>\n",
3103 " <td>https://api.spotify.com/v1/tracks/5gnrZoSS7nbD...</td>\n",
3104 " <td>https://api.spotify.com/v1/tracks/5FBxWhG0nbBA...</td>\n",
3105 " <td>https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI...</td>\n",
3106 " <td>https://api.spotify.com/v1/tracks/50jq8RgbDfmN...</td>\n",
3107 " <td>https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL...</td>\n",
3108 " </tr>\n",
3109 " <tr>\n",
3110 " <th>id</th>\n",
3111 " <td>2ucFulEWapRAmTn7l6f5Q7</td>\n",
3112 " <td>2z1p43SNSbeowzy8WdYHNk</td>\n",
3113 " <td>3ckvsHnEffhhS5c0Cs6Gv5</td>\n",
3114 " <td>4edArG2VehvJdwOZfYOxtK</td>\n",
3115 " <td>150EAeMGWJRubuH8zyx7h8</td>\n",
3116 " <td>1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
3117 " <td>0GRplBEB2FWCKutwMmS6nY</td>\n",
3118 " <td>1eVymk74iroqhsZxm0Vy3g</td>\n",
3119 " <td>2p5a9gu6NECVSvBtGSU1vm</td>\n",
3120 " <td>1HyLh5cctOnP186CBi8bhm</td>\n",
3121 " <td>...</td>\n",
3122 " <td>43feVCF6QfqIt9LnLs9BAH</td>\n",
3123 " <td>3NwEPV9MDr1z3KcHiAuz9d</td>\n",
3124 " <td>2Iccm3cKBQHWt5yk0yX9nh</td>\n",
3125 " <td>2OLMjGIhCNI6j34ysPscbp</td>\n",
3126 " <td>01n20rdBC5czKAhxmGREkr</td>\n",
3127 " <td>5gnrZoSS7nbDYtHp32RFiI</td>\n",
3128 " <td>5FBxWhG0nbBAF6lWgJFklM</td>\n",
3129 " <td>6tEwCsVtZ5tI8uHNJSHQ3b</td>\n",
3130 " <td>50jq8RgbDfmNNd0NiRnl4L</td>\n",
3131 " <td>4Z1fbYp0HuxLBje4MOZcSD</td>\n",
3132 " </tr>\n",
3133 " <tr>\n",
3134 " <th>instrumentalness</th>\n",
3135 " <td>0.627</td>\n",
3136 " <td>0.88</td>\n",
3137 " <td>8.92e-05</td>\n",
3138 " <td>2.04e-06</td>\n",
3139 " <td>2.42e-05</td>\n",
3140 " <td>0.000141</td>\n",
3141 " <td>0</td>\n",
3142 " <td>0</td>\n",
3143 " <td>0</td>\n",
3144 " <td>0</td>\n",
3145 " <td>...</td>\n",
3146 " <td>0</td>\n",
3147 " <td>0</td>\n",
3148 " <td>0</td>\n",
3149 " <td>6.2e-05</td>\n",
3150 " <td>0.00127</td>\n",
3151 " <td>0</td>\n",
3152 " <td>0</td>\n",
3153 " <td>0</td>\n",
3154 " <td>4.22e-06</td>\n",
3155 " <td>7.74e-06</td>\n",
3156 " </tr>\n",
3157 " <tr>\n",
3158 " <th>key</th>\n",
3159 " <td>2</td>\n",
3160 " <td>0</td>\n",
3161 " <td>7</td>\n",
3162 " <td>2</td>\n",
3163 " <td>9</td>\n",
3164 " <td>11</td>\n",
3165 " <td>9</td>\n",
3166 " <td>5</td>\n",
3167 " <td>5</td>\n",
3168 " <td>2</td>\n",
3169 " <td>...</td>\n",
3170 " <td>4</td>\n",
3171 " <td>4</td>\n",
3172 " <td>4</td>\n",
3173 " <td>0</td>\n",
3174 " <td>2</td>\n",
3175 " <td>4</td>\n",
3176 " <td>4</td>\n",
3177 " <td>1</td>\n",
3178 " <td>4</td>\n",
3179 " <td>2</td>\n",
3180 " </tr>\n",
3181 " <tr>\n",
3182 " <th>liveness</th>\n",
3183 " <td>0.789</td>\n",
3184 " <td>0.0932</td>\n",
3185 " <td>0.877</td>\n",
3186 " <td>0.508</td>\n",
3187 " <td>0.85</td>\n",
3188 " <td>0.496</td>\n",
3189 " <td>0.366</td>\n",
3190 " <td>0.894</td>\n",
3191 " <td>0.756</td>\n",
3192 " <td>0.634</td>\n",
3193 " <td>...</td>\n",
3194 " <td>0.736</td>\n",
3195 " <td>0.0967</td>\n",
3196 " <td>0.0702</td>\n",
3197 " <td>0.227</td>\n",
3198 " <td>0.0828</td>\n",
3199 " <td>0.0926</td>\n",
3200 " <td>0.38</td>\n",
3201 " <td>0.104</td>\n",
3202 " <td>0.172</td>\n",
3203 " <td>0.0414</td>\n",
3204 " </tr>\n",
3205 " <tr>\n",
3206 " <th>loudness</th>\n",
3207 " <td>-11.185</td>\n",
3208 " <td>-14.755</td>\n",
3209 " <td>-6.63</td>\n",
3210 " <td>-8.696</td>\n",
3211 " <td>-8.189</td>\n",
3212 " <td>-6.879</td>\n",
3213 " <td>-8.007</td>\n",
3214 " <td>-7.606</td>\n",
3215 " <td>-8.35</td>\n",
3216 " <td>-7.948</td>\n",
3217 " <td>...</td>\n",
3218 " <td>-10.31</td>\n",
3219 " <td>-11.33</td>\n",
3220 " <td>-9.61</td>\n",
3221 " <td>-6.228</td>\n",
3222 " <td>-8.5</td>\n",
3223 " <td>-12.211</td>\n",
3224 " <td>-12.414</td>\n",
3225 " <td>-11.416</td>\n",
3226 " <td>-10.009</td>\n",
3227 " <td>-9.198</td>\n",
3228 " </tr>\n",
3229 " <tr>\n",
3230 " <th>lyrical_density</th>\n",
3231 " <td>0.169898</td>\n",
3232 " <td>0</td>\n",
3233 " <td>NaN</td>\n",
3234 " <td>2.82332</td>\n",
3235 " <td>0.577965</td>\n",
3236 " <td>0.796421</td>\n",
3237 " <td>1.85312</td>\n",
3238 " <td>1.47553</td>\n",
3239 " <td>1.29746</td>\n",
3240 " <td>1.7461</td>\n",
3241 " <td>...</td>\n",
3242 " <td>0.901393</td>\n",
3243 " <td>1.01001</td>\n",
3244 " <td>2.19275</td>\n",
3245 " <td>0.783384</td>\n",
3246 " <td>1.2303</td>\n",
3247 " <td>1.32694</td>\n",
3248 " <td>1.1879</td>\n",
3249 " <td>0.74506</td>\n",
3250 " <td>0.895984</td>\n",
3251 " <td>1.70075</td>\n",
3252 " </tr>\n",
3253 " <tr>\n",
3254 " <th>lyrics</th>\n",
3255 " <td>honey pie honey pie i love you, honey pie</td>\n",
3256 " <td></td>\n",
3257 " <td>NaN</td>\n",
3258 " <td>well shake it up baby now (shake it up baby) t...</td>\n",
3259 " <td>my love don't give me presents i know that she...</td>\n",
3260 " <td>{intro} you make me dizzy, miss lizzy the way ...</td>\n",
3261 " <td>i think i'm going to be sad i think it's today...</td>\n",
3262 " <td>can't buy me love, love can't buy me love i'll...</td>\n",
3263 " <td>you say you will love me if i have to go you'l...</td>\n",
3264 " <td>i'm gonna write a little letter gonna mail it ...</td>\n",
3265 " <td>...</td>\n",
3266 " <td>i been told when a boy kiss a girl take a trip...</td>\n",
3267 " <td>i love you, because you tell me things i want ...</td>\n",
3268 " <td>(lennon/mccartney) last night i said these wor...</td>\n",
3269 " <td>love, love me do you know i love you i'll alwa...</td>\n",
3270 " <td>as i write this letter send my love to you rem...</td>\n",
3271 " <td>sha la la la la la la la sha la la la la la la...</td>\n",
3272 " <td>you'll never know how much i really love you y...</td>\n",
3273 " <td>a taste of honey! tasting much sweeter than wi...</td>\n",
3274 " <td>there is a place where i can go when i feel lo...</td>\n",
3275 " <td>well shake it up baby now (shake it up baby) t...</td>\n",
3276 " </tr>\n",
3277 " <tr>\n",
3278 " <th>mode</th>\n",
3279 " <td>1</td>\n",
3280 " <td>1</td>\n",
3281 " <td>1</td>\n",
3282 " <td>1</td>\n",
3283 " <td>1</td>\n",
3284 " <td>0</td>\n",
3285 " <td>1</td>\n",
3286 " <td>1</td>\n",
3287 " <td>1</td>\n",
3288 " <td>1</td>\n",
3289 " <td>...</td>\n",
3290 " <td>1</td>\n",
3291 " <td>1</td>\n",
3292 " <td>1</td>\n",
3293 " <td>1</td>\n",
3294 " <td>1</td>\n",
3295 " <td>0</td>\n",
3296 " <td>1</td>\n",
3297 " <td>0</td>\n",
3298 " <td>1</td>\n",
3299 " <td>1</td>\n",
3300 " </tr>\n",
3301 " <tr>\n",
3302 " <th>name</th>\n",
3303 " <td>Wild Honey Pie - Remastered 2009</td>\n",
3304 " <td>Flying - Remastered 2009</td>\n",
3305 " <td>Kansas City / Hey-Hey-Hey-Hey - Remastered 2009</td>\n",
3306 " <td>Twist And Shout - Live / Remastered</td>\n",
3307 " <td>She's A Woman - Live / Remastered</td>\n",
3308 " <td>Dizzy Miss Lizzy - Live / Remastered</td>\n",
3309 " <td>Ticket To Ride - Live / Remastered</td>\n",
3310 " <td>Can't Buy Me Love - Live / Remastered</td>\n",
3311 " <td>Things We Said Today - Live / Remastered</td>\n",
3312 " <td>Roll Over Beethoven - Live / Remastered</td>\n",
3313 " <td>...</td>\n",
3314 " <td>Boys - Remastered 2009</td>\n",
3315 " <td>Ask Me Why - Remastered 2009</td>\n",
3316 " <td>Please Please Me - Remastered 2009</td>\n",
3317 " <td>Love Me Do - Remastered 2009</td>\n",
3318 " <td>P.S. I Love You - Remastered 2009</td>\n",
3319 " <td>Baby It's You - Remastered 2009</td>\n",
3320 " <td>Do You Want To Know A Secret - Remastered 2009</td>\n",
3321 " <td>A Taste Of Honey - Remastered 2009</td>\n",
3322 " <td>There's A Place - Remastered 2009</td>\n",
3323 " <td>Twist And Shout - Remastered 2009</td>\n",
3324 " </tr>\n",
3325 " <tr>\n",
3326 " <th>original_lyrics</th>\n",
3327 " <td>\\n\\nHoney Pie\\nHoney Pie\\nI love you, Honey Pi...</td>\n",
3328 " <td>\\n\\n[Instrumental]\\n\\n</td>\n",
3329 " <td>NaN</td>\n",
3330 " <td>\\n\\n[Verse 1]\\nWell shake it up baby now (shak...</td>\n",
3331 " <td>\\n\\n[Chorus]\\nMy love don't give me presents\\n...</td>\n",
3332 " <td>\\n\\n{Intro}\\n\\nYou make me dizzy, Miss Lizzy\\n...</td>\n",
3333 " <td>\\n\\n[Verse 1]\\nI think I'm going to be sad\\nI ...</td>\n",
3334 " <td>\\n\\n[Chorus 1]\\nCan't buy me love, love\\nCan't...</td>\n",
3335 " <td>\\n\\n[Verse 1]\\nYou say you will love me\\nIf I ...</td>\n",
3336 " <td>\\n\\nI'm gonna write a little letter\\nGonna mai...</td>\n",
3337 " <td>...</td>\n",
3338 " <td>\\n\\n[Verse 1]\\nI been told when a boy kiss a g...</td>\n",
3339 " <td>\\n\\n[Verse 1]\\nI love you, because you tell me...</td>\n",
3340 " <td>\\n\\n(Lennon/McCartney)\\n\\nLast night I said th...</td>\n",
3341 " <td>\\n\\nLove, love me do\\nYou know I love you\\nI'l...</td>\n",
3342 " <td>\\n\\nAs I write this letter\\nSend my love to yo...</td>\n",
3343 " <td>\\n\\n[Intro-The Beatles]\\nSha la la la la la la...</td>\n",
3344 " <td>\\n\\n[Intro]\\nYou'll never know how much I real...</td>\n",
3345 " <td>\\n\\n[Intro]\\nA taste of honey! Tasting much sw...</td>\n",
3346 " <td>\\n\\n[Verse 1]\\nThere is a place\\nWhere I can g...</td>\n",
3347 " <td>\\n\\n[Verse 1]\\nWell shake it up baby now (shak...</td>\n",
3348 " </tr>\n",
3349 " <tr>\n",
3350 " <th>popularity</th>\n",
3351 " <td>43</td>\n",
3352 " <td>44</td>\n",
3353 " <td>38</td>\n",
3354 " <td>48</td>\n",
3355 " <td>45</td>\n",
3356 " <td>44</td>\n",
3357 " <td>44</td>\n",
3358 " <td>44</td>\n",
3359 " <td>43</td>\n",
3360 " <td>43</td>\n",
3361 " <td>...</td>\n",
3362 " <td>42</td>\n",
3363 " <td>41</td>\n",
3364 " <td>48</td>\n",
3365 " <td>55</td>\n",
3366 " <td>43</td>\n",
3367 " <td>44</td>\n",
3368 " <td>48</td>\n",
3369 " <td>40</td>\n",
3370 " <td>43</td>\n",
3371 " <td>64</td>\n",
3372 " </tr>\n",
3373 " <tr>\n",
3374 " <th>preview_url</th>\n",
3375 " <td>https://p.scdn.co/mp3-preview/ddebab4d5e87d46a...</td>\n",
3376 " <td>https://p.scdn.co/mp3-preview/15f07b753cb7e50c...</td>\n",
3377 " <td>https://p.scdn.co/mp3-preview/bd13930c7706bdd4...</td>\n",
3378 " <td>https://p.scdn.co/mp3-preview/cd82d2f8f92a7222...</td>\n",
3379 " <td>https://p.scdn.co/mp3-preview/37806a7d82c5d2a8...</td>\n",
3380 " <td>https://p.scdn.co/mp3-preview/5ee6d20e1808908e...</td>\n",
3381 " <td>https://p.scdn.co/mp3-preview/558bb39228550744...</td>\n",
3382 " <td>https://p.scdn.co/mp3-preview/c6b9c820e62868db...</td>\n",
3383 " <td>https://p.scdn.co/mp3-preview/7b71156485b9e3e1...</td>\n",
3384 " <td>https://p.scdn.co/mp3-preview/318950f70347c556...</td>\n",
3385 " <td>...</td>\n",
3386 " <td>https://p.scdn.co/mp3-preview/c84bcc2dd65c3d9b...</td>\n",
3387 " <td>https://p.scdn.co/mp3-preview/f42256fa5367c68f...</td>\n",
3388 " <td>https://p.scdn.co/mp3-preview/c7974d03d8cd26de...</td>\n",
3389 " <td>https://p.scdn.co/mp3-preview/c0c7944dcb9d2457...</td>\n",
3390 " <td>https://p.scdn.co/mp3-preview/5ef1f2ba07489648...</td>\n",
3391 " <td>https://p.scdn.co/mp3-preview/d7eeb1f68c39066d...</td>\n",
3392 " <td>https://p.scdn.co/mp3-preview/5bd705943290818c...</td>\n",
3393 " <td>https://p.scdn.co/mp3-preview/dd94439cdf6e7668...</td>\n",
3394 " <td>https://p.scdn.co/mp3-preview/5260a1d4f12c23ac...</td>\n",
3395 " <td>https://p.scdn.co/mp3-preview/b7e3bc96b46e4dcc...</td>\n",
3396 " </tr>\n",
3397 " <tr>\n",
3398 " <th>sentiment</th>\n",
3399 " <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
3400 " <td>NaN</td>\n",
3401 " <td>NaN</td>\n",
3402 " <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
3403 " <td>{'label': 'neutral', 'probability': {'neutral'...</td>\n",
3404 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3405 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3406 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3407 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3408 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3409 " <td>...</td>\n",
3410 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3411 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3412 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3413 " <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
3414 " <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
3415 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3416 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3417 " <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
3418 " <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
3419 " <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
3420 " </tr>\n",
3421 " <tr>\n",
3422 " <th>speechiness</th>\n",
3423 " <td>0.0506</td>\n",
3424 " <td>0.0501</td>\n",
3425 " <td>0.0335</td>\n",
3426 " <td>0.0395</td>\n",
3427 " <td>0.0662</td>\n",
3428 " <td>0.0461</td>\n",
3429 " <td>0.0423</td>\n",
3430 " <td>0.0571</td>\n",
3431 " <td>0.0392</td>\n",
3432 " <td>0.0398</td>\n",
3433 " <td>...</td>\n",
3434 " <td>0.0504</td>\n",
3435 " <td>0.0378</td>\n",
3436 " <td>0.028</td>\n",
3437 " <td>0.0806</td>\n",
3438 " <td>0.0291</td>\n",
3439 " <td>0.0345</td>\n",
3440 " <td>0.0368</td>\n",
3441 " <td>0.0327</td>\n",
3442 " <td>0.0292</td>\n",
3443 " <td>0.0452</td>\n",
3444 " </tr>\n",
3445 " <tr>\n",
3446 " <th>tempo</th>\n",
3447 " <td>89.9</td>\n",
3448 " <td>92.929</td>\n",
3449 " <td>131.36</td>\n",
3450 " <td>126.441</td>\n",
3451 " <td>175.86</td>\n",
3452 " <td>129.417</td>\n",
3453 " <td>121.216</td>\n",
3454 " <td>173.283</td>\n",
3455 " <td>146.636</td>\n",
3456 " <td>179.24</td>\n",
3457 " <td>...</td>\n",
3458 " <td>142.445</td>\n",
3459 " <td>133.942</td>\n",
3460 " <td>139.388</td>\n",
3461 " <td>147.997</td>\n",
3462 " <td>134.435</td>\n",
3463 " <td>112.421</td>\n",
3464 " <td>124.451</td>\n",
3465 " <td>101.408</td>\n",
3466 " <td>140.928</td>\n",
3467 " <td>124.631</td>\n",
3468 " </tr>\n",
3469 " <tr>\n",
3470 " <th>time_signature</th>\n",
3471 " <td>4</td>\n",
3472 " <td>4</td>\n",
3473 " <td>4</td>\n",
3474 " <td>4</td>\n",
3475 " <td>4</td>\n",
3476 " <td>4</td>\n",
3477 " <td>4</td>\n",
3478 " <td>4</td>\n",
3479 " <td>4</td>\n",
3480 " <td>3</td>\n",
3481 " <td>...</td>\n",
3482 " <td>4</td>\n",
3483 " <td>4</td>\n",
3484 " <td>4</td>\n",
3485 " <td>4</td>\n",
3486 " <td>4</td>\n",
3487 " <td>4</td>\n",
3488 " <td>4</td>\n",
3489 " <td>3</td>\n",
3490 " <td>4</td>\n",
3491 " <td>4</td>\n",
3492 " </tr>\n",
3493 " <tr>\n",
3494 " <th>track_href</th>\n",
3495 " <td>https://api.spotify.com/v1/tracks/2ucFulEWapRA...</td>\n",
3496 " <td>https://api.spotify.com/v1/tracks/2z1p43SNSbeo...</td>\n",
3497 " <td>https://api.spotify.com/v1/tracks/3ckvsHnEffhh...</td>\n",
3498 " <td>https://api.spotify.com/v1/tracks/4edArG2VehvJ...</td>\n",
3499 " <td>https://api.spotify.com/v1/tracks/150EAeMGWJRu...</td>\n",
3500 " <td>https://api.spotify.com/v1/tracks/1fVeHYkyMxrj...</td>\n",
3501 " <td>https://api.spotify.com/v1/tracks/0GRplBEB2FWC...</td>\n",
3502 " <td>https://api.spotify.com/v1/tracks/1eVymk74iroq...</td>\n",
3503 " <td>https://api.spotify.com/v1/tracks/2p5a9gu6NECV...</td>\n",
3504 " <td>https://api.spotify.com/v1/tracks/1HyLh5cctOnP...</td>\n",
3505 " <td>...</td>\n",
3506 " <td>https://api.spotify.com/v1/tracks/43feVCF6QfqI...</td>\n",
3507 " <td>https://api.spotify.com/v1/tracks/3NwEPV9MDr1z...</td>\n",
3508 " <td>https://api.spotify.com/v1/tracks/2Iccm3cKBQHW...</td>\n",
3509 " <td>https://api.spotify.com/v1/tracks/2OLMjGIhCNI6...</td>\n",
3510 " <td>https://api.spotify.com/v1/tracks/01n20rdBC5cz...</td>\n",
3511 " <td>https://api.spotify.com/v1/tracks/5gnrZoSS7nbD...</td>\n",
3512 " <td>https://api.spotify.com/v1/tracks/5FBxWhG0nbBA...</td>\n",
3513 " <td>https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI...</td>\n",
3514 " <td>https://api.spotify.com/v1/tracks/50jq8RgbDfmN...</td>\n",
3515 " <td>https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL...</td>\n",
3516 " </tr>\n",
3517 " <tr>\n",
3518 " <th>track_number</th>\n",
3519 " <td>5</td>\n",
3520 " <td>3</td>\n",
3521 " <td>7</td>\n",
3522 " <td>1</td>\n",
3523 " <td>2</td>\n",
3524 " <td>3</td>\n",
3525 " <td>4</td>\n",
3526 " <td>5</td>\n",
3527 " <td>6</td>\n",
3528 " <td>7</td>\n",
3529 " <td>...</td>\n",
3530 " <td>5</td>\n",
3531 " <td>6</td>\n",
3532 " <td>7</td>\n",
3533 " <td>8</td>\n",
3534 " <td>9</td>\n",
3535 " <td>10</td>\n",
3536 " <td>11</td>\n",
3537 " <td>12</td>\n",
3538 " <td>13</td>\n",
3539 " <td>14</td>\n",
3540 " </tr>\n",
3541 " <tr>\n",
3542 " <th>type</th>\n",
3543 " <td>audio_features</td>\n",
3544 " <td>audio_features</td>\n",
3545 " <td>audio_features</td>\n",
3546 " <td>audio_features</td>\n",
3547 " <td>audio_features</td>\n",
3548 " <td>audio_features</td>\n",
3549 " <td>audio_features</td>\n",
3550 " <td>audio_features</td>\n",
3551 " <td>audio_features</td>\n",
3552 " <td>audio_features</td>\n",
3553 " <td>...</td>\n",
3554 " <td>audio_features</td>\n",
3555 " <td>audio_features</td>\n",
3556 " <td>audio_features</td>\n",
3557 " <td>audio_features</td>\n",
3558 " <td>audio_features</td>\n",
3559 " <td>audio_features</td>\n",
3560 " <td>audio_features</td>\n",
3561 " <td>audio_features</td>\n",
3562 " <td>audio_features</td>\n",
3563 " <td>audio_features</td>\n",
3564 " </tr>\n",
3565 " <tr>\n",
3566 " <th>uri</th>\n",
3567 " <td>spotify:track:2ucFulEWapRAmTn7l6f5Q7</td>\n",
3568 " <td>spotify:track:2z1p43SNSbeowzy8WdYHNk</td>\n",
3569 " <td>spotify:track:3ckvsHnEffhhS5c0Cs6Gv5</td>\n",
3570 " <td>spotify:track:4edArG2VehvJdwOZfYOxtK</td>\n",
3571 " <td>spotify:track:150EAeMGWJRubuH8zyx7h8</td>\n",
3572 " <td>spotify:track:1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
3573 " <td>spotify:track:0GRplBEB2FWCKutwMmS6nY</td>\n",
3574 " <td>spotify:track:1eVymk74iroqhsZxm0Vy3g</td>\n",
3575 " <td>spotify:track:2p5a9gu6NECVSvBtGSU1vm</td>\n",
3576 " <td>spotify:track:1HyLh5cctOnP186CBi8bhm</td>\n",
3577 " <td>...</td>\n",
3578 " <td>spotify:track:43feVCF6QfqIt9LnLs9BAH</td>\n",
3579 " <td>spotify:track:3NwEPV9MDr1z3KcHiAuz9d</td>\n",
3580 " <td>spotify:track:2Iccm3cKBQHWt5yk0yX9nh</td>\n",
3581 " <td>spotify:track:2OLMjGIhCNI6j34ysPscbp</td>\n",
3582 " <td>spotify:track:01n20rdBC5czKAhxmGREkr</td>\n",
3583 " <td>spotify:track:5gnrZoSS7nbDYtHp32RFiI</td>\n",
3584 " <td>spotify:track:5FBxWhG0nbBAF6lWgJFklM</td>\n",
3585 " <td>spotify:track:6tEwCsVtZ5tI8uHNJSHQ3b</td>\n",
3586 " <td>spotify:track:50jq8RgbDfmNNd0NiRnl4L</td>\n",
3587 " <td>spotify:track:4Z1fbYp0HuxLBje4MOZcSD</td>\n",
3588 " </tr>\n",
3589 " <tr>\n",
3590 " <th>valence</th>\n",
3591 " <td>0.153</td>\n",
3592 " <td>0.246</td>\n",
3593 " <td>0.929</td>\n",
3594 " <td>0.588</td>\n",
3595 " <td>0.562</td>\n",
3596 " <td>0.758</td>\n",
3597 " <td>0.405</td>\n",
3598 " <td>0.669</td>\n",
3599 " <td>0.395</td>\n",
3600 " <td>0.726</td>\n",
3601 " <td>...</td>\n",
3602 " <td>0.825</td>\n",
3603 " <td>0.606</td>\n",
3604 " <td>0.708</td>\n",
3605 " <td>0.765</td>\n",
3606 " <td>0.78</td>\n",
3607 " <td>0.889</td>\n",
3608 " <td>0.636</td>\n",
3609 " <td>0.378</td>\n",
3610 " <td>0.928</td>\n",
3611 " <td>0.942</td>\n",
3612 " </tr>\n",
3613 " </tbody>\n",
3614 "</table>\n",
3615 "<p>41 rows × 229 columns</p>\n",
3616 "</div>"
3617 ],
3618 "text/plain": [
3619 " 0 \\\n",
3620 "_id 2ucFulEWapRAmTn7l6f5Q7 \n",
3621 "acousticness 0.425 \n",
3622 "album {'id': '03Qh833fEdVT30Pfs93ea6', 'uri': 'spoti... \n",
3623 "album_id 03Qh833fEdVT30Pfs93ea6 \n",
3624 "analysis_url https://api.spotify.com/v1/audio-analysis/2ucF... \n",
3625 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3626 "artist_name The Beatles \n",
3627 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3628 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3629 "complexity 0.0598502 \n",
3630 "ctitle wild honey pie \n",
3631 "danceability 0.792 \n",
3632 "disc_number 1 \n",
3633 "duration_ms 52973 \n",
3634 "energy 0.763 \n",
3635 "explicit False \n",
3636 "external_ids {'isrc': 'GBAYE0601648'} \n",
3637 "external_urls {'spotify': 'https://open.spotify.com/track/2u... \n",
3638 "gloom 0.418731 \n",
3639 "href https://api.spotify.com/v1/tracks/2ucFulEWapRA... \n",
3640 "id 2ucFulEWapRAmTn7l6f5Q7 \n",
3641 "instrumentalness 0.627 \n",
3642 "key 2 \n",
3643 "liveness 0.789 \n",
3644 "loudness -11.185 \n",
3645 "lyrical_density 0.169898 \n",
3646 "lyrics honey pie honey pie i love you, honey pie \n",
3647 "mode 1 \n",
3648 "name Wild Honey Pie - Remastered 2009 \n",
3649 "original_lyrics \\n\\nHoney Pie\\nHoney Pie\\nI love you, Honey Pi... \n",
3650 "popularity 43 \n",
3651 "preview_url https://p.scdn.co/mp3-preview/ddebab4d5e87d46a... \n",
3652 "sentiment {'label': 'pos', 'probability': {'neutral': 0.... \n",
3653 "speechiness 0.0506 \n",
3654 "tempo 89.9 \n",
3655 "time_signature 4 \n",
3656 "track_href https://api.spotify.com/v1/tracks/2ucFulEWapRA... \n",
3657 "track_number 5 \n",
3658 "type audio_features \n",
3659 "uri spotify:track:2ucFulEWapRAmTn7l6f5Q7 \n",
3660 "valence 0.153 \n",
3661 "\n",
3662 " 1 \\\n",
3663 "_id 2z1p43SNSbeowzy8WdYHNk \n",
3664 "acousticness 0.368 \n",
3665 "album {'id': '6P9yO0ukhOx3dvmhGKeYoC', 'uri': 'spoti... \n",
3666 "album_id 6P9yO0ukhOx3dvmhGKeYoC \n",
3667 "analysis_url https://api.spotify.com/v1/audio-analysis/2z1p... \n",
3668 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3669 "artist_name The Beatles \n",
3670 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3671 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3672 "complexity NaN \n",
3673 "ctitle flying \n",
3674 "danceability 0.551 \n",
3675 "disc_number 1 \n",
3676 "duration_ms 135520 \n",
3677 "energy 0.395 \n",
3678 "explicit False \n",
3679 "external_ids {'isrc': 'GBAYE0601635'} \n",
3680 "external_urls {'spotify': 'https://open.spotify.com/track/2z... \n",
3681 "gloom NaN \n",
3682 "href https://api.spotify.com/v1/tracks/2z1p43SNSbeo... \n",
3683 "id 2z1p43SNSbeowzy8WdYHNk \n",
3684 "instrumentalness 0.88 \n",
3685 "key 0 \n",
3686 "liveness 0.0932 \n",
3687 "loudness -14.755 \n",
3688 "lyrical_density 0 \n",
3689 "lyrics \n",
3690 "mode 1 \n",
3691 "name Flying - Remastered 2009 \n",
3692 "original_lyrics \\n\\n[Instrumental]\\n\\n \n",
3693 "popularity 44 \n",
3694 "preview_url https://p.scdn.co/mp3-preview/15f07b753cb7e50c... \n",
3695 "sentiment NaN \n",
3696 "speechiness 0.0501 \n",
3697 "tempo 92.929 \n",
3698 "time_signature 4 \n",
3699 "track_href https://api.spotify.com/v1/tracks/2z1p43SNSbeo... \n",
3700 "track_number 3 \n",
3701 "type audio_features \n",
3702 "uri spotify:track:2z1p43SNSbeowzy8WdYHNk \n",
3703 "valence 0.246 \n",
3704 "\n",
3705 " 2 \\\n",
3706 "_id 3ckvsHnEffhhS5c0Cs6Gv5 \n",
3707 "acousticness 0.614 \n",
3708 "album {'id': '7BgGBZndAvDlKOcwe5rscZ', 'uri': 'spoti... \n",
3709 "album_id 7BgGBZndAvDlKOcwe5rscZ \n",
3710 "analysis_url https://api.spotify.com/v1/audio-analysis/3ckv... \n",
3711 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3712 "artist_name The Beatles \n",
3713 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3714 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3715 "complexity NaN \n",
3716 "ctitle kansas city heyheyheyhey \n",
3717 "danceability 0.588 \n",
3718 "disc_number 1 \n",
3719 "duration_ms 158147 \n",
3720 "energy 0.724 \n",
3721 "explicit False \n",
3722 "external_ids {'isrc': 'GBAYE0601457'} \n",
3723 "external_urls {'spotify': 'https://open.spotify.com/track/3c... \n",
3724 "gloom NaN \n",
3725 "href https://api.spotify.com/v1/tracks/3ckvsHnEffhh... \n",
3726 "id 3ckvsHnEffhhS5c0Cs6Gv5 \n",
3727 "instrumentalness 8.92e-05 \n",
3728 "key 7 \n",
3729 "liveness 0.877 \n",
3730 "loudness -6.63 \n",
3731 "lyrical_density NaN \n",
3732 "lyrics NaN \n",
3733 "mode 1 \n",
3734 "name Kansas City / Hey-Hey-Hey-Hey - Remastered 2009 \n",
3735 "original_lyrics NaN \n",
3736 "popularity 38 \n",
3737 "preview_url https://p.scdn.co/mp3-preview/bd13930c7706bdd4... \n",
3738 "sentiment NaN \n",
3739 "speechiness 0.0335 \n",
3740 "tempo 131.36 \n",
3741 "time_signature 4 \n",
3742 "track_href https://api.spotify.com/v1/tracks/3ckvsHnEffhh... \n",
3743 "track_number 7 \n",
3744 "type audio_features \n",
3745 "uri spotify:track:3ckvsHnEffhhS5c0Cs6Gv5 \n",
3746 "valence 0.929 \n",
3747 "\n",
3748 " 3 \\\n",
3749 "_id 4edArG2VehvJdwOZfYOxtK \n",
3750 "acousticness 7.67e-05 \n",
3751 "album {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti... \n",
3752 "album_id 5XfJmldgWzrc1AIdbBaVZn \n",
3753 "analysis_url https://api.spotify.com/v1/audio-analysis/4edA... \n",
3754 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3755 "artist_name The Beatles \n",
3756 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3757 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3758 "complexity 0.293946 \n",
3759 "ctitle twist and shout \n",
3760 "danceability 0.311 \n",
3761 "disc_number 1 \n",
3762 "duration_ms 93507 \n",
3763 "energy 0.822 \n",
3764 "explicit False \n",
3765 "external_ids {'isrc': 'GBUM71603960'} \n",
3766 "external_urls {'spotify': 'https://open.spotify.com/track/4e... \n",
3767 "gloom 0.238815 \n",
3768 "href https://api.spotify.com/v1/tracks/4edArG2VehvJ... \n",
3769 "id 4edArG2VehvJdwOZfYOxtK \n",
3770 "instrumentalness 2.04e-06 \n",
3771 "key 2 \n",
3772 "liveness 0.508 \n",
3773 "loudness -8.696 \n",
3774 "lyrical_density 2.82332 \n",
3775 "lyrics well shake it up baby now (shake it up baby) t... \n",
3776 "mode 1 \n",
3777 "name Twist And Shout - Live / Remastered \n",
3778 "original_lyrics \\n\\n[Verse 1]\\nWell shake it up baby now (shak... \n",
3779 "popularity 48 \n",
3780 "preview_url https://p.scdn.co/mp3-preview/cd82d2f8f92a7222... \n",
3781 "sentiment {'label': 'pos', 'probability': {'neutral': 0.... \n",
3782 "speechiness 0.0395 \n",
3783 "tempo 126.441 \n",
3784 "time_signature 4 \n",
3785 "track_href https://api.spotify.com/v1/tracks/4edArG2VehvJ... \n",
3786 "track_number 1 \n",
3787 "type audio_features \n",
3788 "uri spotify:track:4edArG2VehvJdwOZfYOxtK \n",
3789 "valence 0.588 \n",
3790 "\n",
3791 " 4 \\\n",
3792 "_id 150EAeMGWJRubuH8zyx7h8 \n",
3793 "acousticness 0.00675 \n",
3794 "album {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti... \n",
3795 "album_id 5XfJmldgWzrc1AIdbBaVZn \n",
3796 "analysis_url https://api.spotify.com/v1/audio-analysis/150E... \n",
3797 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3798 "artist_name The Beatles \n",
3799 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3800 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3801 "complexity 0.316303 \n",
3802 "ctitle shes a woman \n",
3803 "danceability 0.188 \n",
3804 "disc_number 1 \n",
3805 "duration_ms 192053 \n",
3806 "energy 0.885 \n",
3807 "explicit False \n",
3808 "external_ids {'isrc': 'GBUM71603957'} \n",
3809 "external_urls {'spotify': 'https://open.spotify.com/track/15... \n",
3810 "gloom 0.22727 \n",
3811 "href https://api.spotify.com/v1/tracks/150EAeMGWJRu... \n",
3812 "id 150EAeMGWJRubuH8zyx7h8 \n",
3813 "instrumentalness 2.42e-05 \n",
3814 "key 9 \n",
3815 "liveness 0.85 \n",
3816 "loudness -8.189 \n",
3817 "lyrical_density 0.577965 \n",
3818 "lyrics my love don't give me presents i know that she... \n",
3819 "mode 1 \n",
3820 "name She's A Woman - Live / Remastered \n",
3821 "original_lyrics \\n\\n[Chorus]\\nMy love don't give me presents\\n... \n",
3822 "popularity 45 \n",
3823 "preview_url https://p.scdn.co/mp3-preview/37806a7d82c5d2a8... \n",
3824 "sentiment {'label': 'neutral', 'probability': {'neutral'... \n",
3825 "speechiness 0.0662 \n",
3826 "tempo 175.86 \n",
3827 "time_signature 4 \n",
3828 "track_href https://api.spotify.com/v1/tracks/150EAeMGWJRu... \n",
3829 "track_number 2 \n",
3830 "type audio_features \n",
3831 "uri spotify:track:150EAeMGWJRubuH8zyx7h8 \n",
3832 "valence 0.562 \n",
3833 "\n",
3834 " 5 \\\n",
3835 "_id 1fVeHYkyMxrjbjRAD9uWsZ \n",
3836 "acousticness 0.0131 \n",
3837 "album {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti... \n",
3838 "album_id 5XfJmldgWzrc1AIdbBaVZn \n",
3839 "analysis_url https://api.spotify.com/v1/audio-analysis/1fVe... \n",
3840 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3841 "artist_name The Beatles \n",
3842 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3843 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3844 "complexity 0.445783 \n",
3845 "ctitle dizzy miss lizzy \n",
3846 "danceability 0.406 \n",
3847 "disc_number 1 \n",
3848 "duration_ms 219733 \n",
3849 "energy 0.867 \n",
3850 "explicit False \n",
3851 "external_ids {'isrc': 'GBUM71603952'} \n",
3852 "external_urls {'spotify': 'https://open.spotify.com/track/1f... \n",
3853 "gloom 0.154272 \n",
3854 "href https://api.spotify.com/v1/tracks/1fVeHYkyMxrj... \n",
3855 "id 1fVeHYkyMxrjbjRAD9uWsZ \n",
3856 "instrumentalness 0.000141 \n",
3857 "key 11 \n",
3858 "liveness 0.496 \n",
3859 "loudness -6.879 \n",
3860 "lyrical_density 0.796421 \n",
3861 "lyrics {intro} you make me dizzy, miss lizzy the way ... \n",
3862 "mode 0 \n",
3863 "name Dizzy Miss Lizzy - Live / Remastered \n",
3864 "original_lyrics \\n\\n{Intro}\\n\\nYou make me dizzy, Miss Lizzy\\n... \n",
3865 "popularity 44 \n",
3866 "preview_url https://p.scdn.co/mp3-preview/5ee6d20e1808908e... \n",
3867 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
3868 "speechiness 0.0461 \n",
3869 "tempo 129.417 \n",
3870 "time_signature 4 \n",
3871 "track_href https://api.spotify.com/v1/tracks/1fVeHYkyMxrj... \n",
3872 "track_number 3 \n",
3873 "type audio_features \n",
3874 "uri spotify:track:1fVeHYkyMxrjbjRAD9uWsZ \n",
3875 "valence 0.758 \n",
3876 "\n",
3877 " 6 \\\n",
3878 "_id 0GRplBEB2FWCKutwMmS6nY \n",
3879 "acousticness 0.00327 \n",
3880 "album {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti... \n",
3881 "album_id 5XfJmldgWzrc1AIdbBaVZn \n",
3882 "analysis_url https://api.spotify.com/v1/audio-analysis/0GRp... \n",
3883 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3884 "artist_name The Beatles \n",
3885 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3886 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3887 "complexity 0.334303 \n",
3888 "ctitle ticket to ride \n",
3889 "danceability 0.39 \n",
3890 "disc_number 1 \n",
3891 "duration_ms 146240 \n",
3892 "energy 0.779 \n",
3893 "explicit False \n",
3894 "external_ids {'isrc': 'GBUM71603959'} \n",
3895 "external_urls {'spotify': 'https://open.spotify.com/track/0G... \n",
3896 "gloom 0.35295 \n",
3897 "href https://api.spotify.com/v1/tracks/0GRplBEB2FWC... \n",
3898 "id 0GRplBEB2FWCKutwMmS6nY \n",
3899 "instrumentalness 0 \n",
3900 "key 9 \n",
3901 "liveness 0.366 \n",
3902 "loudness -8.007 \n",
3903 "lyrical_density 1.85312 \n",
3904 "lyrics i think i'm going to be sad i think it's today... \n",
3905 "mode 1 \n",
3906 "name Ticket To Ride - Live / Remastered \n",
3907 "original_lyrics \\n\\n[Verse 1]\\nI think I'm going to be sad\\nI ... \n",
3908 "popularity 44 \n",
3909 "preview_url https://p.scdn.co/mp3-preview/558bb39228550744... \n",
3910 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
3911 "speechiness 0.0423 \n",
3912 "tempo 121.216 \n",
3913 "time_signature 4 \n",
3914 "track_href https://api.spotify.com/v1/tracks/0GRplBEB2FWC... \n",
3915 "track_number 4 \n",
3916 "type audio_features \n",
3917 "uri spotify:track:0GRplBEB2FWCKutwMmS6nY \n",
3918 "valence 0.405 \n",
3919 "\n",
3920 " 7 \\\n",
3921 "_id 1eVymk74iroqhsZxm0Vy3g \n",
3922 "acousticness 0.00865 \n",
3923 "album {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti... \n",
3924 "album_id 5XfJmldgWzrc1AIdbBaVZn \n",
3925 "analysis_url https://api.spotify.com/v1/audio-analysis/1eVy... \n",
3926 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3927 "artist_name The Beatles \n",
3928 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3929 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3930 "complexity 0.493981 \n",
3931 "ctitle cant buy me love \n",
3932 "danceability 0.2 \n",
3933 "disc_number 1 \n",
3934 "duration_ms 134867 \n",
3935 "energy 0.849 \n",
3936 "explicit False \n",
3937 "external_ids {'isrc': 'GBUM71603951'} \n",
3938 "external_urls {'spotify': 'https://open.spotify.com/track/1e... \n",
3939 "gloom 0.242494 \n",
3940 "href https://api.spotify.com/v1/tracks/1eVymk74iroq... \n",
3941 "id 1eVymk74iroqhsZxm0Vy3g \n",
3942 "instrumentalness 0 \n",
3943 "key 5 \n",
3944 "liveness 0.894 \n",
3945 "loudness -7.606 \n",
3946 "lyrical_density 1.47553 \n",
3947 "lyrics can't buy me love, love can't buy me love i'll... \n",
3948 "mode 1 \n",
3949 "name Can't Buy Me Love - Live / Remastered \n",
3950 "original_lyrics \\n\\n[Chorus 1]\\nCan't buy me love, love\\nCan't... \n",
3951 "popularity 44 \n",
3952 "preview_url https://p.scdn.co/mp3-preview/c6b9c820e62868db... \n",
3953 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
3954 "speechiness 0.0571 \n",
3955 "tempo 173.283 \n",
3956 "time_signature 4 \n",
3957 "track_href https://api.spotify.com/v1/tracks/1eVymk74iroq... \n",
3958 "track_number 5 \n",
3959 "type audio_features \n",
3960 "uri spotify:track:1eVymk74iroqhsZxm0Vy3g \n",
3961 "valence 0.669 \n",
3962 "\n",
3963 " 8 \\\n",
3964 "_id 2p5a9gu6NECVSvBtGSU1vm \n",
3965 "acousticness 0.0836 \n",
3966 "album {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti... \n",
3967 "album_id 5XfJmldgWzrc1AIdbBaVZn \n",
3968 "analysis_url https://api.spotify.com/v1/audio-analysis/2p5a... \n",
3969 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
3970 "artist_name The Beatles \n",
3971 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
3972 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
3973 "complexity 0.24995 \n",
3974 "ctitle things we said today \n",
3975 "danceability 0.307 \n",
3976 "disc_number 1 \n",
3977 "duration_ms 138733 \n",
3978 "energy 0.637 \n",
3979 "explicit False \n",
3980 "external_ids {'isrc': 'GBUM71603958'} \n",
3981 "external_urls {'spotify': 'https://open.spotify.com/track/2p... \n",
3982 "gloom 0.307075 \n",
3983 "href https://api.spotify.com/v1/tracks/2p5a9gu6NECV... \n",
3984 "id 2p5a9gu6NECVSvBtGSU1vm \n",
3985 "instrumentalness 0 \n",
3986 "key 5 \n",
3987 "liveness 0.756 \n",
3988 "loudness -8.35 \n",
3989 "lyrical_density 1.29746 \n",
3990 "lyrics you say you will love me if i have to go you'l... \n",
3991 "mode 1 \n",
3992 "name Things We Said Today - Live / Remastered \n",
3993 "original_lyrics \\n\\n[Verse 1]\\nYou say you will love me\\nIf I ... \n",
3994 "popularity 43 \n",
3995 "preview_url https://p.scdn.co/mp3-preview/7b71156485b9e3e1... \n",
3996 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
3997 "speechiness 0.0392 \n",
3998 "tempo 146.636 \n",
3999 "time_signature 4 \n",
4000 "track_href https://api.spotify.com/v1/tracks/2p5a9gu6NECV... \n",
4001 "track_number 6 \n",
4002 "type audio_features \n",
4003 "uri spotify:track:2p5a9gu6NECVSvBtGSU1vm \n",
4004 "valence 0.395 \n",
4005 "\n",
4006 " 9 \\\n",
4007 "_id 1HyLh5cctOnP186CBi8bhm \n",
4008 "acousticness 0.00242 \n",
4009 "album {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti... \n",
4010 "album_id 5XfJmldgWzrc1AIdbBaVZn \n",
4011 "analysis_url https://api.spotify.com/v1/audio-analysis/1HyL... \n",
4012 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4013 "artist_name The Beatles \n",
4014 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4015 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4016 "complexity 0.467134 \n",
4017 "ctitle roll over beethoven \n",
4018 "danceability 0.204 \n",
4019 "disc_number 1 \n",
4020 "duration_ms 134013 \n",
4021 "energy 0.808 \n",
4022 "explicit False \n",
4023 "external_ids {'isrc': 'GBUM71603955'} \n",
4024 "external_urls {'spotify': 'https://open.spotify.com/track/1H... \n",
4025 "gloom 0.22049 \n",
4026 "href https://api.spotify.com/v1/tracks/1HyLh5cctOnP... \n",
4027 "id 1HyLh5cctOnP186CBi8bhm \n",
4028 "instrumentalness 0 \n",
4029 "key 2 \n",
4030 "liveness 0.634 \n",
4031 "loudness -7.948 \n",
4032 "lyrical_density 1.7461 \n",
4033 "lyrics i'm gonna write a little letter gonna mail it ... \n",
4034 "mode 1 \n",
4035 "name Roll Over Beethoven - Live / Remastered \n",
4036 "original_lyrics \\n\\nI'm gonna write a little letter\\nGonna mai... \n",
4037 "popularity 43 \n",
4038 "preview_url https://p.scdn.co/mp3-preview/318950f70347c556... \n",
4039 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
4040 "speechiness 0.0398 \n",
4041 "tempo 179.24 \n",
4042 "time_signature 3 \n",
4043 "track_href https://api.spotify.com/v1/tracks/1HyLh5cctOnP... \n",
4044 "track_number 7 \n",
4045 "type audio_features \n",
4046 "uri spotify:track:1HyLh5cctOnP186CBi8bhm \n",
4047 "valence 0.726 \n",
4048 "\n",
4049 " ... \\\n",
4050 "_id ... \n",
4051 "acousticness ... \n",
4052 "album ... \n",
4053 "album_id ... \n",
4054 "analysis_url ... \n",
4055 "artist_id ... \n",
4056 "artist_name ... \n",
4057 "artists ... \n",
4058 "available_markets ... \n",
4059 "complexity ... \n",
4060 "ctitle ... \n",
4061 "danceability ... \n",
4062 "disc_number ... \n",
4063 "duration_ms ... \n",
4064 "energy ... \n",
4065 "explicit ... \n",
4066 "external_ids ... \n",
4067 "external_urls ... \n",
4068 "gloom ... \n",
4069 "href ... \n",
4070 "id ... \n",
4071 "instrumentalness ... \n",
4072 "key ... \n",
4073 "liveness ... \n",
4074 "loudness ... \n",
4075 "lyrical_density ... \n",
4076 "lyrics ... \n",
4077 "mode ... \n",
4078 "name ... \n",
4079 "original_lyrics ... \n",
4080 "popularity ... \n",
4081 "preview_url ... \n",
4082 "sentiment ... \n",
4083 "speechiness ... \n",
4084 "tempo ... \n",
4085 "time_signature ... \n",
4086 "track_href ... \n",
4087 "track_number ... \n",
4088 "type ... \n",
4089 "uri ... \n",
4090 "valence ... \n",
4091 "\n",
4092 " 219 \\\n",
4093 "_id 43feVCF6QfqIt9LnLs9BAH \n",
4094 "acousticness 0.607 \n",
4095 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4096 "album_id 7gDXyW16byCQOgK965BRzn \n",
4097 "analysis_url https://api.spotify.com/v1/audio-analysis/43fe... \n",
4098 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4099 "artist_name The Beatles \n",
4100 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4101 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4102 "complexity NaN \n",
4103 "ctitle boys \n",
4104 "danceability 0.402 \n",
4105 "disc_number 1 \n",
4106 "duration_ms 146440 \n",
4107 "energy 0.86 \n",
4108 "explicit False \n",
4109 "external_ids {'isrc': 'GBAYE0601414'} \n",
4110 "external_urls {'spotify': 'https://open.spotify.com/track/43... \n",
4111 "gloom NaN \n",
4112 "href https://api.spotify.com/v1/tracks/43feVCF6QfqI... \n",
4113 "id 43feVCF6QfqIt9LnLs9BAH \n",
4114 "instrumentalness 0 \n",
4115 "key 4 \n",
4116 "liveness 0.736 \n",
4117 "loudness -10.31 \n",
4118 "lyrical_density 0.901393 \n",
4119 "lyrics i been told when a boy kiss a girl take a trip... \n",
4120 "mode 1 \n",
4121 "name Boys - Remastered 2009 \n",
4122 "original_lyrics \\n\\n[Verse 1]\\nI been told when a boy kiss a g... \n",
4123 "popularity 42 \n",
4124 "preview_url https://p.scdn.co/mp3-preview/c84bcc2dd65c3d9b... \n",
4125 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
4126 "speechiness 0.0504 \n",
4127 "tempo 142.445 \n",
4128 "time_signature 4 \n",
4129 "track_href https://api.spotify.com/v1/tracks/43feVCF6QfqI... \n",
4130 "track_number 5 \n",
4131 "type audio_features \n",
4132 "uri spotify:track:43feVCF6QfqIt9LnLs9BAH \n",
4133 "valence 0.825 \n",
4134 "\n",
4135 " 220 \\\n",
4136 "_id 3NwEPV9MDr1z3KcHiAuz9d \n",
4137 "acousticness 0.767 \n",
4138 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4139 "album_id 7gDXyW16byCQOgK965BRzn \n",
4140 "analysis_url https://api.spotify.com/v1/audio-analysis/3NwE... \n",
4141 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4142 "artist_name The Beatles \n",
4143 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4144 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4145 "complexity NaN \n",
4146 "ctitle ask me why \n",
4147 "danceability 0.605 \n",
4148 "disc_number 1 \n",
4149 "duration_ms 146533 \n",
4150 "energy 0.394 \n",
4151 "explicit False \n",
4152 "external_ids {'isrc': 'GBAYE0601415'} \n",
4153 "external_urls {'spotify': 'https://open.spotify.com/track/3N... \n",
4154 "gloom NaN \n",
4155 "href https://api.spotify.com/v1/tracks/3NwEPV9MDr1z... \n",
4156 "id 3NwEPV9MDr1z3KcHiAuz9d \n",
4157 "instrumentalness 0 \n",
4158 "key 4 \n",
4159 "liveness 0.0967 \n",
4160 "loudness -11.33 \n",
4161 "lyrical_density 1.01001 \n",
4162 "lyrics i love you, because you tell me things i want ... \n",
4163 "mode 1 \n",
4164 "name Ask Me Why - Remastered 2009 \n",
4165 "original_lyrics \\n\\n[Verse 1]\\nI love you, because you tell me... \n",
4166 "popularity 41 \n",
4167 "preview_url https://p.scdn.co/mp3-preview/f42256fa5367c68f... \n",
4168 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
4169 "speechiness 0.0378 \n",
4170 "tempo 133.942 \n",
4171 "time_signature 4 \n",
4172 "track_href https://api.spotify.com/v1/tracks/3NwEPV9MDr1z... \n",
4173 "track_number 6 \n",
4174 "type audio_features \n",
4175 "uri spotify:track:3NwEPV9MDr1z3KcHiAuz9d \n",
4176 "valence 0.606 \n",
4177 "\n",
4178 " 221 \\\n",
4179 "_id 2Iccm3cKBQHWt5yk0yX9nh \n",
4180 "acousticness 0.334 \n",
4181 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4182 "album_id 7gDXyW16byCQOgK965BRzn \n",
4183 "analysis_url https://api.spotify.com/v1/audio-analysis/2Icc... \n",
4184 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4185 "artist_name The Beatles \n",
4186 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4187 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4188 "complexity NaN \n",
4189 "ctitle please please me \n",
4190 "danceability 0.527 \n",
4191 "disc_number 1 \n",
4192 "duration_ms 120853 \n",
4193 "energy 0.48 \n",
4194 "explicit False \n",
4195 "external_ids {'isrc': 'GBAYE0601416'} \n",
4196 "external_urls {'spotify': 'https://open.spotify.com/track/2I... \n",
4197 "gloom NaN \n",
4198 "href https://api.spotify.com/v1/tracks/2Iccm3cKBQHW... \n",
4199 "id 2Iccm3cKBQHWt5yk0yX9nh \n",
4200 "instrumentalness 0 \n",
4201 "key 4 \n",
4202 "liveness 0.0702 \n",
4203 "loudness -9.61 \n",
4204 "lyrical_density 2.19275 \n",
4205 "lyrics (lennon/mccartney) last night i said these wor... \n",
4206 "mode 1 \n",
4207 "name Please Please Me - Remastered 2009 \n",
4208 "original_lyrics \\n\\n(Lennon/McCartney)\\n\\nLast night I said th... \n",
4209 "popularity 48 \n",
4210 "preview_url https://p.scdn.co/mp3-preview/c7974d03d8cd26de... \n",
4211 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
4212 "speechiness 0.028 \n",
4213 "tempo 139.388 \n",
4214 "time_signature 4 \n",
4215 "track_href https://api.spotify.com/v1/tracks/2Iccm3cKBQHW... \n",
4216 "track_number 7 \n",
4217 "type audio_features \n",
4218 "uri spotify:track:2Iccm3cKBQHWt5yk0yX9nh \n",
4219 "valence 0.708 \n",
4220 "\n",
4221 " 222 \\\n",
4222 "_id 2OLMjGIhCNI6j34ysPscbp \n",
4223 "acousticness 0.386 \n",
4224 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4225 "album_id 7gDXyW16byCQOgK965BRzn \n",
4226 "analysis_url https://api.spotify.com/v1/audio-analysis/2OLM... \n",
4227 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4228 "artist_name The Beatles \n",
4229 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4230 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4231 "complexity NaN \n",
4232 "ctitle love me do \n",
4233 "danceability 0.52 \n",
4234 "disc_number 1 \n",
4235 "duration_ms 141693 \n",
4236 "energy 0.829 \n",
4237 "explicit False \n",
4238 "external_ids {'isrc': 'GBAYE0601417'} \n",
4239 "external_urls {'spotify': 'https://open.spotify.com/track/2O... \n",
4240 "gloom NaN \n",
4241 "href https://api.spotify.com/v1/tracks/2OLMjGIhCNI6... \n",
4242 "id 2OLMjGIhCNI6j34ysPscbp \n",
4243 "instrumentalness 6.2e-05 \n",
4244 "key 0 \n",
4245 "liveness 0.227 \n",
4246 "loudness -6.228 \n",
4247 "lyrical_density 0.783384 \n",
4248 "lyrics love, love me do you know i love you i'll alwa... \n",
4249 "mode 1 \n",
4250 "name Love Me Do - Remastered 2009 \n",
4251 "original_lyrics \\n\\nLove, love me do\\nYou know I love you\\nI'l... \n",
4252 "popularity 55 \n",
4253 "preview_url https://p.scdn.co/mp3-preview/c0c7944dcb9d2457... \n",
4254 "sentiment {'label': 'pos', 'probability': {'neutral': 0.... \n",
4255 "speechiness 0.0806 \n",
4256 "tempo 147.997 \n",
4257 "time_signature 4 \n",
4258 "track_href https://api.spotify.com/v1/tracks/2OLMjGIhCNI6... \n",
4259 "track_number 8 \n",
4260 "type audio_features \n",
4261 "uri spotify:track:2OLMjGIhCNI6j34ysPscbp \n",
4262 "valence 0.765 \n",
4263 "\n",
4264 " 223 \\\n",
4265 "_id 01n20rdBC5czKAhxmGREkr \n",
4266 "acousticness 0.389 \n",
4267 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4268 "album_id 7gDXyW16byCQOgK965BRzn \n",
4269 "analysis_url https://api.spotify.com/v1/audio-analysis/01n2... \n",
4270 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4271 "artist_name The Beatles \n",
4272 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4273 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4274 "complexity NaN \n",
4275 "ctitle ps i love you \n",
4276 "danceability 0.635 \n",
4277 "disc_number 1 \n",
4278 "duration_ms 124360 \n",
4279 "energy 0.656 \n",
4280 "explicit False \n",
4281 "external_ids {'isrc': 'GBAYE0601418'} \n",
4282 "external_urls {'spotify': 'https://open.spotify.com/track/01... \n",
4283 "gloom NaN \n",
4284 "href https://api.spotify.com/v1/tracks/01n20rdBC5cz... \n",
4285 "id 01n20rdBC5czKAhxmGREkr \n",
4286 "instrumentalness 0.00127 \n",
4287 "key 2 \n",
4288 "liveness 0.0828 \n",
4289 "loudness -8.5 \n",
4290 "lyrical_density 1.2303 \n",
4291 "lyrics as i write this letter send my love to you rem... \n",
4292 "mode 1 \n",
4293 "name P.S. I Love You - Remastered 2009 \n",
4294 "original_lyrics \\n\\nAs I write this letter\\nSend my love to yo... \n",
4295 "popularity 43 \n",
4296 "preview_url https://p.scdn.co/mp3-preview/5ef1f2ba07489648... \n",
4297 "sentiment {'label': 'pos', 'probability': {'neutral': 0.... \n",
4298 "speechiness 0.0291 \n",
4299 "tempo 134.435 \n",
4300 "time_signature 4 \n",
4301 "track_href https://api.spotify.com/v1/tracks/01n20rdBC5cz... \n",
4302 "track_number 9 \n",
4303 "type audio_features \n",
4304 "uri spotify:track:01n20rdBC5czKAhxmGREkr \n",
4305 "valence 0.78 \n",
4306 "\n",
4307 " 224 \\\n",
4308 "_id 5gnrZoSS7nbDYtHp32RFiI \n",
4309 "acousticness 0.778 \n",
4310 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4311 "album_id 7gDXyW16byCQOgK965BRzn \n",
4312 "analysis_url https://api.spotify.com/v1/audio-analysis/5gnr... \n",
4313 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4314 "artist_name The Beatles \n",
4315 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4316 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4317 "complexity NaN \n",
4318 "ctitle baby its you \n",
4319 "danceability 0.608 \n",
4320 "disc_number 1 \n",
4321 "duration_ms 160520 \n",
4322 "energy 0.494 \n",
4323 "explicit False \n",
4324 "external_ids {'isrc': 'GBAYE0601419'} \n",
4325 "external_urls {'spotify': 'https://open.spotify.com/track/5g... \n",
4326 "gloom NaN \n",
4327 "href https://api.spotify.com/v1/tracks/5gnrZoSS7nbD... \n",
4328 "id 5gnrZoSS7nbDYtHp32RFiI \n",
4329 "instrumentalness 0 \n",
4330 "key 4 \n",
4331 "liveness 0.0926 \n",
4332 "loudness -12.211 \n",
4333 "lyrical_density 1.32694 \n",
4334 "lyrics sha la la la la la la la sha la la la la la la... \n",
4335 "mode 0 \n",
4336 "name Baby It's You - Remastered 2009 \n",
4337 "original_lyrics \\n\\n[Intro-The Beatles]\\nSha la la la la la la... \n",
4338 "popularity 44 \n",
4339 "preview_url https://p.scdn.co/mp3-preview/d7eeb1f68c39066d... \n",
4340 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
4341 "speechiness 0.0345 \n",
4342 "tempo 112.421 \n",
4343 "time_signature 4 \n",
4344 "track_href https://api.spotify.com/v1/tracks/5gnrZoSS7nbD... \n",
4345 "track_number 10 \n",
4346 "type audio_features \n",
4347 "uri spotify:track:5gnrZoSS7nbDYtHp32RFiI \n",
4348 "valence 0.889 \n",
4349 "\n",
4350 " 225 \\\n",
4351 "_id 5FBxWhG0nbBAF6lWgJFklM \n",
4352 "acousticness 0.608 \n",
4353 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4354 "album_id 7gDXyW16byCQOgK965BRzn \n",
4355 "analysis_url https://api.spotify.com/v1/audio-analysis/5FBx... \n",
4356 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4357 "artist_name The Beatles \n",
4358 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4359 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4360 "complexity NaN \n",
4361 "ctitle do you want to know a secret \n",
4362 "danceability 0.673 \n",
4363 "disc_number 1 \n",
4364 "duration_ms 117013 \n",
4365 "energy 0.349 \n",
4366 "explicit False \n",
4367 "external_ids {'isrc': 'GBAYE0601420'} \n",
4368 "external_urls {'spotify': 'https://open.spotify.com/track/5F... \n",
4369 "gloom NaN \n",
4370 "href https://api.spotify.com/v1/tracks/5FBxWhG0nbBA... \n",
4371 "id 5FBxWhG0nbBAF6lWgJFklM \n",
4372 "instrumentalness 0 \n",
4373 "key 4 \n",
4374 "liveness 0.38 \n",
4375 "loudness -12.414 \n",
4376 "lyrical_density 1.1879 \n",
4377 "lyrics you'll never know how much i really love you y... \n",
4378 "mode 1 \n",
4379 "name Do You Want To Know A Secret - Remastered 2009 \n",
4380 "original_lyrics \\n\\n[Intro]\\nYou'll never know how much I real... \n",
4381 "popularity 48 \n",
4382 "preview_url https://p.scdn.co/mp3-preview/5bd705943290818c... \n",
4383 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
4384 "speechiness 0.0368 \n",
4385 "tempo 124.451 \n",
4386 "time_signature 4 \n",
4387 "track_href https://api.spotify.com/v1/tracks/5FBxWhG0nbBA... \n",
4388 "track_number 11 \n",
4389 "type audio_features \n",
4390 "uri spotify:track:5FBxWhG0nbBAF6lWgJFklM \n",
4391 "valence 0.636 \n",
4392 "\n",
4393 " 226 \\\n",
4394 "_id 6tEwCsVtZ5tI8uHNJSHQ3b \n",
4395 "acousticness 0.698 \n",
4396 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4397 "album_id 7gDXyW16byCQOgK965BRzn \n",
4398 "analysis_url https://api.spotify.com/v1/audio-analysis/6tEw... \n",
4399 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4400 "artist_name The Beatles \n",
4401 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4402 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4403 "complexity NaN \n",
4404 "ctitle a taste of honey \n",
4405 "danceability 0.42 \n",
4406 "disc_number 1 \n",
4407 "duration_ms 123480 \n",
4408 "energy 0.372 \n",
4409 "explicit False \n",
4410 "external_ids {'isrc': 'GBAYE0601421'} \n",
4411 "external_urls {'spotify': 'https://open.spotify.com/track/6t... \n",
4412 "gloom NaN \n",
4413 "href https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI... \n",
4414 "id 6tEwCsVtZ5tI8uHNJSHQ3b \n",
4415 "instrumentalness 0 \n",
4416 "key 1 \n",
4417 "liveness 0.104 \n",
4418 "loudness -11.416 \n",
4419 "lyrical_density 0.74506 \n",
4420 "lyrics a taste of honey! tasting much sweeter than wi... \n",
4421 "mode 0 \n",
4422 "name A Taste Of Honey - Remastered 2009 \n",
4423 "original_lyrics \\n\\n[Intro]\\nA taste of honey! Tasting much sw... \n",
4424 "popularity 40 \n",
4425 "preview_url https://p.scdn.co/mp3-preview/dd94439cdf6e7668... \n",
4426 "sentiment {'label': 'pos', 'probability': {'neutral': 0.... \n",
4427 "speechiness 0.0327 \n",
4428 "tempo 101.408 \n",
4429 "time_signature 3 \n",
4430 "track_href https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI... \n",
4431 "track_number 12 \n",
4432 "type audio_features \n",
4433 "uri spotify:track:6tEwCsVtZ5tI8uHNJSHQ3b \n",
4434 "valence 0.378 \n",
4435 "\n",
4436 " 227 \\\n",
4437 "_id 50jq8RgbDfmNNd0NiRnl4L \n",
4438 "acousticness 0.629 \n",
4439 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4440 "album_id 7gDXyW16byCQOgK965BRzn \n",
4441 "analysis_url https://api.spotify.com/v1/audio-analysis/50jq... \n",
4442 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4443 "artist_name The Beatles \n",
4444 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4445 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4446 "complexity NaN \n",
4447 "ctitle theres a place \n",
4448 "danceability 0.455 \n",
4449 "disc_number 1 \n",
4450 "duration_ms 110493 \n",
4451 "energy 0.582 \n",
4452 "explicit False \n",
4453 "external_ids {'isrc': 'GBAYE0601422'} \n",
4454 "external_urls {'spotify': 'https://open.spotify.com/track/50... \n",
4455 "gloom NaN \n",
4456 "href https://api.spotify.com/v1/tracks/50jq8RgbDfmN... \n",
4457 "id 50jq8RgbDfmNNd0NiRnl4L \n",
4458 "instrumentalness 4.22e-06 \n",
4459 "key 4 \n",
4460 "liveness 0.172 \n",
4461 "loudness -10.009 \n",
4462 "lyrical_density 0.895984 \n",
4463 "lyrics there is a place where i can go when i feel lo... \n",
4464 "mode 1 \n",
4465 "name There's A Place - Remastered 2009 \n",
4466 "original_lyrics \\n\\n[Verse 1]\\nThere is a place\\nWhere I can g... \n",
4467 "popularity 43 \n",
4468 "preview_url https://p.scdn.co/mp3-preview/5260a1d4f12c23ac... \n",
4469 "sentiment {'label': 'neg', 'probability': {'neutral': 0.... \n",
4470 "speechiness 0.0292 \n",
4471 "tempo 140.928 \n",
4472 "time_signature 4 \n",
4473 "track_href https://api.spotify.com/v1/tracks/50jq8RgbDfmN... \n",
4474 "track_number 13 \n",
4475 "type audio_features \n",
4476 "uri spotify:track:50jq8RgbDfmNNd0NiRnl4L \n",
4477 "valence 0.928 \n",
4478 "\n",
4479 " 228 \n",
4480 "_id 4Z1fbYp0HuxLBje4MOZcSD \n",
4481 "acousticness 0.641 \n",
4482 "album {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti... \n",
4483 "album_id 7gDXyW16byCQOgK965BRzn \n",
4484 "analysis_url https://api.spotify.com/v1/audio-analysis/4Z1f... \n",
4485 "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n",
4486 "artist_name The Beatles \n",
4487 "artists [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art... \n",
4488 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
4489 "complexity NaN \n",
4490 "ctitle twist and shout \n",
4491 "danceability 0.482 \n",
4492 "disc_number 1 \n",
4493 "duration_ms 155227 \n",
4494 "energy 0.849 \n",
4495 "explicit False \n",
4496 "external_ids {'isrc': 'GBAYE0601423'} \n",
4497 "external_urls {'spotify': 'https://open.spotify.com/track/4Z... \n",
4498 "gloom NaN \n",
4499 "href https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL... \n",
4500 "id 4Z1fbYp0HuxLBje4MOZcSD \n",
4501 "instrumentalness 7.74e-06 \n",
4502 "key 2 \n",
4503 "liveness 0.0414 \n",
4504 "loudness -9.198 \n",
4505 "lyrical_density 1.70075 \n",
4506 "lyrics well shake it up baby now (shake it up baby) t... \n",
4507 "mode 1 \n",
4508 "name Twist And Shout - Remastered 2009 \n",
4509 "original_lyrics \\n\\n[Verse 1]\\nWell shake it up baby now (shak... \n",
4510 "popularity 64 \n",
4511 "preview_url https://p.scdn.co/mp3-preview/b7e3bc96b46e4dcc... \n",
4512 "sentiment {'label': 'pos', 'probability': {'neutral': 0.... \n",
4513 "speechiness 0.0452 \n",
4514 "tempo 124.631 \n",
4515 "time_signature 4 \n",
4516 "track_href https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL... \n",
4517 "track_number 14 \n",
4518 "type audio_features \n",
4519 "uri spotify:track:4Z1fbYp0HuxLBje4MOZcSD \n",
4520 "valence 0.942 \n",
4521 "\n",
4522 "[41 rows x 229 columns]"
4523 ]
4524 },
4525 "execution_count": 37,
4526 "metadata": {},
4527 "output_type": "execute_result"
4528 }
4529 ],
4530 "source": [
4531 "beatles_tracks = pd.DataFrame(list(tracks.find({'artist_id': beatles_id})))\n",
4532 "beatles_tracks.T"
4533 ]
4534 },
4535 {
4536 "cell_type": "code",
4537 "execution_count": 33,
4538 "metadata": {
4539 "scrolled": true
4540 },
4541 "outputs": [
4542 {
4543 "data": {
4544 "text/html": [
4545 "<div>\n",
4546 "<table border=\"1\" class=\"dataframe\">\n",
4547 " <thead>\n",
4548 " <tr style=\"text-align: right;\">\n",
4549 " <th></th>\n",
4550 " <th>0</th>\n",
4551 " <th>1</th>\n",
4552 " <th>2</th>\n",
4553 " <th>3</th>\n",
4554 " <th>4</th>\n",
4555 " <th>5</th>\n",
4556 " <th>6</th>\n",
4557 " <th>7</th>\n",
4558 " <th>8</th>\n",
4559 " <th>9</th>\n",
4560 " <th>...</th>\n",
4561 " <th>265</th>\n",
4562 " <th>266</th>\n",
4563 " <th>267</th>\n",
4564 " <th>268</th>\n",
4565 " <th>269</th>\n",
4566 " <th>270</th>\n",
4567 " <th>271</th>\n",
4568 " <th>272</th>\n",
4569 " <th>273</th>\n",
4570 " <th>274</th>\n",
4571 " </tr>\n",
4572 " </thead>\n",
4573 " <tbody>\n",
4574 " <tr>\n",
4575 " <th>_id</th>\n",
4576 " <td>3u06WsJ1KtvEqmmmZqy76J</td>\n",
4577 " <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
4578 " <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
4579 " <td>1jgefM2ZP7RnPVShhy1eUM</td>\n",
4580 " <td>4HKaTAMIXT88muGU1JN9lI</td>\n",
4581 " <td>7FagS2T3y5XwDpYvyHfvmc</td>\n",
4582 " <td>0B5CEdw4WBs91yn444ZP27</td>\n",
4583 " <td>19LYBNYOMwmDKXvhwq5Ggv</td>\n",
4584 " <td>281J4XFm5DLfVt1nKNBsPn</td>\n",
4585 " <td>56ljxn1tdisThe4xcVe4px</td>\n",
4586 " <td>...</td>\n",
4587 " <td>2BxO4VLPjzrApKTHZjpz9G</td>\n",
4588 " <td>6L7tmFIPKy98Js8ytCB1pT</td>\n",
4589 " <td>2gB58ki3GMqyNsdsPpDECH</td>\n",
4590 " <td>6C0au9ut1avz4zhryYHudG</td>\n",
4591 " <td>1NvBOki5VmSSVelycoMo96</td>\n",
4592 " <td>31KuT5lcyp6NlDBjp3EVTp</td>\n",
4593 " <td>3u0cZhyEPYIe9qDKPEeS4g</td>\n",
4594 " <td>6gVXeA52q3FbLANm6gW0Ma</td>\n",
4595 " <td>2rNBqTve7unpL01DuTyX3P</td>\n",
4596 " <td>3Ey71ndsJ2GDMgT0hVJlPs</td>\n",
4597 " </tr>\n",
4598 " <tr>\n",
4599 " <th>acousticness</th>\n",
4600 " <td>0.107</td>\n",
4601 " <td>0.536</td>\n",
4602 " <td>0.00352</td>\n",
4603 " <td>0.148</td>\n",
4604 " <td>0.0328</td>\n",
4605 " <td>0.000552</td>\n",
4606 " <td>0.347</td>\n",
4607 " <td>0.109</td>\n",
4608 " <td>0.0391</td>\n",
4609 " <td>0.024</td>\n",
4610 " <td>...</td>\n",
4611 " <td>0.181</td>\n",
4612 " <td>0.0207</td>\n",
4613 " <td>0.00742</td>\n",
4614 " <td>0.0184</td>\n",
4615 " <td>0.002</td>\n",
4616 " <td>0.000283</td>\n",
4617 " <td>0.395</td>\n",
4618 " <td>0.147</td>\n",
4619 " <td>0.474</td>\n",
4620 " <td>0.173</td>\n",
4621 " </tr>\n",
4622 " <tr>\n",
4623 " <th>album</th>\n",
4624 " <td>{'id': '6FjXxl9VLURGuubdXUn2J3', 'type': 'albu...</td>\n",
4625 " <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
4626 " <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
4627 " <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
4628 " <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
4629 " <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
4630 " <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
4631 " <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
4632 " <td>{'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu...</td>\n",
4633 " <td>{'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu...</td>\n",
4634 " <td>...</td>\n",
4635 " <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
4636 " <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
4637 " <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
4638 " <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
4639 " <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
4640 " <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
4641 " <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
4642 " <td>{'id': '62ZT16LY1phGM0O8x5qW1z', 'type': 'albu...</td>\n",
4643 " <td>{'id': '4g9Jfls8z2nbQxj5PiXkiy', 'type': 'albu...</td>\n",
4644 " <td>{'id': '4fhWcu56Bbh5wALuTouFVW', 'type': 'albu...</td>\n",
4645 " </tr>\n",
4646 " <tr>\n",
4647 " <th>album_id</th>\n",
4648 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
4649 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
4650 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
4651 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
4652 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
4653 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
4654 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
4655 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
4656 " <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
4657 " <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
4658 " <td>...</td>\n",
4659 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
4660 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
4661 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
4662 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
4663 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
4664 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
4665 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
4666 " <td>62ZT16LY1phGM0O8x5qW1z</td>\n",
4667 " <td>4g9Jfls8z2nbQxj5PiXkiy</td>\n",
4668 " <td>4fhWcu56Bbh5wALuTouFVW</td>\n",
4669 " </tr>\n",
4670 " <tr>\n",
4671 " <th>analysis_url</th>\n",
4672 " <td>https://api.spotify.com/v1/audio-analysis/3u06...</td>\n",
4673 " <td>https://api.spotify.com/v1/audio-analysis/1lLK...</td>\n",
4674 " <td>https://api.spotify.com/v1/audio-analysis/74tl...</td>\n",
4675 " <td>https://api.spotify.com/v1/audio-analysis/1jge...</td>\n",
4676 " <td>https://api.spotify.com/v1/audio-analysis/4HKa...</td>\n",
4677 " <td>https://api.spotify.com/v1/audio-analysis/7Fag...</td>\n",
4678 " <td>https://api.spotify.com/v1/audio-analysis/0B5C...</td>\n",
4679 " <td>https://api.spotify.com/v1/audio-analysis/19LY...</td>\n",
4680 " <td>https://api.spotify.com/v1/audio-analysis/281J...</td>\n",
4681 " <td>https://api.spotify.com/v1/audio-analysis/56lj...</td>\n",
4682 " <td>...</td>\n",
4683 " <td>https://api.spotify.com/v1/audio-analysis/2BxO...</td>\n",
4684 " <td>https://api.spotify.com/v1/audio-analysis/6L7t...</td>\n",
4685 " <td>https://api.spotify.com/v1/audio-analysis/2gB5...</td>\n",
4686 " <td>https://api.spotify.com/v1/audio-analysis/6C0a...</td>\n",
4687 " <td>https://api.spotify.com/v1/audio-analysis/1NvB...</td>\n",
4688 " <td>https://api.spotify.com/v1/audio-analysis/31Ku...</td>\n",
4689 " <td>https://api.spotify.com/v1/audio-analysis/3u0c...</td>\n",
4690 " <td>https://api.spotify.com/v1/audio-analysis/6gVX...</td>\n",
4691 " <td>https://api.spotify.com/v1/audio-analysis/2rNB...</td>\n",
4692 " <td>https://api.spotify.com/v1/audio-analysis/3Ey7...</td>\n",
4693 " </tr>\n",
4694 " <tr>\n",
4695 " <th>artist_id</th>\n",
4696 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4697 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4698 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4699 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4700 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4701 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4702 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4703 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4704 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4705 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4706 " <td>...</td>\n",
4707 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4708 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4709 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4710 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4711 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4712 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4713 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4714 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4715 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4716 " <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
4717 " </tr>\n",
4718 " <tr>\n",
4719 " <th>artist_name</th>\n",
4720 " <td>The Rolling Stones</td>\n",
4721 " <td>The Rolling Stones</td>\n",
4722 " <td>The Rolling Stones</td>\n",
4723 " <td>The Rolling Stones</td>\n",
4724 " <td>The Rolling Stones</td>\n",
4725 " <td>The Rolling Stones</td>\n",
4726 " <td>The Rolling Stones</td>\n",
4727 " <td>The Rolling Stones</td>\n",
4728 " <td>The Rolling Stones</td>\n",
4729 " <td>The Rolling Stones</td>\n",
4730 " <td>...</td>\n",
4731 " <td>The Rolling Stones</td>\n",
4732 " <td>The Rolling Stones</td>\n",
4733 " <td>The Rolling Stones</td>\n",
4734 " <td>The Rolling Stones</td>\n",
4735 " <td>The Rolling Stones</td>\n",
4736 " <td>The Rolling Stones</td>\n",
4737 " <td>The Rolling Stones</td>\n",
4738 " <td>The Rolling Stones</td>\n",
4739 " <td>The Rolling Stones</td>\n",
4740 " <td>The Rolling Stones</td>\n",
4741 " </tr>\n",
4742 " <tr>\n",
4743 " <th>artists</th>\n",
4744 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4745 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4746 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4747 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4748 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4749 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4750 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4751 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4752 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4753 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4754 " <td>...</td>\n",
4755 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4756 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4757 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4758 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4759 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4760 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4761 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4762 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4763 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4764 " <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
4765 " </tr>\n",
4766 " <tr>\n",
4767 " <th>available_markets</th>\n",
4768 " <td>[AD, AR, AT, AU, BG, BO, BR, CL, CO, CR, CY, C...</td>\n",
4769 " <td>[GB]</td>\n",
4770 " <td>[GB]</td>\n",
4771 " <td>[GB]</td>\n",
4772 " <td>[GB]</td>\n",
4773 " <td>[GB]</td>\n",
4774 " <td>[GB]</td>\n",
4775 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4776 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4777 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4778 " <td>...</td>\n",
4779 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4780 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4781 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4782 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4783 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4784 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4785 " <td>[GB]</td>\n",
4786 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4787 " <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
4788 " <td>[AD, AR, AT, AU, BE, BG, BO, CH, CL, CO, CR, C...</td>\n",
4789 " </tr>\n",
4790 " <tr>\n",
4791 " <th>danceability</th>\n",
4792 " <td>0.216</td>\n",
4793 " <td>0.395</td>\n",
4794 " <td>0.367</td>\n",
4795 " <td>0.282</td>\n",
4796 " <td>0.427</td>\n",
4797 " <td>0.318</td>\n",
4798 " <td>0.42</td>\n",
4799 " <td>0.243</td>\n",
4800 " <td>0.303</td>\n",
4801 " <td>0.412</td>\n",
4802 " <td>...</td>\n",
4803 " <td>0.46</td>\n",
4804 " <td>0.44</td>\n",
4805 " <td>0.438</td>\n",
4806 " <td>0.245</td>\n",
4807 " <td>0.124</td>\n",
4808 " <td>0.213</td>\n",
4809 " <td>0.262</td>\n",
4810 " <td>0.486</td>\n",
4811 " <td>0.416</td>\n",
4812 " <td>0.282</td>\n",
4813 " </tr>\n",
4814 " <tr>\n",
4815 " <th>disc_number</th>\n",
4816 " <td>2</td>\n",
4817 " <td>1</td>\n",
4818 " <td>1</td>\n",
4819 " <td>1</td>\n",
4820 " <td>1</td>\n",
4821 " <td>1</td>\n",
4822 " <td>1</td>\n",
4823 " <td>1</td>\n",
4824 " <td>1</td>\n",
4825 " <td>1</td>\n",
4826 " <td>...</td>\n",
4827 " <td>1</td>\n",
4828 " <td>1</td>\n",
4829 " <td>1</td>\n",
4830 " <td>1</td>\n",
4831 " <td>1</td>\n",
4832 " <td>1</td>\n",
4833 " <td>1</td>\n",
4834 " <td>1</td>\n",
4835 " <td>1</td>\n",
4836 " <td>1</td>\n",
4837 " </tr>\n",
4838 " <tr>\n",
4839 " <th>duration_ms</th>\n",
4840 " <td>180280</td>\n",
4841 " <td>305280</td>\n",
4842 " <td>293773</td>\n",
4843 " <td>191787</td>\n",
4844 " <td>409360</td>\n",
4845 " <td>303627</td>\n",
4846 " <td>291240</td>\n",
4847 " <td>246000</td>\n",
4848 " <td>262933</td>\n",
4849 " <td>399867</td>\n",
4850 " <td>...</td>\n",
4851 " <td>135040</td>\n",
4852 " <td>147040</td>\n",
4853 " <td>155600</td>\n",
4854 " <td>164320</td>\n",
4855 " <td>148560</td>\n",
4856 " <td>189600</td>\n",
4857 " <td>291253</td>\n",
4858 " <td>144867</td>\n",
4859 " <td>286680</td>\n",
4860 " <td>929458</td>\n",
4861 " </tr>\n",
4862 " <tr>\n",
4863 " <th>energy</th>\n",
4864 " <td>0.669</td>\n",
4865 " <td>0.733</td>\n",
4866 " <td>0.962</td>\n",
4867 " <td>0.883</td>\n",
4868 " <td>0.944</td>\n",
4869 " <td>0.976</td>\n",
4870 " <td>0.951</td>\n",
4871 " <td>0.978</td>\n",
4872 " <td>0.951</td>\n",
4873 " <td>0.934</td>\n",
4874 " <td>...</td>\n",
4875 " <td>0.976</td>\n",
4876 " <td>0.932</td>\n",
4877 " <td>0.912</td>\n",
4878 " <td>0.964</td>\n",
4879 " <td>0.92</td>\n",
4880 " <td>0.929</td>\n",
4881 " <td>0.835</td>\n",
4882 " <td>0.451</td>\n",
4883 " <td>0.672</td>\n",
4884 " <td>0.898</td>\n",
4885 " </tr>\n",
4886 " <tr>\n",
4887 " <th>explicit</th>\n",
4888 " <td>False</td>\n",
4889 " <td>False</td>\n",
4890 " <td>False</td>\n",
4891 " <td>False</td>\n",
4892 " <td>True</td>\n",
4893 " <td>False</td>\n",
4894 " <td>False</td>\n",
4895 " <td>False</td>\n",
4896 " <td>False</td>\n",
4897 " <td>False</td>\n",
4898 " <td>...</td>\n",
4899 " <td>False</td>\n",
4900 " <td>False</td>\n",
4901 " <td>False</td>\n",
4902 " <td>False</td>\n",
4903 " <td>False</td>\n",
4904 " <td>False</td>\n",
4905 " <td>False</td>\n",
4906 " <td>False</td>\n",
4907 " <td>False</td>\n",
4908 " <td>False</td>\n",
4909 " </tr>\n",
4910 " <tr>\n",
4911 " <th>external_ids</th>\n",
4912 " <td>{'isrc': 'GBUM71109053'}</td>\n",
4913 " <td>{'isrc': 'GBCBR1500394'}</td>\n",
4914 " <td>{'isrc': 'GBCBR1500392'}</td>\n",
4915 " <td>{'isrc': 'GBCBR1500391'}</td>\n",
4916 " <td>{'isrc': 'GBCBR1500396'}</td>\n",
4917 " <td>{'isrc': 'GBCBR1500401'}</td>\n",
4918 " <td>{'isrc': 'GBCBR1500404'}</td>\n",
4919 " <td>{'isrc': 'USA171210012'}</td>\n",
4920 " <td>{'isrc': 'GBUM70802505'}</td>\n",
4921 " <td>{'isrc': 'GBUM70802502'}</td>\n",
4922 " <td>...</td>\n",
4923 " <td>{'isrc': 'USA171210005'}</td>\n",
4924 " <td>{'isrc': 'USA171210006'}</td>\n",
4925 " <td>{'isrc': 'USA171210008'}</td>\n",
4926 " <td>{'isrc': 'USA171210009'}</td>\n",
4927 " <td>{'isrc': 'USA171210010'}</td>\n",
4928 " <td>{'isrc': 'USA171210011'}</td>\n",
4929 " <td>{'isrc': 'GBCBR1500395'}</td>\n",
4930 " <td>{'isrc': 'GBUM70909519'}</td>\n",
4931 " <td>{'isrc': 'GBUM71604631'}</td>\n",
4932 " <td>{'isrc': 'GBCBR1600265'}</td>\n",
4933 " </tr>\n",
4934 " <tr>\n",
4935 " <th>external_urls</th>\n",
4936 " <td>{'spotify': 'https://open.spotify.com/track/3u...</td>\n",
4937 " <td>{'spotify': 'https://open.spotify.com/track/1l...</td>\n",
4938 " <td>{'spotify': 'https://open.spotify.com/track/74...</td>\n",
4939 " <td>{'spotify': 'https://open.spotify.com/track/1j...</td>\n",
4940 " <td>{'spotify': 'https://open.spotify.com/track/4H...</td>\n",
4941 " <td>{'spotify': 'https://open.spotify.com/track/7F...</td>\n",
4942 " <td>{'spotify': 'https://open.spotify.com/track/0B...</td>\n",
4943 " <td>{'spotify': 'https://open.spotify.com/track/19...</td>\n",
4944 " <td>{'spotify': 'https://open.spotify.com/track/28...</td>\n",
4945 " <td>{'spotify': 'https://open.spotify.com/track/56...</td>\n",
4946 " <td>...</td>\n",
4947 " <td>{'spotify': 'https://open.spotify.com/track/2B...</td>\n",
4948 " <td>{'spotify': 'https://open.spotify.com/track/6L...</td>\n",
4949 " <td>{'spotify': 'https://open.spotify.com/track/2g...</td>\n",
4950 " <td>{'spotify': 'https://open.spotify.com/track/6C...</td>\n",
4951 " <td>{'spotify': 'https://open.spotify.com/track/1N...</td>\n",
4952 " <td>{'spotify': 'https://open.spotify.com/track/31...</td>\n",
4953 " <td>{'spotify': 'https://open.spotify.com/track/3u...</td>\n",
4954 " <td>{'spotify': 'https://open.spotify.com/track/6g...</td>\n",
4955 " <td>{'spotify': 'https://open.spotify.com/track/2r...</td>\n",
4956 " <td>{'spotify': 'https://open.spotify.com/track/3E...</td>\n",
4957 " </tr>\n",
4958 " <tr>\n",
4959 " <th>href</th>\n",
4960 " <td>https://api.spotify.com/v1/tracks/3u06WsJ1KtvE...</td>\n",
4961 " <td>https://api.spotify.com/v1/tracks/1lLK53LFXWvP...</td>\n",
4962 " <td>https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...</td>\n",
4963 " <td>https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn...</td>\n",
4964 " <td>https://api.spotify.com/v1/tracks/4HKaTAMIXT88...</td>\n",
4965 " <td>https://api.spotify.com/v1/tracks/7FagS2T3y5Xw...</td>\n",
4966 " <td>https://api.spotify.com/v1/tracks/0B5CEdw4WBs9...</td>\n",
4967 " <td>https://api.spotify.com/v1/tracks/19LYBNYOMwmD...</td>\n",
4968 " <td>https://api.spotify.com/v1/tracks/281J4XFm5DLf...</td>\n",
4969 " <td>https://api.spotify.com/v1/tracks/56ljxn1tdisT...</td>\n",
4970 " <td>...</td>\n",
4971 " <td>https://api.spotify.com/v1/tracks/2BxO4VLPjzrA...</td>\n",
4972 " <td>https://api.spotify.com/v1/tracks/6L7tmFIPKy98...</td>\n",
4973 " <td>https://api.spotify.com/v1/tracks/2gB58ki3GMqy...</td>\n",
4974 " <td>https://api.spotify.com/v1/tracks/6C0au9ut1avz...</td>\n",
4975 " <td>https://api.spotify.com/v1/tracks/1NvBOki5VmSS...</td>\n",
4976 " <td>https://api.spotify.com/v1/tracks/31KuT5lcyp6N...</td>\n",
4977 " <td>https://api.spotify.com/v1/tracks/3u0cZhyEPYIe...</td>\n",
4978 " <td>https://api.spotify.com/v1/tracks/6gVXeA52q3Fb...</td>\n",
4979 " <td>https://api.spotify.com/v1/tracks/2rNBqTve7unp...</td>\n",
4980 " <td>https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD...</td>\n",
4981 " </tr>\n",
4982 " <tr>\n",
4983 " <th>id</th>\n",
4984 " <td>3u06WsJ1KtvEqmmmZqy76J</td>\n",
4985 " <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
4986 " <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
4987 " <td>1jgefM2ZP7RnPVShhy1eUM</td>\n",
4988 " <td>4HKaTAMIXT88muGU1JN9lI</td>\n",
4989 " <td>7FagS2T3y5XwDpYvyHfvmc</td>\n",
4990 " <td>0B5CEdw4WBs91yn444ZP27</td>\n",
4991 " <td>19LYBNYOMwmDKXvhwq5Ggv</td>\n",
4992 " <td>281J4XFm5DLfVt1nKNBsPn</td>\n",
4993 " <td>56ljxn1tdisThe4xcVe4px</td>\n",
4994 " <td>...</td>\n",
4995 " <td>2BxO4VLPjzrApKTHZjpz9G</td>\n",
4996 " <td>6L7tmFIPKy98Js8ytCB1pT</td>\n",
4997 " <td>2gB58ki3GMqyNsdsPpDECH</td>\n",
4998 " <td>6C0au9ut1avz4zhryYHudG</td>\n",
4999 " <td>1NvBOki5VmSSVelycoMo96</td>\n",
5000 " <td>31KuT5lcyp6NlDBjp3EVTp</td>\n",
5001 " <td>3u0cZhyEPYIe9qDKPEeS4g</td>\n",
5002 " <td>6gVXeA52q3FbLANm6gW0Ma</td>\n",
5003 " <td>2rNBqTve7unpL01DuTyX3P</td>\n",
5004 " <td>3Ey71ndsJ2GDMgT0hVJlPs</td>\n",
5005 " </tr>\n",
5006 " <tr>\n",
5007 " <th>instrumentalness</th>\n",
5008 " <td>0.00432</td>\n",
5009 " <td>1.57e-06</td>\n",
5010 " <td>0.000172</td>\n",
5011 " <td>0.00116</td>\n",
5012 " <td>1.16e-05</td>\n",
5013 " <td>0.000973</td>\n",
5014 " <td>0.0296</td>\n",
5015 " <td>0.762</td>\n",
5016 " <td>0.0905</td>\n",
5017 " <td>0.00914</td>\n",
5018 " <td>...</td>\n",
5019 " <td>0.744</td>\n",
5020 " <td>0.913</td>\n",
5021 " <td>0.848</td>\n",
5022 " <td>0.411</td>\n",
5023 " <td>0.963</td>\n",
5024 " <td>0.269</td>\n",
5025 " <td>3.15e-05</td>\n",
5026 " <td>0.000541</td>\n",
5027 " <td>0.463</td>\n",
5028 " <td>0.122</td>\n",
5029 " </tr>\n",
5030 " <tr>\n",
5031 " <th>key</th>\n",
5032 " <td>5</td>\n",
5033 " <td>5</td>\n",
5034 " <td>0</td>\n",
5035 " <td>9</td>\n",
5036 " <td>7</td>\n",
5037 " <td>4</td>\n",
5038 " <td>11</td>\n",
5039 " <td>2</td>\n",
5040 " <td>11</td>\n",
5041 " <td>2</td>\n",
5042 " <td>...</td>\n",
5043 " <td>1</td>\n",
5044 " <td>9</td>\n",
5045 " <td>7</td>\n",
5046 " <td>2</td>\n",
5047 " <td>4</td>\n",
5048 " <td>9</td>\n",
5049 " <td>0</td>\n",
5050 " <td>9</td>\n",
5051 " <td>4</td>\n",
5052 " <td>9</td>\n",
5053 " </tr>\n",
5054 " <tr>\n",
5055 " <th>liveness</th>\n",
5056 " <td>0.443</td>\n",
5057 " <td>0.965</td>\n",
5058 " <td>0.962</td>\n",
5059 " <td>0.969</td>\n",
5060 " <td>0.983</td>\n",
5061 " <td>0.97</td>\n",
5062 " <td>0.952</td>\n",
5063 " <td>0.763</td>\n",
5064 " <td>0.985</td>\n",
5065 " <td>0.918</td>\n",
5066 " <td>...</td>\n",
5067 " <td>0.824</td>\n",
5068 " <td>0.891</td>\n",
5069 " <td>0.702</td>\n",
5070 " <td>0.93</td>\n",
5071 " <td>0.616</td>\n",
5072 " <td>0.932</td>\n",
5073 " <td>0.761</td>\n",
5074 " <td>0.295</td>\n",
5075 " <td>0.263</td>\n",
5076 " <td>0.914</td>\n",
5077 " </tr>\n",
5078 " <tr>\n",
5079 " <th>loudness</th>\n",
5080 " <td>-4.303</td>\n",
5081 " <td>-8.658</td>\n",
5082 " <td>-5.589</td>\n",
5083 " <td>-7.634</td>\n",
5084 " <td>-5.342</td>\n",
5085 " <td>-5.105</td>\n",
5086 " <td>-6.494</td>\n",
5087 " <td>-5.918</td>\n",
5088 " <td>-3.822</td>\n",
5089 " <td>-3.937</td>\n",
5090 " <td>...</td>\n",
5091 " <td>-6.162</td>\n",
5092 " <td>-5.23</td>\n",
5093 " <td>-5.511</td>\n",
5094 " <td>-5.626</td>\n",
5095 " <td>-4.728</td>\n",
5096 " <td>-4.779</td>\n",
5097 " <td>-6.423</td>\n",
5098 " <td>-10.86</td>\n",
5099 " <td>-4.932</td>\n",
5100 " <td>-5.708</td>\n",
5101 " </tr>\n",
5102 " <tr>\n",
5103 " <th>mode</th>\n",
5104 " <td>1</td>\n",
5105 " <td>1</td>\n",
5106 " <td>1</td>\n",
5107 " <td>1</td>\n",
5108 " <td>1</td>\n",
5109 " <td>1</td>\n",
5110 " <td>1</td>\n",
5111 " <td>1</td>\n",
5112 " <td>0</td>\n",
5113 " <td>1</td>\n",
5114 " <td>...</td>\n",
5115 " <td>0</td>\n",
5116 " <td>1</td>\n",
5117 " <td>1</td>\n",
5118 " <td>1</td>\n",
5119 " <td>1</td>\n",
5120 " <td>1</td>\n",
5121 " <td>1</td>\n",
5122 " <td>1</td>\n",
5123 " <td>0</td>\n",
5124 " <td>1</td>\n",
5125 " </tr>\n",
5126 " <tr>\n",
5127 " <th>name</th>\n",
5128 " <td>You Win Again</td>\n",
5129 " <td>Faraway Eyes - Live</td>\n",
5130 " <td>Honky Tonk Women - Live</td>\n",
5131 " <td>Not Fade Away - Live</td>\n",
5132 " <td>I Go Wild - Live</td>\n",
5133 " <td>Jumpin' Jack Flash - Live</td>\n",
5134 " <td>Street Fighting Man - Live</td>\n",
5135 " <td>Everybody Needs Somebody To Love (Finale) - Li...</td>\n",
5136 " <td>Jumping Jack Flash - Live At The Beacon Theatr...</td>\n",
5137 " <td>Just My Imagination - Live At The Beacon Theat...</td>\n",
5138 " <td>...</td>\n",
5139 " <td>I'm Alright - Live In Ireland / 1965</td>\n",
5140 " <td>Off The Hook - Live In Ireland / 1965</td>\n",
5141 " <td>Little Red Rooster - Live In Ireland / 1965</td>\n",
5142 " <td>Route 66 - Live In Ireland / 1965</td>\n",
5143 " <td>I'm Moving On - Live In Ireland / 1965</td>\n",
5144 " <td>The Last Time - Live In Ireland / 1965</td>\n",
5145 " <td>Shine a Light - Live</td>\n",
5146 " <td>The Worst - 2009 Re-Mastered Digital Version</td>\n",
5147 " <td>All Of Your Love</td>\n",
5148 " <td>Midnight Rambler - Live</td>\n",
5149 " </tr>\n",
5150 " <tr>\n",
5151 " <th>popularity</th>\n",
5152 " <td>17</td>\n",
5153 " <td>16</td>\n",
5154 " <td>19</td>\n",
5155 " <td>18</td>\n",
5156 " <td>15</td>\n",
5157 " <td>15</td>\n",
5158 " <td>18</td>\n",
5159 " <td>27</td>\n",
5160 " <td>37</td>\n",
5161 " <td>28</td>\n",
5162 " <td>...</td>\n",
5163 " <td>26</td>\n",
5164 " <td>26</td>\n",
5165 " <td>27</td>\n",
5166 " <td>28</td>\n",
5167 " <td>24</td>\n",
5168 " <td>26</td>\n",
5169 " <td>17</td>\n",
5170 " <td>29</td>\n",
5171 " <td>49</td>\n",
5172 " <td>34</td>\n",
5173 " </tr>\n",
5174 " <tr>\n",
5175 " <th>preview_url</th>\n",
5176 " <td>https://p.scdn.co/mp3-preview/21de20d8795c3d60...</td>\n",
5177 " <td>https://p.scdn.co/mp3-preview/5afdaabfa28e067f...</td>\n",
5178 " <td>https://p.scdn.co/mp3-preview/671f51874a70b3f7...</td>\n",
5179 " <td>https://p.scdn.co/mp3-preview/bba1991141c6e594...</td>\n",
5180 " <td>https://p.scdn.co/mp3-preview/dc5e2c9ed7a5ae3d...</td>\n",
5181 " <td>https://p.scdn.co/mp3-preview/17aed72343067677...</td>\n",
5182 " <td>https://p.scdn.co/mp3-preview/9e13894d09e23cff...</td>\n",
5183 " <td>https://p.scdn.co/mp3-preview/b051b48d71a46bd5...</td>\n",
5184 " <td>https://p.scdn.co/mp3-preview/6f8c3efc615a554b...</td>\n",
5185 " <td>https://p.scdn.co/mp3-preview/707e111a5eef5440...</td>\n",
5186 " <td>...</td>\n",
5187 " <td>https://p.scdn.co/mp3-preview/63e454d027fa6809...</td>\n",
5188 " <td>https://p.scdn.co/mp3-preview/2b9e3ebd8aec9ab2...</td>\n",
5189 " <td>https://p.scdn.co/mp3-preview/7fd37df80648f4d8...</td>\n",
5190 " <td>https://p.scdn.co/mp3-preview/bb4461680e5ab01d...</td>\n",
5191 " <td>https://p.scdn.co/mp3-preview/64c62c7e8f7eb6bf...</td>\n",
5192 " <td>https://p.scdn.co/mp3-preview/4e412cd1b893a89b...</td>\n",
5193 " <td>https://p.scdn.co/mp3-preview/feac308c8b6794c2...</td>\n",
5194 " <td>https://p.scdn.co/mp3-preview/e2a9e826d6585979...</td>\n",
5195 " <td>https://p.scdn.co/mp3-preview/1d796622e5630f76...</td>\n",
5196 " <td>https://p.scdn.co/mp3-preview/20b0c963ec9199d1...</td>\n",
5197 " </tr>\n",
5198 " <tr>\n",
5199 " <th>speechiness</th>\n",
5200 " <td>0.0313</td>\n",
5201 " <td>0.0411</td>\n",
5202 " <td>0.11</td>\n",
5203 " <td>0.0936</td>\n",
5204 " <td>0.0779</td>\n",
5205 " <td>0.0806</td>\n",
5206 " <td>0.0597</td>\n",
5207 " <td>0.421</td>\n",
5208 " <td>0.0667</td>\n",
5209 " <td>0.0728</td>\n",
5210 " <td>...</td>\n",
5211 " <td>0.12</td>\n",
5212 " <td>0.0562</td>\n",
5213 " <td>0.0757</td>\n",
5214 " <td>0.152</td>\n",
5215 " <td>0.103</td>\n",
5216 " <td>0.059</td>\n",
5217 " <td>0.0687</td>\n",
5218 " <td>0.033</td>\n",
5219 " <td>0.0329</td>\n",
5220 " <td>0.074</td>\n",
5221 " </tr>\n",
5222 " <tr>\n",
5223 " <th>tempo</th>\n",
5224 " <td>84.544</td>\n",
5225 " <td>106.226</td>\n",
5226 " <td>114.303</td>\n",
5227 " <td>99.59</td>\n",
5228 " <td>112.123</td>\n",
5229 " <td>141.754</td>\n",
5230 " <td>127.952</td>\n",
5231 " <td>181.122</td>\n",
5232 " <td>140.183</td>\n",
5233 " <td>113.354</td>\n",
5234 " <td>...</td>\n",
5235 " <td>117.236</td>\n",
5236 " <td>76.844</td>\n",
5237 " <td>115.7</td>\n",
5238 " <td>166.196</td>\n",
5239 " <td>162.889</td>\n",
5240 " <td>180.024</td>\n",
5241 " <td>78.569</td>\n",
5242 " <td>69.393</td>\n",
5243 " <td>75.354</td>\n",
5244 " <td>129.742</td>\n",
5245 " </tr>\n",
5246 " <tr>\n",
5247 " <th>time_signature</th>\n",
5248 " <td>4</td>\n",
5249 " <td>4</td>\n",
5250 " <td>4</td>\n",
5251 " <td>4</td>\n",
5252 " <td>4</td>\n",
5253 " <td>4</td>\n",
5254 " <td>4</td>\n",
5255 " <td>4</td>\n",
5256 " <td>4</td>\n",
5257 " <td>4</td>\n",
5258 " <td>...</td>\n",
5259 " <td>4</td>\n",
5260 " <td>4</td>\n",
5261 " <td>3</td>\n",
5262 " <td>4</td>\n",
5263 " <td>4</td>\n",
5264 " <td>4</td>\n",
5265 " <td>4</td>\n",
5266 " <td>4</td>\n",
5267 " <td>4</td>\n",
5268 " <td>4</td>\n",
5269 " </tr>\n",
5270 " <tr>\n",
5271 " <th>track_href</th>\n",
5272 " <td>https://api.spotify.com/v1/tracks/3u06WsJ1KtvE...</td>\n",
5273 " <td>https://api.spotify.com/v1/tracks/1lLK53LFXWvP...</td>\n",
5274 " <td>https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...</td>\n",
5275 " <td>https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn...</td>\n",
5276 " <td>https://api.spotify.com/v1/tracks/4HKaTAMIXT88...</td>\n",
5277 " <td>https://api.spotify.com/v1/tracks/7FagS2T3y5Xw...</td>\n",
5278 " <td>https://api.spotify.com/v1/tracks/0B5CEdw4WBs9...</td>\n",
5279 " <td>https://api.spotify.com/v1/tracks/19LYBNYOMwmD...</td>\n",
5280 " <td>https://api.spotify.com/v1/tracks/281J4XFm5DLf...</td>\n",
5281 " <td>https://api.spotify.com/v1/tracks/56ljxn1tdisT...</td>\n",
5282 " <td>...</td>\n",
5283 " <td>https://api.spotify.com/v1/tracks/2BxO4VLPjzrA...</td>\n",
5284 " <td>https://api.spotify.com/v1/tracks/6L7tmFIPKy98...</td>\n",
5285 " <td>https://api.spotify.com/v1/tracks/2gB58ki3GMqy...</td>\n",
5286 " <td>https://api.spotify.com/v1/tracks/6C0au9ut1avz...</td>\n",
5287 " <td>https://api.spotify.com/v1/tracks/1NvBOki5VmSS...</td>\n",
5288 " <td>https://api.spotify.com/v1/tracks/31KuT5lcyp6N...</td>\n",
5289 " <td>https://api.spotify.com/v1/tracks/3u0cZhyEPYIe...</td>\n",
5290 " <td>https://api.spotify.com/v1/tracks/6gVXeA52q3Fb...</td>\n",
5291 " <td>https://api.spotify.com/v1/tracks/2rNBqTve7unp...</td>\n",
5292 " <td>https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD...</td>\n",
5293 " </tr>\n",
5294 " <tr>\n",
5295 " <th>track_number</th>\n",
5296 " <td>11</td>\n",
5297 " <td>4</td>\n",
5298 " <td>2</td>\n",
5299 " <td>1</td>\n",
5300 " <td>6</td>\n",
5301 " <td>11</td>\n",
5302 " <td>14</td>\n",
5303 " <td>13</td>\n",
5304 " <td>1</td>\n",
5305 " <td>8</td>\n",
5306 " <td>...</td>\n",
5307 " <td>6</td>\n",
5308 " <td>7</td>\n",
5309 " <td>9</td>\n",
5310 " <td>10</td>\n",
5311 " <td>11</td>\n",
5312 " <td>12</td>\n",
5313 " <td>5</td>\n",
5314 " <td>4</td>\n",
5315 " <td>4</td>\n",
5316 " <td>11</td>\n",
5317 " </tr>\n",
5318 " <tr>\n",
5319 " <th>type</th>\n",
5320 " <td>audio_features</td>\n",
5321 " <td>audio_features</td>\n",
5322 " <td>audio_features</td>\n",
5323 " <td>audio_features</td>\n",
5324 " <td>audio_features</td>\n",
5325 " <td>audio_features</td>\n",
5326 " <td>audio_features</td>\n",
5327 " <td>audio_features</td>\n",
5328 " <td>audio_features</td>\n",
5329 " <td>audio_features</td>\n",
5330 " <td>...</td>\n",
5331 " <td>audio_features</td>\n",
5332 " <td>audio_features</td>\n",
5333 " <td>audio_features</td>\n",
5334 " <td>audio_features</td>\n",
5335 " <td>audio_features</td>\n",
5336 " <td>audio_features</td>\n",
5337 " <td>audio_features</td>\n",
5338 " <td>audio_features</td>\n",
5339 " <td>audio_features</td>\n",
5340 " <td>audio_features</td>\n",
5341 " </tr>\n",
5342 " <tr>\n",
5343 " <th>uri</th>\n",
5344 " <td>spotify:track:3u06WsJ1KtvEqmmmZqy76J</td>\n",
5345 " <td>spotify:track:1lLK53LFXWvPzPYtlJIvt0</td>\n",
5346 " <td>spotify:track:74tlMxJ8wF0sNp93GBEPdK</td>\n",
5347 " <td>spotify:track:1jgefM2ZP7RnPVShhy1eUM</td>\n",
5348 " <td>spotify:track:4HKaTAMIXT88muGU1JN9lI</td>\n",
5349 " <td>spotify:track:7FagS2T3y5XwDpYvyHfvmc</td>\n",
5350 " <td>spotify:track:0B5CEdw4WBs91yn444ZP27</td>\n",
5351 " <td>spotify:track:19LYBNYOMwmDKXvhwq5Ggv</td>\n",
5352 " <td>spotify:track:281J4XFm5DLfVt1nKNBsPn</td>\n",
5353 " <td>spotify:track:56ljxn1tdisThe4xcVe4px</td>\n",
5354 " <td>...</td>\n",
5355 " <td>spotify:track:2BxO4VLPjzrApKTHZjpz9G</td>\n",
5356 " <td>spotify:track:6L7tmFIPKy98Js8ytCB1pT</td>\n",
5357 " <td>spotify:track:2gB58ki3GMqyNsdsPpDECH</td>\n",
5358 " <td>spotify:track:6C0au9ut1avz4zhryYHudG</td>\n",
5359 " <td>spotify:track:1NvBOki5VmSSVelycoMo96</td>\n",
5360 " <td>spotify:track:31KuT5lcyp6NlDBjp3EVTp</td>\n",
5361 " <td>spotify:track:3u0cZhyEPYIe9qDKPEeS4g</td>\n",
5362 " <td>spotify:track:6gVXeA52q3FbLANm6gW0Ma</td>\n",
5363 " <td>spotify:track:2rNBqTve7unpL01DuTyX3P</td>\n",
5364 " <td>spotify:track:3Ey71ndsJ2GDMgT0hVJlPs</td>\n",
5365 " </tr>\n",
5366 " <tr>\n",
5367 " <th>valence</th>\n",
5368 " <td>0.524</td>\n",
5369 " <td>0.482</td>\n",
5370 " <td>0.426</td>\n",
5371 " <td>0.672</td>\n",
5372 " <td>0.432</td>\n",
5373 " <td>0.362</td>\n",
5374 " <td>0.433</td>\n",
5375 " <td>0.185</td>\n",
5376 " <td>0.413</td>\n",
5377 " <td>0.436</td>\n",
5378 " <td>...</td>\n",
5379 " <td>0.284</td>\n",
5380 " <td>0.549</td>\n",
5381 " <td>0.431</td>\n",
5382 " <td>0.588</td>\n",
5383 " <td>0.244</td>\n",
5384 " <td>0.484</td>\n",
5385 " <td>0.5</td>\n",
5386 " <td>0.245</td>\n",
5387 " <td>0.303</td>\n",
5388 " <td>0.363</td>\n",
5389 " </tr>\n",
5390 " </tbody>\n",
5391 "</table>\n",
5392 "<p>34 rows × 275 columns</p>\n",
5393 "</div>"
5394 ],
5395 "text/plain": [
5396 " 0 \\\n",
5397 "_id 3u06WsJ1KtvEqmmmZqy76J \n",
5398 "acousticness 0.107 \n",
5399 "album {'id': '6FjXxl9VLURGuubdXUn2J3', 'type': 'albu... \n",
5400 "album_id 6FjXxl9VLURGuubdXUn2J3 \n",
5401 "analysis_url https://api.spotify.com/v1/audio-analysis/3u06... \n",
5402 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5403 "artist_name The Rolling Stones \n",
5404 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5405 "available_markets [AD, AR, AT, AU, BG, BO, BR, CL, CO, CR, CY, C... \n",
5406 "danceability 0.216 \n",
5407 "disc_number 2 \n",
5408 "duration_ms 180280 \n",
5409 "energy 0.669 \n",
5410 "explicit False \n",
5411 "external_ids {'isrc': 'GBUM71109053'} \n",
5412 "external_urls {'spotify': 'https://open.spotify.com/track/3u... \n",
5413 "href https://api.spotify.com/v1/tracks/3u06WsJ1KtvE... \n",
5414 "id 3u06WsJ1KtvEqmmmZqy76J \n",
5415 "instrumentalness 0.00432 \n",
5416 "key 5 \n",
5417 "liveness 0.443 \n",
5418 "loudness -4.303 \n",
5419 "mode 1 \n",
5420 "name You Win Again \n",
5421 "popularity 17 \n",
5422 "preview_url https://p.scdn.co/mp3-preview/21de20d8795c3d60... \n",
5423 "speechiness 0.0313 \n",
5424 "tempo 84.544 \n",
5425 "time_signature 4 \n",
5426 "track_href https://api.spotify.com/v1/tracks/3u06WsJ1KtvE... \n",
5427 "track_number 11 \n",
5428 "type audio_features \n",
5429 "uri spotify:track:3u06WsJ1KtvEqmmmZqy76J \n",
5430 "valence 0.524 \n",
5431 "\n",
5432 " 1 \\\n",
5433 "_id 1lLK53LFXWvPzPYtlJIvt0 \n",
5434 "acousticness 0.536 \n",
5435 "album {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu... \n",
5436 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
5437 "analysis_url https://api.spotify.com/v1/audio-analysis/1lLK... \n",
5438 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5439 "artist_name The Rolling Stones \n",
5440 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5441 "available_markets [GB] \n",
5442 "danceability 0.395 \n",
5443 "disc_number 1 \n",
5444 "duration_ms 305280 \n",
5445 "energy 0.733 \n",
5446 "explicit False \n",
5447 "external_ids {'isrc': 'GBCBR1500394'} \n",
5448 "external_urls {'spotify': 'https://open.spotify.com/track/1l... \n",
5449 "href https://api.spotify.com/v1/tracks/1lLK53LFXWvP... \n",
5450 "id 1lLK53LFXWvPzPYtlJIvt0 \n",
5451 "instrumentalness 1.57e-06 \n",
5452 "key 5 \n",
5453 "liveness 0.965 \n",
5454 "loudness -8.658 \n",
5455 "mode 1 \n",
5456 "name Faraway Eyes - Live \n",
5457 "popularity 16 \n",
5458 "preview_url https://p.scdn.co/mp3-preview/5afdaabfa28e067f... \n",
5459 "speechiness 0.0411 \n",
5460 "tempo 106.226 \n",
5461 "time_signature 4 \n",
5462 "track_href https://api.spotify.com/v1/tracks/1lLK53LFXWvP... \n",
5463 "track_number 4 \n",
5464 "type audio_features \n",
5465 "uri spotify:track:1lLK53LFXWvPzPYtlJIvt0 \n",
5466 "valence 0.482 \n",
5467 "\n",
5468 " 2 \\\n",
5469 "_id 74tlMxJ8wF0sNp93GBEPdK \n",
5470 "acousticness 0.00352 \n",
5471 "album {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu... \n",
5472 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
5473 "analysis_url https://api.spotify.com/v1/audio-analysis/74tl... \n",
5474 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5475 "artist_name The Rolling Stones \n",
5476 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5477 "available_markets [GB] \n",
5478 "danceability 0.367 \n",
5479 "disc_number 1 \n",
5480 "duration_ms 293773 \n",
5481 "energy 0.962 \n",
5482 "explicit False \n",
5483 "external_ids {'isrc': 'GBCBR1500392'} \n",
5484 "external_urls {'spotify': 'https://open.spotify.com/track/74... \n",
5485 "href https://api.spotify.com/v1/tracks/74tlMxJ8wF0s... \n",
5486 "id 74tlMxJ8wF0sNp93GBEPdK \n",
5487 "instrumentalness 0.000172 \n",
5488 "key 0 \n",
5489 "liveness 0.962 \n",
5490 "loudness -5.589 \n",
5491 "mode 1 \n",
5492 "name Honky Tonk Women - Live \n",
5493 "popularity 19 \n",
5494 "preview_url https://p.scdn.co/mp3-preview/671f51874a70b3f7... \n",
5495 "speechiness 0.11 \n",
5496 "tempo 114.303 \n",
5497 "time_signature 4 \n",
5498 "track_href https://api.spotify.com/v1/tracks/74tlMxJ8wF0s... \n",
5499 "track_number 2 \n",
5500 "type audio_features \n",
5501 "uri spotify:track:74tlMxJ8wF0sNp93GBEPdK \n",
5502 "valence 0.426 \n",
5503 "\n",
5504 " 3 \\\n",
5505 "_id 1jgefM2ZP7RnPVShhy1eUM \n",
5506 "acousticness 0.148 \n",
5507 "album {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu... \n",
5508 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
5509 "analysis_url https://api.spotify.com/v1/audio-analysis/1jge... \n",
5510 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5511 "artist_name The Rolling Stones \n",
5512 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5513 "available_markets [GB] \n",
5514 "danceability 0.282 \n",
5515 "disc_number 1 \n",
5516 "duration_ms 191787 \n",
5517 "energy 0.883 \n",
5518 "explicit False \n",
5519 "external_ids {'isrc': 'GBCBR1500391'} \n",
5520 "external_urls {'spotify': 'https://open.spotify.com/track/1j... \n",
5521 "href https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn... \n",
5522 "id 1jgefM2ZP7RnPVShhy1eUM \n",
5523 "instrumentalness 0.00116 \n",
5524 "key 9 \n",
5525 "liveness 0.969 \n",
5526 "loudness -7.634 \n",
5527 "mode 1 \n",
5528 "name Not Fade Away - Live \n",
5529 "popularity 18 \n",
5530 "preview_url https://p.scdn.co/mp3-preview/bba1991141c6e594... \n",
5531 "speechiness 0.0936 \n",
5532 "tempo 99.59 \n",
5533 "time_signature 4 \n",
5534 "track_href https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn... \n",
5535 "track_number 1 \n",
5536 "type audio_features \n",
5537 "uri spotify:track:1jgefM2ZP7RnPVShhy1eUM \n",
5538 "valence 0.672 \n",
5539 "\n",
5540 " 4 \\\n",
5541 "_id 4HKaTAMIXT88muGU1JN9lI \n",
5542 "acousticness 0.0328 \n",
5543 "album {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu... \n",
5544 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
5545 "analysis_url https://api.spotify.com/v1/audio-analysis/4HKa... \n",
5546 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5547 "artist_name The Rolling Stones \n",
5548 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5549 "available_markets [GB] \n",
5550 "danceability 0.427 \n",
5551 "disc_number 1 \n",
5552 "duration_ms 409360 \n",
5553 "energy 0.944 \n",
5554 "explicit True \n",
5555 "external_ids {'isrc': 'GBCBR1500396'} \n",
5556 "external_urls {'spotify': 'https://open.spotify.com/track/4H... \n",
5557 "href https://api.spotify.com/v1/tracks/4HKaTAMIXT88... \n",
5558 "id 4HKaTAMIXT88muGU1JN9lI \n",
5559 "instrumentalness 1.16e-05 \n",
5560 "key 7 \n",
5561 "liveness 0.983 \n",
5562 "loudness -5.342 \n",
5563 "mode 1 \n",
5564 "name I Go Wild - Live \n",
5565 "popularity 15 \n",
5566 "preview_url https://p.scdn.co/mp3-preview/dc5e2c9ed7a5ae3d... \n",
5567 "speechiness 0.0779 \n",
5568 "tempo 112.123 \n",
5569 "time_signature 4 \n",
5570 "track_href https://api.spotify.com/v1/tracks/4HKaTAMIXT88... \n",
5571 "track_number 6 \n",
5572 "type audio_features \n",
5573 "uri spotify:track:4HKaTAMIXT88muGU1JN9lI \n",
5574 "valence 0.432 \n",
5575 "\n",
5576 " 5 \\\n",
5577 "_id 7FagS2T3y5XwDpYvyHfvmc \n",
5578 "acousticness 0.000552 \n",
5579 "album {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu... \n",
5580 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
5581 "analysis_url https://api.spotify.com/v1/audio-analysis/7Fag... \n",
5582 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5583 "artist_name The Rolling Stones \n",
5584 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5585 "available_markets [GB] \n",
5586 "danceability 0.318 \n",
5587 "disc_number 1 \n",
5588 "duration_ms 303627 \n",
5589 "energy 0.976 \n",
5590 "explicit False \n",
5591 "external_ids {'isrc': 'GBCBR1500401'} \n",
5592 "external_urls {'spotify': 'https://open.spotify.com/track/7F... \n",
5593 "href https://api.spotify.com/v1/tracks/7FagS2T3y5Xw... \n",
5594 "id 7FagS2T3y5XwDpYvyHfvmc \n",
5595 "instrumentalness 0.000973 \n",
5596 "key 4 \n",
5597 "liveness 0.97 \n",
5598 "loudness -5.105 \n",
5599 "mode 1 \n",
5600 "name Jumpin' Jack Flash - Live \n",
5601 "popularity 15 \n",
5602 "preview_url https://p.scdn.co/mp3-preview/17aed72343067677... \n",
5603 "speechiness 0.0806 \n",
5604 "tempo 141.754 \n",
5605 "time_signature 4 \n",
5606 "track_href https://api.spotify.com/v1/tracks/7FagS2T3y5Xw... \n",
5607 "track_number 11 \n",
5608 "type audio_features \n",
5609 "uri spotify:track:7FagS2T3y5XwDpYvyHfvmc \n",
5610 "valence 0.362 \n",
5611 "\n",
5612 " 6 \\\n",
5613 "_id 0B5CEdw4WBs91yn444ZP27 \n",
5614 "acousticness 0.347 \n",
5615 "album {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu... \n",
5616 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
5617 "analysis_url https://api.spotify.com/v1/audio-analysis/0B5C... \n",
5618 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5619 "artist_name The Rolling Stones \n",
5620 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5621 "available_markets [GB] \n",
5622 "danceability 0.42 \n",
5623 "disc_number 1 \n",
5624 "duration_ms 291240 \n",
5625 "energy 0.951 \n",
5626 "explicit False \n",
5627 "external_ids {'isrc': 'GBCBR1500404'} \n",
5628 "external_urls {'spotify': 'https://open.spotify.com/track/0B... \n",
5629 "href https://api.spotify.com/v1/tracks/0B5CEdw4WBs9... \n",
5630 "id 0B5CEdw4WBs91yn444ZP27 \n",
5631 "instrumentalness 0.0296 \n",
5632 "key 11 \n",
5633 "liveness 0.952 \n",
5634 "loudness -6.494 \n",
5635 "mode 1 \n",
5636 "name Street Fighting Man - Live \n",
5637 "popularity 18 \n",
5638 "preview_url https://p.scdn.co/mp3-preview/9e13894d09e23cff... \n",
5639 "speechiness 0.0597 \n",
5640 "tempo 127.952 \n",
5641 "time_signature 4 \n",
5642 "track_href https://api.spotify.com/v1/tracks/0B5CEdw4WBs9... \n",
5643 "track_number 14 \n",
5644 "type audio_features \n",
5645 "uri spotify:track:0B5CEdw4WBs91yn444ZP27 \n",
5646 "valence 0.433 \n",
5647 "\n",
5648 " 7 \\\n",
5649 "_id 19LYBNYOMwmDKXvhwq5Ggv \n",
5650 "acousticness 0.109 \n",
5651 "album {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu... \n",
5652 "album_id 5eTqRwTGKPBUiUuN1rFaXD \n",
5653 "analysis_url https://api.spotify.com/v1/audio-analysis/19LY... \n",
5654 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5655 "artist_name The Rolling Stones \n",
5656 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5657 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5658 "danceability 0.243 \n",
5659 "disc_number 1 \n",
5660 "duration_ms 246000 \n",
5661 "energy 0.978 \n",
5662 "explicit False \n",
5663 "external_ids {'isrc': 'USA171210012'} \n",
5664 "external_urls {'spotify': 'https://open.spotify.com/track/19... \n",
5665 "href https://api.spotify.com/v1/tracks/19LYBNYOMwmD... \n",
5666 "id 19LYBNYOMwmDKXvhwq5Ggv \n",
5667 "instrumentalness 0.762 \n",
5668 "key 2 \n",
5669 "liveness 0.763 \n",
5670 "loudness -5.918 \n",
5671 "mode 1 \n",
5672 "name Everybody Needs Somebody To Love (Finale) - Li... \n",
5673 "popularity 27 \n",
5674 "preview_url https://p.scdn.co/mp3-preview/b051b48d71a46bd5... \n",
5675 "speechiness 0.421 \n",
5676 "tempo 181.122 \n",
5677 "time_signature 4 \n",
5678 "track_href https://api.spotify.com/v1/tracks/19LYBNYOMwmD... \n",
5679 "track_number 13 \n",
5680 "type audio_features \n",
5681 "uri spotify:track:19LYBNYOMwmDKXvhwq5Ggv \n",
5682 "valence 0.185 \n",
5683 "\n",
5684 " 8 \\\n",
5685 "_id 281J4XFm5DLfVt1nKNBsPn \n",
5686 "acousticness 0.0391 \n",
5687 "album {'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu... \n",
5688 "album_id 3CHu7qW160uqPZHW3TMZ1l \n",
5689 "analysis_url https://api.spotify.com/v1/audio-analysis/281J... \n",
5690 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5691 "artist_name The Rolling Stones \n",
5692 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5693 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5694 "danceability 0.303 \n",
5695 "disc_number 1 \n",
5696 "duration_ms 262933 \n",
5697 "energy 0.951 \n",
5698 "explicit False \n",
5699 "external_ids {'isrc': 'GBUM70802505'} \n",
5700 "external_urls {'spotify': 'https://open.spotify.com/track/28... \n",
5701 "href https://api.spotify.com/v1/tracks/281J4XFm5DLf... \n",
5702 "id 281J4XFm5DLfVt1nKNBsPn \n",
5703 "instrumentalness 0.0905 \n",
5704 "key 11 \n",
5705 "liveness 0.985 \n",
5706 "loudness -3.822 \n",
5707 "mode 0 \n",
5708 "name Jumping Jack Flash - Live At The Beacon Theatr... \n",
5709 "popularity 37 \n",
5710 "preview_url https://p.scdn.co/mp3-preview/6f8c3efc615a554b... \n",
5711 "speechiness 0.0667 \n",
5712 "tempo 140.183 \n",
5713 "time_signature 4 \n",
5714 "track_href https://api.spotify.com/v1/tracks/281J4XFm5DLf... \n",
5715 "track_number 1 \n",
5716 "type audio_features \n",
5717 "uri spotify:track:281J4XFm5DLfVt1nKNBsPn \n",
5718 "valence 0.413 \n",
5719 "\n",
5720 " 9 \\\n",
5721 "_id 56ljxn1tdisThe4xcVe4px \n",
5722 "acousticness 0.024 \n",
5723 "album {'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu... \n",
5724 "album_id 3CHu7qW160uqPZHW3TMZ1l \n",
5725 "analysis_url https://api.spotify.com/v1/audio-analysis/56lj... \n",
5726 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5727 "artist_name The Rolling Stones \n",
5728 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5729 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5730 "danceability 0.412 \n",
5731 "disc_number 1 \n",
5732 "duration_ms 399867 \n",
5733 "energy 0.934 \n",
5734 "explicit False \n",
5735 "external_ids {'isrc': 'GBUM70802502'} \n",
5736 "external_urls {'spotify': 'https://open.spotify.com/track/56... \n",
5737 "href https://api.spotify.com/v1/tracks/56ljxn1tdisT... \n",
5738 "id 56ljxn1tdisThe4xcVe4px \n",
5739 "instrumentalness 0.00914 \n",
5740 "key 2 \n",
5741 "liveness 0.918 \n",
5742 "loudness -3.937 \n",
5743 "mode 1 \n",
5744 "name Just My Imagination - Live At The Beacon Theat... \n",
5745 "popularity 28 \n",
5746 "preview_url https://p.scdn.co/mp3-preview/707e111a5eef5440... \n",
5747 "speechiness 0.0728 \n",
5748 "tempo 113.354 \n",
5749 "time_signature 4 \n",
5750 "track_href https://api.spotify.com/v1/tracks/56ljxn1tdisT... \n",
5751 "track_number 8 \n",
5752 "type audio_features \n",
5753 "uri spotify:track:56ljxn1tdisThe4xcVe4px \n",
5754 "valence 0.436 \n",
5755 "\n",
5756 " ... \\\n",
5757 "_id ... \n",
5758 "acousticness ... \n",
5759 "album ... \n",
5760 "album_id ... \n",
5761 "analysis_url ... \n",
5762 "artist_id ... \n",
5763 "artist_name ... \n",
5764 "artists ... \n",
5765 "available_markets ... \n",
5766 "danceability ... \n",
5767 "disc_number ... \n",
5768 "duration_ms ... \n",
5769 "energy ... \n",
5770 "explicit ... \n",
5771 "external_ids ... \n",
5772 "external_urls ... \n",
5773 "href ... \n",
5774 "id ... \n",
5775 "instrumentalness ... \n",
5776 "key ... \n",
5777 "liveness ... \n",
5778 "loudness ... \n",
5779 "mode ... \n",
5780 "name ... \n",
5781 "popularity ... \n",
5782 "preview_url ... \n",
5783 "speechiness ... \n",
5784 "tempo ... \n",
5785 "time_signature ... \n",
5786 "track_href ... \n",
5787 "track_number ... \n",
5788 "type ... \n",
5789 "uri ... \n",
5790 "valence ... \n",
5791 "\n",
5792 " 265 \\\n",
5793 "_id 2BxO4VLPjzrApKTHZjpz9G \n",
5794 "acousticness 0.181 \n",
5795 "album {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu... \n",
5796 "album_id 5eTqRwTGKPBUiUuN1rFaXD \n",
5797 "analysis_url https://api.spotify.com/v1/audio-analysis/2BxO... \n",
5798 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5799 "artist_name The Rolling Stones \n",
5800 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5801 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5802 "danceability 0.46 \n",
5803 "disc_number 1 \n",
5804 "duration_ms 135040 \n",
5805 "energy 0.976 \n",
5806 "explicit False \n",
5807 "external_ids {'isrc': 'USA171210005'} \n",
5808 "external_urls {'spotify': 'https://open.spotify.com/track/2B... \n",
5809 "href https://api.spotify.com/v1/tracks/2BxO4VLPjzrA... \n",
5810 "id 2BxO4VLPjzrApKTHZjpz9G \n",
5811 "instrumentalness 0.744 \n",
5812 "key 1 \n",
5813 "liveness 0.824 \n",
5814 "loudness -6.162 \n",
5815 "mode 0 \n",
5816 "name I'm Alright - Live In Ireland / 1965 \n",
5817 "popularity 26 \n",
5818 "preview_url https://p.scdn.co/mp3-preview/63e454d027fa6809... \n",
5819 "speechiness 0.12 \n",
5820 "tempo 117.236 \n",
5821 "time_signature 4 \n",
5822 "track_href https://api.spotify.com/v1/tracks/2BxO4VLPjzrA... \n",
5823 "track_number 6 \n",
5824 "type audio_features \n",
5825 "uri spotify:track:2BxO4VLPjzrApKTHZjpz9G \n",
5826 "valence 0.284 \n",
5827 "\n",
5828 " 266 \\\n",
5829 "_id 6L7tmFIPKy98Js8ytCB1pT \n",
5830 "acousticness 0.0207 \n",
5831 "album {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu... \n",
5832 "album_id 5eTqRwTGKPBUiUuN1rFaXD \n",
5833 "analysis_url https://api.spotify.com/v1/audio-analysis/6L7t... \n",
5834 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5835 "artist_name The Rolling Stones \n",
5836 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5837 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5838 "danceability 0.44 \n",
5839 "disc_number 1 \n",
5840 "duration_ms 147040 \n",
5841 "energy 0.932 \n",
5842 "explicit False \n",
5843 "external_ids {'isrc': 'USA171210006'} \n",
5844 "external_urls {'spotify': 'https://open.spotify.com/track/6L... \n",
5845 "href https://api.spotify.com/v1/tracks/6L7tmFIPKy98... \n",
5846 "id 6L7tmFIPKy98Js8ytCB1pT \n",
5847 "instrumentalness 0.913 \n",
5848 "key 9 \n",
5849 "liveness 0.891 \n",
5850 "loudness -5.23 \n",
5851 "mode 1 \n",
5852 "name Off The Hook - Live In Ireland / 1965 \n",
5853 "popularity 26 \n",
5854 "preview_url https://p.scdn.co/mp3-preview/2b9e3ebd8aec9ab2... \n",
5855 "speechiness 0.0562 \n",
5856 "tempo 76.844 \n",
5857 "time_signature 4 \n",
5858 "track_href https://api.spotify.com/v1/tracks/6L7tmFIPKy98... \n",
5859 "track_number 7 \n",
5860 "type audio_features \n",
5861 "uri spotify:track:6L7tmFIPKy98Js8ytCB1pT \n",
5862 "valence 0.549 \n",
5863 "\n",
5864 " 267 \\\n",
5865 "_id 2gB58ki3GMqyNsdsPpDECH \n",
5866 "acousticness 0.00742 \n",
5867 "album {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu... \n",
5868 "album_id 5eTqRwTGKPBUiUuN1rFaXD \n",
5869 "analysis_url https://api.spotify.com/v1/audio-analysis/2gB5... \n",
5870 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5871 "artist_name The Rolling Stones \n",
5872 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5873 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5874 "danceability 0.438 \n",
5875 "disc_number 1 \n",
5876 "duration_ms 155600 \n",
5877 "energy 0.912 \n",
5878 "explicit False \n",
5879 "external_ids {'isrc': 'USA171210008'} \n",
5880 "external_urls {'spotify': 'https://open.spotify.com/track/2g... \n",
5881 "href https://api.spotify.com/v1/tracks/2gB58ki3GMqy... \n",
5882 "id 2gB58ki3GMqyNsdsPpDECH \n",
5883 "instrumentalness 0.848 \n",
5884 "key 7 \n",
5885 "liveness 0.702 \n",
5886 "loudness -5.511 \n",
5887 "mode 1 \n",
5888 "name Little Red Rooster - Live In Ireland / 1965 \n",
5889 "popularity 27 \n",
5890 "preview_url https://p.scdn.co/mp3-preview/7fd37df80648f4d8... \n",
5891 "speechiness 0.0757 \n",
5892 "tempo 115.7 \n",
5893 "time_signature 3 \n",
5894 "track_href https://api.spotify.com/v1/tracks/2gB58ki3GMqy... \n",
5895 "track_number 9 \n",
5896 "type audio_features \n",
5897 "uri spotify:track:2gB58ki3GMqyNsdsPpDECH \n",
5898 "valence 0.431 \n",
5899 "\n",
5900 " 268 \\\n",
5901 "_id 6C0au9ut1avz4zhryYHudG \n",
5902 "acousticness 0.0184 \n",
5903 "album {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu... \n",
5904 "album_id 5eTqRwTGKPBUiUuN1rFaXD \n",
5905 "analysis_url https://api.spotify.com/v1/audio-analysis/6C0a... \n",
5906 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5907 "artist_name The Rolling Stones \n",
5908 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5909 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5910 "danceability 0.245 \n",
5911 "disc_number 1 \n",
5912 "duration_ms 164320 \n",
5913 "energy 0.964 \n",
5914 "explicit False \n",
5915 "external_ids {'isrc': 'USA171210009'} \n",
5916 "external_urls {'spotify': 'https://open.spotify.com/track/6C... \n",
5917 "href https://api.spotify.com/v1/tracks/6C0au9ut1avz... \n",
5918 "id 6C0au9ut1avz4zhryYHudG \n",
5919 "instrumentalness 0.411 \n",
5920 "key 2 \n",
5921 "liveness 0.93 \n",
5922 "loudness -5.626 \n",
5923 "mode 1 \n",
5924 "name Route 66 - Live In Ireland / 1965 \n",
5925 "popularity 28 \n",
5926 "preview_url https://p.scdn.co/mp3-preview/bb4461680e5ab01d... \n",
5927 "speechiness 0.152 \n",
5928 "tempo 166.196 \n",
5929 "time_signature 4 \n",
5930 "track_href https://api.spotify.com/v1/tracks/6C0au9ut1avz... \n",
5931 "track_number 10 \n",
5932 "type audio_features \n",
5933 "uri spotify:track:6C0au9ut1avz4zhryYHudG \n",
5934 "valence 0.588 \n",
5935 "\n",
5936 " 269 \\\n",
5937 "_id 1NvBOki5VmSSVelycoMo96 \n",
5938 "acousticness 0.002 \n",
5939 "album {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu... \n",
5940 "album_id 5eTqRwTGKPBUiUuN1rFaXD \n",
5941 "analysis_url https://api.spotify.com/v1/audio-analysis/1NvB... \n",
5942 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5943 "artist_name The Rolling Stones \n",
5944 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5945 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5946 "danceability 0.124 \n",
5947 "disc_number 1 \n",
5948 "duration_ms 148560 \n",
5949 "energy 0.92 \n",
5950 "explicit False \n",
5951 "external_ids {'isrc': 'USA171210010'} \n",
5952 "external_urls {'spotify': 'https://open.spotify.com/track/1N... \n",
5953 "href https://api.spotify.com/v1/tracks/1NvBOki5VmSS... \n",
5954 "id 1NvBOki5VmSSVelycoMo96 \n",
5955 "instrumentalness 0.963 \n",
5956 "key 4 \n",
5957 "liveness 0.616 \n",
5958 "loudness -4.728 \n",
5959 "mode 1 \n",
5960 "name I'm Moving On - Live In Ireland / 1965 \n",
5961 "popularity 24 \n",
5962 "preview_url https://p.scdn.co/mp3-preview/64c62c7e8f7eb6bf... \n",
5963 "speechiness 0.103 \n",
5964 "tempo 162.889 \n",
5965 "time_signature 4 \n",
5966 "track_href https://api.spotify.com/v1/tracks/1NvBOki5VmSS... \n",
5967 "track_number 11 \n",
5968 "type audio_features \n",
5969 "uri spotify:track:1NvBOki5VmSSVelycoMo96 \n",
5970 "valence 0.244 \n",
5971 "\n",
5972 " 270 \\\n",
5973 "_id 31KuT5lcyp6NlDBjp3EVTp \n",
5974 "acousticness 0.000283 \n",
5975 "album {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu... \n",
5976 "album_id 5eTqRwTGKPBUiUuN1rFaXD \n",
5977 "analysis_url https://api.spotify.com/v1/audio-analysis/31Ku... \n",
5978 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
5979 "artist_name The Rolling Stones \n",
5980 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
5981 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
5982 "danceability 0.213 \n",
5983 "disc_number 1 \n",
5984 "duration_ms 189600 \n",
5985 "energy 0.929 \n",
5986 "explicit False \n",
5987 "external_ids {'isrc': 'USA171210011'} \n",
5988 "external_urls {'spotify': 'https://open.spotify.com/track/31... \n",
5989 "href https://api.spotify.com/v1/tracks/31KuT5lcyp6N... \n",
5990 "id 31KuT5lcyp6NlDBjp3EVTp \n",
5991 "instrumentalness 0.269 \n",
5992 "key 9 \n",
5993 "liveness 0.932 \n",
5994 "loudness -4.779 \n",
5995 "mode 1 \n",
5996 "name The Last Time - Live In Ireland / 1965 \n",
5997 "popularity 26 \n",
5998 "preview_url https://p.scdn.co/mp3-preview/4e412cd1b893a89b... \n",
5999 "speechiness 0.059 \n",
6000 "tempo 180.024 \n",
6001 "time_signature 4 \n",
6002 "track_href https://api.spotify.com/v1/tracks/31KuT5lcyp6N... \n",
6003 "track_number 12 \n",
6004 "type audio_features \n",
6005 "uri spotify:track:31KuT5lcyp6NlDBjp3EVTp \n",
6006 "valence 0.484 \n",
6007 "\n",
6008 " 271 \\\n",
6009 "_id 3u0cZhyEPYIe9qDKPEeS4g \n",
6010 "acousticness 0.395 \n",
6011 "album {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu... \n",
6012 "album_id 3PbRKFafwE7Of8e4dTee72 \n",
6013 "analysis_url https://api.spotify.com/v1/audio-analysis/3u0c... \n",
6014 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
6015 "artist_name The Rolling Stones \n",
6016 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
6017 "available_markets [GB] \n",
6018 "danceability 0.262 \n",
6019 "disc_number 1 \n",
6020 "duration_ms 291253 \n",
6021 "energy 0.835 \n",
6022 "explicit False \n",
6023 "external_ids {'isrc': 'GBCBR1500395'} \n",
6024 "external_urls {'spotify': 'https://open.spotify.com/track/3u... \n",
6025 "href https://api.spotify.com/v1/tracks/3u0cZhyEPYIe... \n",
6026 "id 3u0cZhyEPYIe9qDKPEeS4g \n",
6027 "instrumentalness 3.15e-05 \n",
6028 "key 0 \n",
6029 "liveness 0.761 \n",
6030 "loudness -6.423 \n",
6031 "mode 1 \n",
6032 "name Shine a Light - Live \n",
6033 "popularity 17 \n",
6034 "preview_url https://p.scdn.co/mp3-preview/feac308c8b6794c2... \n",
6035 "speechiness 0.0687 \n",
6036 "tempo 78.569 \n",
6037 "time_signature 4 \n",
6038 "track_href https://api.spotify.com/v1/tracks/3u0cZhyEPYIe... \n",
6039 "track_number 5 \n",
6040 "type audio_features \n",
6041 "uri spotify:track:3u0cZhyEPYIe9qDKPEeS4g \n",
6042 "valence 0.5 \n",
6043 "\n",
6044 " 272 \\\n",
6045 "_id 6gVXeA52q3FbLANm6gW0Ma \n",
6046 "acousticness 0.147 \n",
6047 "album {'id': '62ZT16LY1phGM0O8x5qW1z', 'type': 'albu... \n",
6048 "album_id 62ZT16LY1phGM0O8x5qW1z \n",
6049 "analysis_url https://api.spotify.com/v1/audio-analysis/6gVX... \n",
6050 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
6051 "artist_name The Rolling Stones \n",
6052 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
6053 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
6054 "danceability 0.486 \n",
6055 "disc_number 1 \n",
6056 "duration_ms 144867 \n",
6057 "energy 0.451 \n",
6058 "explicit False \n",
6059 "external_ids {'isrc': 'GBUM70909519'} \n",
6060 "external_urls {'spotify': 'https://open.spotify.com/track/6g... \n",
6061 "href https://api.spotify.com/v1/tracks/6gVXeA52q3Fb... \n",
6062 "id 6gVXeA52q3FbLANm6gW0Ma \n",
6063 "instrumentalness 0.000541 \n",
6064 "key 9 \n",
6065 "liveness 0.295 \n",
6066 "loudness -10.86 \n",
6067 "mode 1 \n",
6068 "name The Worst - 2009 Re-Mastered Digital Version \n",
6069 "popularity 29 \n",
6070 "preview_url https://p.scdn.co/mp3-preview/e2a9e826d6585979... \n",
6071 "speechiness 0.033 \n",
6072 "tempo 69.393 \n",
6073 "time_signature 4 \n",
6074 "track_href https://api.spotify.com/v1/tracks/6gVXeA52q3Fb... \n",
6075 "track_number 4 \n",
6076 "type audio_features \n",
6077 "uri spotify:track:6gVXeA52q3FbLANm6gW0Ma \n",
6078 "valence 0.245 \n",
6079 "\n",
6080 " 273 \\\n",
6081 "_id 2rNBqTve7unpL01DuTyX3P \n",
6082 "acousticness 0.474 \n",
6083 "album {'id': '4g9Jfls8z2nbQxj5PiXkiy', 'type': 'albu... \n",
6084 "album_id 4g9Jfls8z2nbQxj5PiXkiy \n",
6085 "analysis_url https://api.spotify.com/v1/audio-analysis/2rNB... \n",
6086 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
6087 "artist_name The Rolling Stones \n",
6088 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
6089 "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n",
6090 "danceability 0.416 \n",
6091 "disc_number 1 \n",
6092 "duration_ms 286680 \n",
6093 "energy 0.672 \n",
6094 "explicit False \n",
6095 "external_ids {'isrc': 'GBUM71604631'} \n",
6096 "external_urls {'spotify': 'https://open.spotify.com/track/2r... \n",
6097 "href https://api.spotify.com/v1/tracks/2rNBqTve7unp... \n",
6098 "id 2rNBqTve7unpL01DuTyX3P \n",
6099 "instrumentalness 0.463 \n",
6100 "key 4 \n",
6101 "liveness 0.263 \n",
6102 "loudness -4.932 \n",
6103 "mode 0 \n",
6104 "name All Of Your Love \n",
6105 "popularity 49 \n",
6106 "preview_url https://p.scdn.co/mp3-preview/1d796622e5630f76... \n",
6107 "speechiness 0.0329 \n",
6108 "tempo 75.354 \n",
6109 "time_signature 4 \n",
6110 "track_href https://api.spotify.com/v1/tracks/2rNBqTve7unp... \n",
6111 "track_number 4 \n",
6112 "type audio_features \n",
6113 "uri spotify:track:2rNBqTve7unpL01DuTyX3P \n",
6114 "valence 0.303 \n",
6115 "\n",
6116 " 274 \n",
6117 "_id 3Ey71ndsJ2GDMgT0hVJlPs \n",
6118 "acousticness 0.173 \n",
6119 "album {'id': '4fhWcu56Bbh5wALuTouFVW', 'type': 'albu... \n",
6120 "album_id 4fhWcu56Bbh5wALuTouFVW \n",
6121 "analysis_url https://api.spotify.com/v1/audio-analysis/3Ey7... \n",
6122 "artist_id 22bE4uQ6baNwSHPVcDxLCe \n",
6123 "artist_name The Rolling Stones \n",
6124 "artists [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art... \n",
6125 "available_markets [AD, AR, AT, AU, BE, BG, BO, CH, CL, CO, CR, C... \n",
6126 "danceability 0.282 \n",
6127 "disc_number 1 \n",
6128 "duration_ms 929458 \n",
6129 "energy 0.898 \n",
6130 "explicit False \n",
6131 "external_ids {'isrc': 'GBCBR1600265'} \n",
6132 "external_urls {'spotify': 'https://open.spotify.com/track/3E... \n",
6133 "href https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD... \n",
6134 "id 3Ey71ndsJ2GDMgT0hVJlPs \n",
6135 "instrumentalness 0.122 \n",
6136 "key 9 \n",
6137 "liveness 0.914 \n",
6138 "loudness -5.708 \n",
6139 "mode 1 \n",
6140 "name Midnight Rambler - Live \n",
6141 "popularity 34 \n",
6142 "preview_url https://p.scdn.co/mp3-preview/20b0c963ec9199d1... \n",
6143 "speechiness 0.074 \n",
6144 "tempo 129.742 \n",
6145 "time_signature 4 \n",
6146 "track_href https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD... \n",
6147 "track_number 11 \n",
6148 "type audio_features \n",
6149 "uri spotify:track:3Ey71ndsJ2GDMgT0hVJlPs \n",
6150 "valence 0.363 \n",
6151 "\n",
6152 "[34 rows x 275 columns]"
6153 ]
6154 },
6155 "execution_count": 33,
6156 "metadata": {},
6157 "output_type": "execute_result"
6158 }
6159 ],
6160 "source": [
6161 "stones_tracks = pd.DataFrame(list(tracks.find({'artist_id': stones_id})))\n",
6162 "stones_tracks.T"
6163 ]
6164 },
6165 {
6166 "cell_type": "markdown",
6167 "metadata": {},
6168 "source": [
6169 "How happy are the Beatles and Stones tracks?"
6170 ]
6171 },
6172 {
6173 "cell_type": "code",
6174 "execution_count": 38,
6175 "metadata": {},
6176 "outputs": [
6177 {
6178 "data": {
6179 "text/plain": [
6180 "<matplotlib.axes._subplots.AxesSubplot at 0x7f6dd7dddda0>"
6181 ]
6182 },
6183 "execution_count": 38,
6184 "metadata": {},
6185 "output_type": "execute_result"
6186 },
6187 {
6188 "data": {
6189 "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXUAAAEACAYAAABMEua6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEzdJREFUeJzt3X+MbHdZx/H3Uy+0aCl7+dUt3tKVUFrEHwsmpf6IDD8C\nVIVC4kVIwK5WRYNKJDG0/NMQEmP/IBCDiImFexFJQZC2CNpCLgckiICl0EApVbltL9jlR7k01Uhb\n7uMfM7uzbOfunN2ZOd8zZ96vZJI5c2f2+5wnZ5979jNzdiMzkSR1wymlC5AkTY9DXZI6xKEuSR3i\nUJekDnGoS1KHONQlqUP21XlSRBwFvgecAO7PzAsiYj/wHuAc4Cjwksz83ozqlCTVUPdM/QTQy8yn\nZuYFg8cuAz6amecBR4DLZ1GgJKm+ukM9Rjz3YuDw4P5h4EXTKkqStDd1h3oC10fEZyPidwaPnZmZ\n6wCZeRfwmFkUKEmqr1amDvxCZt4VEY8BboiIW+kPeklSi9Qa6oMzcTLzWxFxDXABsB4RZ2bmekQs\nA98c9dqIcPhL0h5kZuz2NWPjl4j40Yg4fXD/x4DnAjcD1wFrg6ddAly7Q2HeMrniiiuK19CWm72w\nF/Zi59te1TlTPxP4wOCMex/wd5l5Q0R8DnhvRPw2cAdwcM9VLIijR4+WLqE17MWQvRiyF5MbO9Qz\n82vA6ojH7waeM4uiJEl74xWlDVpbWytdQmvYiyF7MWQvJheTZDe1FojIWa8hSV0TEeQs3ijV9FRV\nVbqE1rAXQ/ZiyF5MzqEuSR1i/CJJLWT8IklyqDfJvHDIXgzZiyF7MTmHuiR1iJm6JLWQmbokyaHe\nJPPCIXsxZC+G7MXkHOqS1CFm6pLUQmbq0pxaXl4hIorclpdXSu++psyh3iDzwiF7MbS+fjv9vw7Z\n/K2/dnt4XEzOoS5JHWKmLhUWEZT7O+4x0Z9O0+yYqUuSHOpNMi8cshcaxeNicg51SeoQM3WpMDN1\njWKmLklyqDfJvHDIXmiUJo+Lrl70tW9mX1mSWmx40VeJtXedqtRmpi4VZqZeRtv7bqYuSXKoN8kc\necheaBSPi8k51CWpQ8zUpcLanu12Vdv7bqYuSXKoN8m8cMheaBSPi8k51CWpQ8zUpcLanu12Vdv7\nbqYuSXKoN8m8cMheaBSPi8k51CWpQ2pn6hFxCvA54FhmvjAiVoCrgf3AjcArMvOBEa8zU5d20PZs\nt6va3vcmMvVXA1/esn0l8MbMPA84Dly628UlSdNVa6hHxAHgV4C/2fLws4D3D+4fBl483dK6x7xw\nyF5oFI+LydU9U38T8KcMflaJiEcB383ME4N/PwY8bvrlSZJ2Y+wfyYiIXwXWM/OmiOhtPDy4bXXS\ngGhtbY2VlRUAlpaWWF1dpdfrf6mN/5kXYbvX67WqHrfbsz20sd1raLtfQ+n939huup7m+72xzYPq\nqaqKQ4cOAWzOy70Y+0ZpRPwZ8HLgAeBhwMOBa4DnAsuZeSIiLgSuyMyLRrzeN0qlHbT9Dbuuanvf\nZ/ZGaWa+LjMfn5lPAF4KHMnMlwMfAw4OnnYJcO1uF180Dz4rW1z2QqN4XExuks+pXwa8JiK+CjwS\nuGo6JUmS9srf/SIV1vYYoKva3nd/94skyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7tttVbe+7mbok\nyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7tttVbe+7mbokyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7\ntttVbe+7mbokyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7tttVbe+7mbokyaHeJPPCIXuhUTwuJrev\ndAGSFtfy8grr67eXLqNTzNSlwtqe7c509cL73ua+m6lLkhzqTTIvHLIXGq0qXcDcc6hLUoeYqUuF\nlc6VzdTLrG2mLkkay6HeIHPkIXuh0arSBcw9h7okdYiZulRY6VzZTL3M2mbqkqSxHOoNMkceshca\nrSpdwNxzqEtSh5ipS4WVzpXN1MusbaYuSRrLod4gc+Qhe6HRqtIFzD2HuiR1yNhMPSJOBT4BPJT+\nH9V4X2a+PiJWgKuB/cCNwCsy84ERrzdTl3ZQOlc2Uy+zdrFMPTO/DzwzM58KrAIXRcTTgSuBN2bm\necBx4NLdLi5Jmq5a8Utm/u/g7qn0z9YTeCbw/sHjh4EXT726jjFHHrIXGq0qXcDcqzXUI+KUiPg8\ncBfwEeA/geOZeWLwlGPA42ZToiSprl19Tj0izgA+AFwBvD0znzR4/ADwocz82RGvMVOXdlA6VzZT\nL7P2rDL1fbt5cmbeExEfBy4EliLilMHZ+gHgGyd73draGisrKwAsLS2xurpKr9cDhj+Gu+32Im8P\nbWz3Gtp+yGCwllTR3P62ZXuwteV4qKqKQ4cOAWzOy72o8+mXRwP3Z+b3IuJhwPXAnwOXAP+Qme+J\niL8CvpCZbxvxes/UB6qq2vxmXnT2Ymhxz1ZHrV8xHIBNr92ksmfqZwGHI+IU+hn8ezLzwxFxC3B1\nRLwB+Dxw1W4XlyRNl7/7RSrMM/VF3Hd/94skqQaHeoP8bPaQvdBoVekC5p5DXZI6xExdKsxMfRH3\n3UxdklSDQ71B5shD9kKjVaULmHsOdUnqEDN1qTAz9UXcdzN1SVINDvUGmSMP2QuNVpUuYO451CWp\nQ8zUpcLM1Bdx383UJUk1ONQbZI48ZC80WlW6gLnnUJekDjFTlwozU1/EfTdTlyTV4FBvkDnykL3Q\naFXpAuaeQ12SOsRMXSrMTH0R991MXZJUg0O9QebIQ/ZCo1WlC5h7DnVJ6hAzdakwM/VF3HczdUlS\nDQ71BpkjD9kLjVaVLmDuOdQlqUPM1KXCzNQXcd/N1CVJNTjUG2SOPGQvNFpVuoC551CXpA4xU5cK\nM1NfxH03U5ck1eBQb5A58pC90GhV6QLmnkNdkjrETF0qzEx9Efe9YKYeEQci4khEfDkibo6IPx48\nvj8iboiIWyPi+oh4xG4XlyRNV5345QHgNZn5k8DPA6+KiPOBy4CPZuZ5wBHg8tmV2Q3myEP2QqNV\npQuYe2OHembelZk3De7fC9wCHAAuBg4PnnYYeNGsipQk1bOrTD0iVuj/V/pTwJ2ZuX/Lv30nMx81\n4jVm6tIOzNQXcd9b8Dn1iDgdeB/w6sEZu5NaklpmX50nRcQ++gP9bzPz2sHD6xFxZmauR8Qy8M2T\nvX5tbY2VlRUAlpaWWF1dpdfrAcNsdRG2t+bIbain5PbGY22pp/T20MZ2r6HtjceaWm/c+m8GVgvW\n09T2YGvbfDh06BDA5rzci1rxS0S8E/h2Zr5my2NXAndn5pUR8Vpgf2ZeNuK1xi8DVVVtfjMvOnsx\nZPyydf2KHx74Ta7dpNnFL2OHekT8IvAJ4Gb6HUjgdcBngPcCZwN3AAcz8/iI1zvUpR041Bdx3wsO\n9Uk51KWdOdQXcd9b8EapJudns4e292J5eYWIKHJbXl4p0gONUpUuYO7VeqNUmrX19dspdda0vr7r\nkyGptYxf1AqlI4iSx2jpfTd+KbO28YskaSyHeoPM1IfshUarShcw9xzqktQhZupqhdK5spl6KYu6\n72bqkqQaHOoNMkceshcarSpdwNzzc+ratLy8Mvi8uKR5ZaauTYub7Zqpl7Oo+26mLkmqwaHeIHPk\nrarSBaiVqtIFzD0zdYlTBxGINP/M1LVpcbNdc+VyFnXfzdQlSTU41Btkpr5VVboAtVJVuoC551CX\npA4xU9cmM/VS3PdFXNtMXZI0lkO9QWbqW1WlC1ArVaULmHsOdUnqEDN1bTJTL8V9X8S1zdQlSWM5\n1Btkpr5VVboAtVJVuoC551CXpA4xU9cmM/VS3PdFXNtMXZI0lkO9QWbqW1WlC1ArVaULmHsOdUnq\nEDN1bTJTL8V9X8S1zdQlSWM51Btkpr5VVboAtVJVuoC551CXpA4xU9cmM/VS3PdFXNtMXZI01tih\nHhFXRcR6RHxxy2P7I+KGiLg1Iq6PiEfMtszmLC+vEBFFbsvLK6V3v0FV6QLUSlXpAuZenTP1dwDP\n2/bYZcBHM/M84Ahw+bQLK2V9/Xb6P5LN4vaxHf+9v7Yk7V2tTD0izgE+mJk/M9j+CvCMzFyPiGWg\nyszzT/LaucrUS+fKJXtVet8Xc+3S67vvpdZuW6b+2MxcB8jMu4DH7PHrSJKmaF8Ti6ytrbGysgLA\n0tISq6ur9Ho9YPjZ7bZs91VAb8t9prS9cf/kzy+//7vZn0m2Nx7but3k+qPqWcT1Nx5rar1x678Z\nWC1YT1Pbg60t339VVXHo0CGAzXm5F3uNX24Belvil49l5pNP8lrjl00VP3wwP2j1BYpfKn64F4v6\nY3jp9du27xU7f4/Mcu0mlY9fYnDbcB2wNrh/CXDtbhdeTL3SBbRIr3QBaqVe6QLm3tgz9Yh4N/1O\nPwpYB64ArgH+HjgbuAM4mJnHT/J6z9Trr75AZ+oPWn1B1y69vvteau1Znal7Rek2xi/GL4u1ftv2\nvcL4ZfAMryiVJHmmvk3pCGJxztQftPqCrl16ffe91NqeqUuSxnKoN6oqXUCLVKULUCtVpQuYe41c\nfKS6Th1EIJK0N2bq2yxurlx6/UVdu/T67nuptc3UJUljOdQbVZUuoEWq0gWolarSBcw9h7okdYiZ\n+jZm6ou47/a9nEXddzN1SVINDvVGVaULaJGqdAFqpap0AXPPoS5JHWKmvo2Z+iLuu30vZ1H33Uxd\nklSDQ71RVekCWqQqXYBaqSpdwNxzqEtSh5ipb2Omvoj7bt/LWdR9N1OXJNXgUG9UVbqAFqlKF6BW\nqkoXMPcc6pLUIWbq25ipL+K+2/dyFnXfzdQlSTU41BtVlS6gRarSBaiVqtIFzD2HuiR1SOsy9Xvv\nvZd77713hhXt7KyzzmIxM77S6y/q2qXXd99LrT2rTH3fnmuakXPP/WmOH/8fIpr/IeL+++9pfE1J\nmqbWDfW77/4W9913F3B642ufdtqreOCBt85whQrozfDrz5MKe6EHq/C4mIyZuiR1iEO9Ub3SBbRI\nr3QBaqVe6QLmnkNdkjrEod6oqnQBLVKVLkCtVJUuYO451CWpQxzqjeqVLqBFeqULUCv1Shcw9xzq\nktQhEw31iHh+RHwlIr4aEa+dVlHdVZUuoEWq0gWolarSBcy9PQ/16F/y+RbgecBTgJdFxPnTKqyb\nbipdQIvYC43icTGpSc7ULwBuy8zbM/N+4Grg4umU1VXHSxfQIvZCo3hcTGqSof7jwJ1bto8NHpMk\nFTLJ734Z9dvDJv6VZ/v2PYTTTjtIiV9Lc999N894haMz/vrz5GjpAtRKR0sXMPcmmZzHgMdv2T4A\nfGPUE/t/Im43/nmvNU3Jrn/b5S4cLrh2HU2uv70XJfd9kfreprVHrT/ue2SWaze48q7nYs2vu9ff\npx4RPwLcCjwb+G/gM8DLMvOW6ZUnSdqNPZ+pZ+YPIuIPgRvoZ/NXOdAlqayZ/+UjSVJzpnZF6bgL\nkSLioRFxdUTcFhH/GhGPH/V15l2NPvxJRHwpIm6KiI9ExNkl6mxC3YvTIuLXI+JERDytyfqaVKcX\nEfGSwbFxc0S8q+kam1Lje+TsiDgSETcOvk8uKlFnEyLiqohYj4gv7vCcvxjMzZsiYnXsF83MiW/0\n/3P4D+Ac4CH0ryA4f9tz/gB46+D+bwBXT2PtNt1q9uEZwGmD+7/fxT7U7cXgeacDHwc+BTytdN0F\nj4snAv8OnDHYfnTpugv24q+BVw7uPxn4Wum6Z9iPXwJWgS+e5N8vAj40uP904NPjvua0ztTrXIh0\nMcO3td9H/w3Wrhnbh8z8eGb+32Dz03T3s/11L057A3Al8P0mi2tYnV78LvCXmXkPQGZ+u+Eam1Kn\nFyeAMwb3l4CvN1hfozLzk8B3d3jKxcA7B8/9N+AREXHmTl9zWkO9zoVIm8/JzB8AxyPikVNavy12\ne0HWpcA/zbSicsb2YvCj5IHM/HCThRVQ57h4EnBeRHwyIj4VEc9rrLpm1enF64FXRMSdwD8Cf9RQ\nbW20vV9fZ8yJ4LSu8KlzIdL258SI58y72hdkRcTLgZ+jH8d00Y69iP6HdN8EXDLmNV1Q57jYRz+C\n+WX613/8S0Q8ZePMvUPq9OJlwDsy800RcSHwLvq/X2oR7foiz2mdqde5EOlO4GzY/Iz7GZm5048d\n86jWBVkR8RzgcuAFgx9Bu2hcLx5O/xu1ioivARcC13b0zdI6x8Ux4NrMPJGZR+lfA3JuM+U1qk4v\nLgXeC5CZnwZOi4hHN1Ne6xxjMDcHTnqR54ZpDfXPAk+MiHMi4qHAS4Hrtj3ngwzPyg4CR6a0dpuM\n7UNEPBV4G/DCzPxOgRqbsmMvMvOezHxsZj4hM3+C/vsLL8jMGwvVO0t1vj+uAZ4FMBhg5wL/1WiV\nzajTi9uB5wBExJOBUzv8HgP0z8ZP9lPqdcBvAgx+ajmemes7frUpvov7fPpnF7cBlw0eez3wa4P7\np9L/3/c2+t/AK6XfeZ7Ru9nj+vAR+lfg3gh8HrimdM2lerHtuUfo6Kdf6vYCeCPwJeALwMHSNZfq\nBf1PvHyS/idjbgSeXbrmGfbi3fTPvL8P3AH8FvBK4Pe2POct9D8x9IU63yNefCRJHeKfs5OkDnGo\nS1KHONQlqUMc6pLUIQ51SeoQh7okdYhDXZI6xKEuSR3y/3j8kLVGIW87AAAAAElFTkSuQmCC\n",
6190 "text/plain": [
6191 "<matplotlib.figure.Figure at 0x7f6dd7e18be0>"
6192 ]
6193 },
6194 "metadata": {},
6195 "output_type": "display_data"
6196 }
6197 ],
6198 "source": [
6199 "beatles_tracks['valence'].hist()"
6200 ]
6201 },
6202 {
6203 "cell_type": "code",
6204 "execution_count": 35,
6205 "metadata": {},
6206 "outputs": [
6207 {
6208 "data": {
6209 "text/plain": [
6210 "<matplotlib.axes._subplots.AxesSubplot at 0x7f6de5a1f1d0>"
6211 ]
6212 },
6213 "execution_count": 35,
6214 "metadata": {},
6215 "output_type": "execute_result"
6216 },
6217 {
6218 "data": {
6219 "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXUAAAEACAYAAABMEua6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGLJJREFUeJzt3X+QJHdZx/H35xI8EUg2JHpbGsgAIkZLaoMoKbF0gCgJ\nKEFLNCjCWikEfyKgEvjDE0XLWJVA+QO1JJUNagyKkgR/kUjyBaMGlctB+GEE4QJRbxVM1Gh5FbzH\nP6Z3p+9ud6d3Z6a/3+n+vKqmbrqnZ5+nn5t5tveZ6RlFBGZm1g37cidgZmaz46ZuZtYhbupmZh3i\npm5m1iFu6mZmHeKmbmbWIY2buqR9ku6SdHO1vCbpE9W6Q5KePL80zcysidN3se0rgA8DZ1TLAbw6\nIt4x86zMzGxPGh2pSzoXeA7wlr3c38zM2tG0Kb8R+AlGR+d1b5B0WNJVkh4229TMzGy3JjZ1Sc8F\n1iPiMKDaTVdExPnA1wBnA6+ZT4pmZtZUk5n604HnSXoO8HDgUZLeGhEvBoiIhyRdC7x6qztL8ofL\nmJntQURo8lYnmnikHhGvi4jHRsTjgcuA2yLixZKWASQJeD7woR1+hi8RHDx4MHsOpVxcC9fCtdj5\nsle7effLyX5H0jmMRjKHgZdP8bN64ciRI7lTKIZrMeZajLkW09tVU4+I9wDvqa4/ay4ZmZnZnvkt\niS1aXV3NnUIxXIsx12LMtZieppndNAogxbxjmJl1jSRiHi+U2uyklHKnUAzXYsy1GHMtpuembmbW\nIR6/mJkVyOMXMzNzU2+T54Vj9VosLw+QlOVy2mmPyBZbEsvLAz8ualyL6U1z8pHZTKyv38upnxXX\njuPHlS02wPr6rv+6NtuRZ+qW3eiTJnI9RvI2ddBUp4Rbd3mmbmZmbupt8rxwzLUYcy3GXIvpuamb\nmXWIZ+qWnWfqfn7YqTxTNzMzN/U2eV445lqMuRZjrsX03NTNzDqk8Uxd0j7g74D7IuJ5kgbADcBZ\nwCHgeyPic1vczzN125Fn6n5+2KnamKm/AvhIbflK4KqIeBLwAHD5boObmdlsNWrqks4FngO8pbb6\nmcAfVNevA75ttql1j+eFY67FmGsx5lpMr+mR+huBn6D6O1XS2cD9EXG8uv0+4Itnn56Zme3GxA/0\nkvRcYD0iDksabqyuLnXbDgZXV1cZDAYALC0tsbKywnA4+lEbv5n7sDwcDovKp6TlsY3lYUvLG+va\nirdV/Fomhfx/5FreWFdKPm0up5RYW1sD2OyXezHxhVJJPw+8CPgc8HDgUcCNwDcDyxFxXNKFwMGI\nuGSL+/uFUtuRXyj188NONbcXSiPidRHx2Ih4PHAZcFtEvAi4HXhBtdlLgJt2G7xvTj0q7S/XYsy1\nGHMtpjfN+9SvAF4l6R+ARwPXzCYlMzPbK3/2i2Xn8YufH3aqvY5f/M1HZlntr36pte/AgfM4evRI\nltg2P/6YgBZ5XjjmWmw4xujlqWj9MvoawbL4cTE9N3Uzsw7xTN2y6/tMPee++7lZLn+eupmZuam3\nyfPCMdeiLuVOoBh+XEzPTd3MrEM8U7fsPFP3TN1O5Zm6mZm5qbfJ88Ix16Iu5U6gGH5cTM9N3cys\nQzxTt+w8U/dM3U7lmbqZmbmpt8nzwjHXoi7lTqAYflxMz03dzKxDPFO37DxT90zdTjW3mbqk/ZLe\nJ+kuSXdLOlitv1bSJ6r1hyQ9eS+Jm5nZ7DT5jtJjwDMi4gJgBbhE0tOqm388Ii6IiKdExAfnmWgX\neF445lrUpdwJFMOPi+k1mqlHxP9UV/cz+rak49Vynq9sMTOzLTWaqUvaB7wfeALwqxHxWknXAhcy\n+uqWdwNXRMRDW9zXM3XbkWfqnqnbqeb6HaURcRy4QNIZwDskfQWjJr4u6WHAbwKvAd6w1f1XV1cZ\nDAYALC0tsbKywnA4BMZ/bnm538tjG8vDlpY31rUVr6z4pfz/e3lISom1tTWAzX65F7t+94uknwIe\njIira+u+EXh1RDxvi+19pF5JKW3+Z/ZdvRY+Ur+dE5t8e7FLe276OTI2z3e/nCPpzOr6w4GLgL+X\ntFytE/B84EO7DW5mZrM18Uhd0lcB1zH6BbAPeFtE/JykdwPnMDrUOAy8vPaCav3+PlK3HflI3TN1\nO9Vej9R98pFl56bupm6n8gd6LQC/B3fMtahLuRMohh8X03NTNzPrEI9fLDuPXzx+sVN5/GJmZm7q\nbfK8cMy1qEu5EyiGHxfTa3RGqZnZLC0vD1hfvzdb/AMHzuPo0SPZ4s+TZ+qWnWfq/Zup5/0/h0V4\nPcEzdTMzc1Nvk+eFY65FXcqdQEFS7gQWnpu6mVmHeKZu2Xmm7pl6hgw8Uzczs/K5qbfIc+Qx16Iu\n5U6gICl3AgvPTd3MrEM8U7fsPFP3TD1DBp2dqfuMUrPe2l81V+uSJl9nt1/S+yTdJeluSQer9QNJ\nd0q6R9LvSvIviAk8Rx5zLepSprjHGB0t57hsJ81u93pqYlOPiGPAMyLiAmAFuETS04Argasi4knA\nA8Dlc83UzMwm2tVMXdIXAO8FfhD4I2A5Io5LuhD46Yi4eIv7eKZuO/JMvY/7nr/upfelub5PXdI+\nSXcBR4FbgX8EHoiI49Um9wFfvNvgZmY2W43m4FXzvkDSGcA7gPO32my7+6+urjIYDABYWlpiZWWF\n4XAIjGerfViuz5FLyKe+fNllq1k/CnUsVf8OW1reWNdWvK3ivwn4sUzxcy2zze1vYjTlbSd+Kc+/\njf6wtrYGsNkv92LXb2mU9FPA/wA/yYnjl4MRcckW23v8Ukkpbf5nlqb9EUhi/ETr9xgAbufEJt9m\n7NLqnminFt0dv0xs6pLOAR6KiP+Q9HDgXcAvAC8B/jAi3ibp14APRMSvb3F/N/UF0N+5dglNvY/7\nnr/upfeleTb1rwKuYzR/3we8LSJ+TtLjgBuAs4C7gBdFxENb3N9NfQG4qefS133PX/fS+9Lcmvq0\n3NTHPH6pS3j8shHf45exhMcvI/6URjMz85G6jXj8kktf9z1/3UvvSz5SNzMzN/U2+fNO6lLuBAqS\ncidQkJQ7gYXnpm5m1iGeqRvgmXo+fd33/HUvvS95pm5mZm7qbfJMvS7lTqAgKXcCBUm5E1h4bupm\nZh3imboBnqnn09d9z1/30vuSZ+pmZuam3ibP1OtS7gQKknInUJCUO4GF56ZuZtYhnqkb4Jl6Pn3d\n9/x1L70veaZuZmaTm7qkcyXdJukjku6W9CPV+oOS7pN0qLpcPP90F5tn6nUpdwIFSbkTKEjKncDC\na/LF058DXhURhyU9Eni/pFur266OiKvnl56Zme3GXr54+kbgl4GvBx6MiKsmbO+Z+gLwTD2Xvu57\n/rqX3pdamalLGgArwPuqVT8k6bCkt0g6c7fBzcxstho39Wr08nbgFRHxIPBm4AkRsQIcBTyGmcAz\n9bqUO4GCpNwJFCTlTmDhNZmpI+l0Rg39tyLiJoCI+LfaJr8JvHO7+6+urjIYDABYWlpiZWVl8wuY\nNxqdl/Muj20sD+e8fHK8tuNvLG+sayveVvEPZ4yfa5ltbj/cavxSnn/D4ZCUEmtrawCb/XIvGs3U\nJb0V+ExEvKq2bjkijlbXXwl8TUR89xb39Ux9AXimnktf9z1/3UvvS3udqU9s6pKeDrwXuJvR/0IA\nrwO+m9F8/ThwBHhZRKxvcX839QXgpp5LX/c9f91L70tza+rTclMfSylt/tlVmvabemL8J3G/mwvc\nzonjmDZjl1b3RDu16G5T9xmlZmYd4iN1Azx+yaev+56/7qX3JR+pm5mZm3qb/D71upQ7gYKk3AkU\nJOVOYOG5qZuZdYhn6gZ4pp5PX/c9f91L70ueqZuZmZt6mzxTr0u5EyhIyp1AQVLuBBaem7qZWYd4\npm6AZ+r59HXf89e99L7kmbqZmbmpt2mnmfry8gBJ2S7tSxlilirlTqAgKXcCC6/R56nb/K2v30vu\nP0fNbPF5pl6IvDNt6O981XXvX+xR/NL7kmfqZmbmpt4mv0+9LuVOoCApdwIFSbkTWHgTm7qkcyXd\nJukjku6W9KPV+rMk3SLpHknvknTm/NM1M7OdNPk6u2VgOSIOS3ok8H7gUuD7gM9GxC9Keg1wVkRc\nscX9PVNvwDP1PsbOHb+vsUfxS+9Lc5upR8TRiDhcXX8Q+ChwLqPGfl212XXA83cb3MzMZmtXM3VJ\nA0ZfNn0ncGDji6Yj4ijwhbNOrms8U69LuRMoSMqdQEFS7gQWXuOmXo1e3g68ojpiL/tvFzOzHmp0\n8pGk0xk19N+KiJuq1euSDkTEejV3/9ft7r+6uspgMABgaWmJlZUVhsMhMD567cPycDjc9vaxjeVh\ny8t9jb+xrq14W8Wvazt+rmW2uX1jXTvxS+oPKSXW1tYANvvlXjQ6+UjSW4HPRMSrauuuBP49Iq70\nC6XT8wulfYydO35fY4/il96X5vZCqaSnA98DPFPSXZIOSboYuBL4Jkn3ABcBv7Db4H3jmXpdyp1A\nQVLuBAqSciew8CaOXyLiL4HTtrn5otmmY2Zm0/BnvxTC45c+xs4dv6+xR/FL70v+7BczM3NTb5Nn\n6nUpdwIFSbkTKEjKncDCc1M3M+sQz9QL4Zl6H2Pnjt/X2KP4pfclz9TNzMxNvU2eqdel3AkUJOVO\noCApdwILz03dzKxDPFMvhGfqfYydO35fY4/il96XPFM3MzM39TZ5pl6XcidQkJQ7gYKk3AksPDd1\nM7MO8Uy9EJ6p9zF27vh9jT2KX3pf8kzdzMzc1NvkmXpdyp1AQVLuBAqSciew8NzUzcw6ZOJMXdI1\nwLcA6xHx5GrdQeCljL+X9HUR8Wfb3N8z9QY8U+9j7Nzx+xp7FL/0vjTPmfq1wLO3WH91RDylumzZ\n0M3MrF0Tm3pE3AHcv8VNu/4N0neeqdel3AkUJOVOoCApdwILb5qZ+g9JOizpLZLOnFlGZma2ZxO/\neHobbwZ+JiJC0huAq4HLt9t4dXWVwWAAwNLSEisrKwyHQ2B89FrC8vLygPX1e3fc8flL1b/Dlpf7\nGn9jXVvxtopf13b8XMtsc/vGunbil9R/Ukqsra0BbPbLvWh08pGk84B3brxQ2vS26vaFeaE074uV\n+V846ue+u+79iz2KX3pfmvfJR6I2Q5e0XLvt24EP7TZwP6XcCRQk5U6gICl3AgVJuRNYeBPHL5Ku\nZ/S3y9mSPgUcBJ4haQU4DhwBXjbHHM3MrCF/9kuNxy993HfXvX+xR/FL70t7Hb/s9YVSM7MFtr86\niGvfgQPncfTokbn9fH9MQKtS7gQKknInUJCUO4GCpJbiHGP0l0L7l3m/w85N3cysQzxTr/FMvY/7\n7rr3L3bu+M3m+f48dTMzc1NvV8qdQEFS7gQKknInUJCUO4GF56ZuZtYhnqnXeKbex3133fsXO3d8\nz9TNzKwhN/VWpdwJFCTlTqAgKXcCBUm5E1h4bupmZh3imXqNZ+p93HfXvX+xc8f3TN3MzBpyU29V\nyp1AQVLuBAqScidQkJQ7gYXnpm5m1iGeqdd4pt7HfXfd+xc7d/zMM3VJ10hal/TB2rqzJN0i6R5J\n75J05m4Dm5nZ7DUZv1wLPPukdVcAfx4RTwJuA14768S6KeVOoCApdwIFSbkTKEjKncDCm9jUI+IO\n4P6TVl8KXFddvw54/ozzMjOzPWg0U5d0HvDOiHhytfzvEfHo2u2fjYizt7mvZ+rNomeMnTt+X2Pn\njt/X2Lnjz3em3sp3lK6urjIYDABYWlpiZWWF4XAIQEoJoJjl8Z9/bS8z4XbHn8/yxrq24pUWP9cy\nE27vR/x6/0kpsba2BrDZL/dir0fqHwWGEbEuaRm4PSLO3+a+PlLflDjxyXxC9DnHnqTt+IlxLfp+\nxHg72z8u5h27tLon2qlFd4/Um75PXdVlw83AanX9JcBNuw1sZmazN/FIXdL1jH51ng2sAweBG4Hf\nBx4DfAp4QUQ8sM39faTeLHrG2Lnj9zV27vh9jZ07/nyP1H3yUY2beh/33XXvX+zc8csYv9hMpNwJ\nFCTlTqAgKXcCBUm5E1h4bupmZh3i8UuNxy993HfXvX+xc8f3+MXMzBpyU29Vyp1AQVLuBAqScidQ\nkJQ7gYXnpm5m1iGeqdd4pt7HfXfd+xc7d3zP1M3MrCE39Val3AkUJOVOoCApdwIFSbkTWHhu6mZm\nHeKZeo1n6n3cd9e9f7Fzx/dM3czMGnJTb1XKnUBBUu4ECpJyJ1CQlDuBheembmbWIZ6p13im3sd9\nd937Fzt3fM/UzcysoamauqQjkj4g6S5JfzOrpLor5U6gICl3AgVJuRMoSMqdwMI7fcr7H2f0BdT3\nzyIZMzObzlQzdUmfBJ4aEZ/dYRvP1JtFzxg7d/y+xs4dv6+xc8cve6YewLsk/a2kl075s8zMbErT\njl++LiKOSvpC4FZJH42IO07eaHV1lcFgAMDS0hIrKysMh0MAUkoAxSyPZ3rzWN64vtXtnLTcRj45\n42+syxV/Y3ljXVvxtor/JuDHMsXPtcw2t78JWMkYv63laqnWf1JKrK2tAWz2y72Y2VsaJR0E/isi\nrj5pvccvmxInPplPiD7n2JO0HT8xrkXfxwC3s/3jYt6xS6t7op1adHf8suemLukLgH0R8aCkRwC3\nAK+PiFtO2s5NvVn0jLFzx+9r7Nzx+xo7d/z5NvVpxi8HgHdIiurn/M7JDd3MzNrlM0prPH7x+CVP\nfI9fxhIev1Rb+YxSMzPzkXqNZ+p93HfXvX+xc8f3kbqZmTXkpt6qlDuBgqTcCRQk5U6gICl3Agtv\n2pOPZur663+Pd7/7vbnTMDNbWEXN1J/4xKfy8Y8/Azhvrjlt7VbgZjxjdOz+xO9r7Nzxy32f+px8\nF/DUDHH/m1FTNzNbXJ6ptyrlTqAgKXcCBUm5EyhIyp3AwnNTNzPrEDf1Vg1zJ1CQYe4ECjLMnUBB\nhrkTWHhu6mZmHeKm3qqUO4GCpNwJFCTlTqAgKXcCC89N3cysQ9zUWzXMnUBBhrkTKMgwdwIFGeZO\nYOG5qZuZdchUTV3SxZL+XtI/SHrNrJLqrpQ7gYKk3AkUJOVOoCApdwILb89NXdI+4FeAZwNfCbxQ\n0pfPKrFuOpw7gYK4FmOuxZhrMa1pjtS/FvhYRNwbEQ8BNwCXziatrnogdwIFcS3GXIsx12Ja0zT1\nLwE+XVu+r1pnZmaZTPOBXlt9ethUH3u2f//DeMQjXslppy1N82P25Nixj3Ps2LyjHJl3gAVyJHcC\nBTmSO4GCHMmdwMLb80fvSroQ+OmIuLhavgKIiLjypO0W47vszMwKs5eP3p2mqZ8G3AM8C/gX4G+A\nF0bER/f0A83MbGp7Hr9ExP9J+mHgFkaz+Wvc0M3M8pr7Nx+ZmVl7ZnZG6aQTkSR9nqQbJH1M0l9L\neuysYpemQS1eKenDkg5LulXSY3Lk2YamJ6hJ+g5JxyU9pc382tSkFpK+s3ps3C3pt9vOsS0NniOP\nkXSbpEPV8+SSHHnOm6RrJK1L+uAO2/xS1TcPS1qZ+EMjYuoLo18OH2f05aIPY3QGwZeftM0PAG+u\nrn8XcMMsYpd2aViLbwQ+v7r+8j7XotrukcB7gL8CnpI774yPiy8F3g+cUS2fkzvvjLX4DeBl1fXz\ngU/mzntOtfh6YAX44Da3XwL8cXX9acCdk37mrI7Um5yIdClwXXX97YxeYO2iibWIiPdExP9Wi3fS\n3ff3Nz1B7WeBK4G5v6k0oya1eCnwqxHxnwAR8ZmWc2xLk1ocB86ori8B/9Rifq2JiDuA+3fY5FLg\nrdW27wPOlHRgp585q6be5ESkzW0i4v+AByQ9ekbxS7Lbk7IuB/50rhnlM7EW1Z+T50bEn7SZWAZN\nHhdfBjxJ0h2S/krSs1vLrl1NavF64HslfRr4I+BHWsqtNCfX6p+YcBA4zclHdU1ORDp5G22xTRc0\nPilL0ouAr2Y0jumiHWshScAbgZdMuE8XNHlcnM5oBPMNwGOBv5D0lRtH7h3SpBYvBK6NiDdW58T8\nNqPPmOqbXZ/kOasj9fsYPQg3nAv880nbfBp4DGy+x/2MiNjpz45F1aQWSLoIeC3wrdWfoF00qRaP\nYvRETZI+CVwI3NTRF0ubPC7uA26KiOMRcYTReSBPbCe9VjWpxeXA7wFExJ3A50s6p530inIfVd+s\nbNlP6mbV1P8W+FJJ50n6POAy4OaTtnkn4yOyFwC3zSh2aSbWQtIFwK8Dz4uIz2bIsS071iIi/jMi\nvigiHh8Rj2P0+sK3RsShTPnOU5PnyI3AMwGqBvZE4BOtZtmOJrW4F7gIQNL5wP4Ov8Ygtv8L9Wbg\nxbB5Fv8DEbG+40+b4au4FzM6svgYcEW17vXAt1TX9zP6zfsxRk/eQe5Xnuf4ivakWtzK6CzcQ8Bd\nwI25c85Vi5O2vY2OvvulaS2Aq4APAx8AXpA751y1YPSOlzsYvTPmEPCs3DnPqQ7XMzryPgZ8Cvg+\n4GXA99e2+RVG7xb6QJPnh08+MjPrEH+dnZlZh7ipm5l1iJu6mVmHuKmbmXWIm7qZWYe4qZuZdYib\nuplZh7ipm5l1yP8DII0KXpiILLYAAAAASUVORK5CYII=\n",
6220 "text/plain": [
6221 "<matplotlib.figure.Figure at 0x7f6de5994f28>"
6222 ]
6223 },
6224 "metadata": {},
6225 "output_type": "display_data"
6226 }
6227 ],
6228 "source": [
6229 "stones_tracks['valence'].hist()"
6230 ]
6231 },
6232 {
6233 "cell_type": "code",
6234 "execution_count": 31,
6235 "metadata": {},
6236 "outputs": [
6237 {
6238 "data": {
6239 "text/plain": [
6240 "275"
6241 ]
6242 },
6243 "execution_count": 31,
6244 "metadata": {},
6245 "output_type": "execute_result"
6246 }
6247 ],
6248 "source": [
6249 "tracks.find({'artist_id': stones_id, 'valence': {'$exists': True}}).count()"
6250 ]
6251 },
6252 {
6253 "cell_type": "markdown",
6254 "metadata": {},
6255 "source": [
6256 "## Lyrics search<a name=\"lyricssearch\"></a>\n",
6257 "Now to find the lyrics for each track. \n",
6258 "\n",
6259 "We start by searching for the Genius ID for the artists.\n",
6260 "\n",
6261 "Note that Genius doesn't like Python-generated requests to its API, so we set the header to pretend to be a command-line `curl` request.\n",
6262 "\n",
6263 "* [Top](#top)"
6264 ]
6265 },
6266 {
6267 "cell_type": "code",
6268 "execution_count": 39,
6269 "metadata": {},
6270 "outputs": [],
6271 "source": [
6272 "def genius_artist_search(artist_name, per_page=20):\n",
6273 " query = urllib.parse.urlencode({'q': artist_name,\n",
6274 " 'per_page': str(per_page)\n",
6275 " })\n",
6276 " headers = {'Accept': 'application/json',\n",
6277 " 'Authorization': 'Bearer ' + config['genius']['token'],\n",
6278 " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n",
6279 " request = urllib.request.Request('https://api.genius.com/search?{}'.format(query), \n",
6280 " headers=headers,\n",
6281 " method='GET')\n",
6282 " with urllib.request.urlopen(request) as f:\n",
6283 " response = json.loads(f.read().decode('utf-8'))\n",
6284 " return response"
6285 ]
6286 },
6287 {
6288 "cell_type": "code",
6289 "execution_count": 40,
6290 "metadata": {},
6291 "outputs": [
6292 {
6293 "data": {
6294 "text/plain": [
6295 "586"
6296 ]
6297 },
6298 "execution_count": 40,
6299 "metadata": {},
6300 "output_type": "execute_result"
6301 }
6302 ],
6303 "source": [
6304 "response = genius_artist_search('the beatles')\n",
6305 "beatles_genius_id = [hit['result']['primary_artist']['id'] for hit in response['response']['hits']][0]\n",
6306 "beatles_genius_id"
6307 ]
6308 },
6309 {
6310 "cell_type": "code",
6311 "execution_count": 41,
6312 "metadata": {},
6313 "outputs": [
6314 {
6315 "data": {
6316 "text/plain": [
6317 "774"
6318 ]
6319 },
6320 "execution_count": 41,
6321 "metadata": {},
6322 "output_type": "execute_result"
6323 }
6324 ],
6325 "source": [
6326 "response = genius_artist_search('rolling stones')\n",
6327 "stones_genius_id = [hit['result']['primary_artist']['id'] for hit in response['response']['hits']][0]\n",
6328 "stones_genius_id"
6329 ]
6330 },
6331 {
6332 "cell_type": "markdown",
6333 "metadata": {},
6334 "source": [
6335 "We can now get the song information for each track for each artist. Note that Genius keeps lots of things to do with artists, including sleeve notes and the like. We're just after the lyrics."
6336 ]
6337 },
6338 {
6339 "cell_type": "code",
6340 "execution_count": 42,
6341 "metadata": {},
6342 "outputs": [],
6343 "source": [
6344 "def genius_song_search(artist_id):\n",
6345 " songs = pd.DataFrame()\n",
6346 " page = 1\n",
6347 " while page:\n",
6348 " query = urllib.parse.urlencode({'page': page, 'per_page': 20})\n",
6349 " headers = {'Accept': 'application/json',\n",
6350 " 'Authorization': 'Bearer ' + config['genius']['token'],\n",
6351 " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n",
6352 " request = urllib.request.Request('https://api.genius.com/artists/{id}/songs?{query}'.format(id=artist_id,\n",
6353 " query=query), \n",
6354 " headers=headers,\n",
6355 " method='GET')\n",
6356 " with urllib.request.urlopen(request) as f:\n",
6357 " response = json.loads(f.read().decode('utf-8'))\n",
6358 " page = response['response']['next_page']\n",
6359 " for song in response['response']['songs']:\n",
6360 " if song['path'].endswith('lyrics'):\n",
6361 " song['_id'] = song['id']\n",
6362 " genius_tracks.replace_one({'_id': song['id']}, song, upsert=True)"
6363 ]
6364 },
6365 {
6366 "cell_type": "code",
6367 "execution_count": 43,
6368 "metadata": {},
6369 "outputs": [
6370 {
6371 "data": {
6372 "text/plain": [
6373 "1071"
6374 ]
6375 },
6376 "execution_count": 43,
6377 "metadata": {},
6378 "output_type": "execute_result"
6379 }
6380 ],
6381 "source": [
6382 "genius_song_search(beatles_genius_id)\n",
6383 "genius_tracks.find().count()"
6384 ]
6385 },
6386 {
6387 "cell_type": "code",
6388 "execution_count": 44,
6389 "metadata": {},
6390 "outputs": [
6391 {
6392 "data": {
6393 "text/plain": [
6394 "1071"
6395 ]
6396 },
6397 "execution_count": 44,
6398 "metadata": {},
6399 "output_type": "execute_result"
6400 }
6401 ],
6402 "source": [
6403 "genius_song_search(stones_genius_id)\n",
6404 "genius_tracks.find().count()"
6405 ]
6406 },
6407 {
6408 "cell_type": "code",
6409 "execution_count": 45,
6410 "metadata": {},
6411 "outputs": [
6412 {
6413 "data": {
6414 "text/plain": [
6415 "{'_id': 1497768,\n",
6416 " 'annotation_count': 1,\n",
6417 " 'api_path': '/songs/1497768',\n",
6418 " 'full_title': 'All Together on the Wireless Machine by\\xa0The\\xa0Beatles',\n",
6419 " 'header_image_thumbnail_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n",
6420 " 'header_image_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n",
6421 " 'id': 1497768,\n",
6422 " 'lyrics_owner_id': 1549345,\n",
6423 " 'path': '/The-beatles-all-together-on-the-wireless-machine-lyrics',\n",
6424 " 'primary_artist': {'api_path': '/artists/586',\n",
6425 " 'header_image_url': 'https://images.genius.com/b82dbb78926a812abfa10886ac84c1a8.1000x523x1.jpg',\n",
6426 " 'id': 586,\n",
6427 " 'image_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n",
6428 " 'is_meme_verified': False,\n",
6429 " 'is_verified': False,\n",
6430 " 'name': 'The Beatles',\n",
6431 " 'url': 'https://genius.com/artists/The-beatles'},\n",
6432 " 'pyongs_count': None,\n",
6433 " 'song_art_image_thumbnail_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n",
6434 " 'stats': {'hot': False, 'unreviewed_annotations': 0},\n",
6435 " 'title': 'All Together on the Wireless Machine',\n",
6436 " 'url': 'https://genius.com/The-beatles-all-together-on-the-wireless-machine-lyrics'}"
6437 ]
6438 },
6439 "execution_count": 45,
6440 "metadata": {},
6441 "output_type": "execute_result"
6442 }
6443 ],
6444 "source": [
6445 "genius_tracks.find_one()"
6446 ]
6447 },
6448 {
6449 "cell_type": "code",
6450 "execution_count": 46,
6451 "metadata": {
6452 "scrolled": false
6453 },
6454 "outputs": [
6455 {
6456 "data": {
6457 "text/html": [
6458 "<div>\n",
6459 "<table border=\"1\" class=\"dataframe\">\n",
6460 " <thead>\n",
6461 " <tr style=\"text-align: right;\">\n",
6462 " <th></th>\n",
6463 " <th>0</th>\n",
6464 " <th>1</th>\n",
6465 " <th>2</th>\n",
6466 " <th>3</th>\n",
6467 " <th>4</th>\n",
6468 " <th>5</th>\n",
6469 " <th>6</th>\n",
6470 " <th>7</th>\n",
6471 " <th>8</th>\n",
6472 " <th>9</th>\n",
6473 " <th>...</th>\n",
6474 " <th>1061</th>\n",
6475 " <th>1062</th>\n",
6476 " <th>1063</th>\n",
6477 " <th>1064</th>\n",
6478 " <th>1065</th>\n",
6479 " <th>1066</th>\n",
6480 " <th>1067</th>\n",
6481 " <th>1068</th>\n",
6482 " <th>1069</th>\n",
6483 " <th>1070</th>\n",
6484 " </tr>\n",
6485 " </thead>\n",
6486 " <tbody>\n",
6487 " <tr>\n",
6488 " <th>_id</th>\n",
6489 " <td>1497768</td>\n",
6490 " <td>210315</td>\n",
6491 " <td>123533</td>\n",
6492 " <td>123537</td>\n",
6493 " <td>117722</td>\n",
6494 " <td>210284</td>\n",
6495 " <td>1336394</td>\n",
6496 " <td>107915</td>\n",
6497 " <td>1308579</td>\n",
6498 " <td>123808</td>\n",
6499 " <td>...</td>\n",
6500 " <td>310483</td>\n",
6501 " <td>313269</td>\n",
6502 " <td>313043</td>\n",
6503 " <td>2389345</td>\n",
6504 " <td>1245984</td>\n",
6505 " <td>311907</td>\n",
6506 " <td>310293</td>\n",
6507 " <td>310289</td>\n",
6508 " <td>106069</td>\n",
6509 " <td>310543</td>\n",
6510 " </tr>\n",
6511 " <tr>\n",
6512 " <th>annotation_count</th>\n",
6513 " <td>1</td>\n",
6514 " <td>1</td>\n",
6515 " <td>5</td>\n",
6516 " <td>4</td>\n",
6517 " <td>6</td>\n",
6518 " <td>1</td>\n",
6519 " <td>1</td>\n",
6520 " <td>6</td>\n",
6521 " <td>1</td>\n",
6522 " <td>1</td>\n",
6523 " <td>...</td>\n",
6524 " <td>1</td>\n",
6525 " <td>1</td>\n",
6526 " <td>1</td>\n",
6527 " <td>4</td>\n",
6528 " <td>1</td>\n",
6529 " <td>1</td>\n",
6530 " <td>4</td>\n",
6531 " <td>1</td>\n",
6532 " <td>16</td>\n",
6533 " <td>15</td>\n",
6534 " </tr>\n",
6535 " <tr>\n",
6536 " <th>api_path</th>\n",
6537 " <td>/songs/1497768</td>\n",
6538 " <td>/songs/210315</td>\n",
6539 " <td>/songs/123533</td>\n",
6540 " <td>/songs/123537</td>\n",
6541 " <td>/songs/117722</td>\n",
6542 " <td>/songs/210284</td>\n",
6543 " <td>/songs/1336394</td>\n",
6544 " <td>/songs/107915</td>\n",
6545 " <td>/songs/1308579</td>\n",
6546 " <td>/songs/123808</td>\n",
6547 " <td>...</td>\n",
6548 " <td>/songs/310483</td>\n",
6549 " <td>/songs/313269</td>\n",
6550 " <td>/songs/313043</td>\n",
6551 " <td>/songs/2389345</td>\n",
6552 " <td>/songs/1245984</td>\n",
6553 " <td>/songs/311907</td>\n",
6554 " <td>/songs/310293</td>\n",
6555 " <td>/songs/310289</td>\n",
6556 " <td>/songs/106069</td>\n",
6557 " <td>/songs/310543</td>\n",
6558 " </tr>\n",
6559 " <tr>\n",
6560 " <th>ctitle</th>\n",
6561 " <td>NaN</td>\n",
6562 " <td>NaN</td>\n",
6563 " <td>NaN</td>\n",
6564 " <td>NaN</td>\n",
6565 " <td>NaN</td>\n",
6566 " <td>NaN</td>\n",
6567 " <td>NaN</td>\n",
6568 " <td>NaN</td>\n",
6569 " <td>NaN</td>\n",
6570 " <td>NaN</td>\n",
6571 " <td>...</td>\n",
6572 " <td>NaN</td>\n",
6573 " <td>NaN</td>\n",
6574 " <td>NaN</td>\n",
6575 " <td>NaN</td>\n",
6576 " <td>NaN</td>\n",
6577 " <td>NaN</td>\n",
6578 " <td>NaN</td>\n",
6579 " <td>NaN</td>\n",
6580 " <td>NaN</td>\n",
6581 " <td>NaN</td>\n",
6582 " </tr>\n",
6583 " <tr>\n",
6584 " <th>full_title</th>\n",
6585 " <td>All Together on the Wireless Machine by The Be...</td>\n",
6586 " <td>A Little Rhyme by The Beatles (Ft. John &amp; Rodn...</td>\n",
6587 " <td>And I Love Her by The Beatles</td>\n",
6588 " <td>Any Time at All by The Beatles</td>\n",
6589 " <td>A Taste of Honey by The Beatles</td>\n",
6590 " <td>Beatle Greetings by The Beatles (Ft. George Ha...</td>\n",
6591 " <td>Can You Take Me Back by The Beatles</td>\n",
6592 " <td>Carry That Weight by The Beatles</td>\n",
6593 " <td>Down in Eastern Australia by The Beatles</td>\n",
6594 " <td>Everybody's Trying to Be My Baby by The Beatles</td>\n",
6595 " <td>...</td>\n",
6596 " <td>You Can't Catch Me by The Rolling Stones</td>\n",
6597 " <td>You Don't Have To Mean It by The Rolling Stones</td>\n",
6598 " <td>You Got Me Rocking by The Rolling Stones</td>\n",
6599 " <td>You Got the Silver by The Rolling Stones (Ft. ...</td>\n",
6600 " <td>Don't Look Back by The Rolling Stones</td>\n",
6601 " <td>Each and every day of the year by The Rolling ...</td>\n",
6602 " <td>I'm A King Bee by The Rolling Stones</td>\n",
6603 " <td>Little By Little by The Rolling Stones</td>\n",
6604 " <td>Brown Sugar by The Rolling Stones</td>\n",
6605 " <td>Citadel by The Rolling Stones</td>\n",
6606 " </tr>\n",
6607 " <tr>\n",
6608 " <th>header_image_thumbnail_url</th>\n",
6609 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6610 " <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
6611 " <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
6612 " <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
6613 " <td>https://s3.amazonaws.com/rapgenius/1360709432_...</td>\n",
6614 " <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
6615 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6616 " <td>https://images.genius.com/560d707ac51a528c952d...</td>\n",
6617 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6618 " <td>https://images.genius.com/4268a08d2b36372eb6e8...</td>\n",
6619 " <td>...</td>\n",
6620 " <td>https://images.genius.com/9c0263f14c39b6df59e5...</td>\n",
6621 " <td>https://images.genius.com/eb7fd9257058b77179cb...</td>\n",
6622 " <td>https://images.genius.com/a8ed1f93846da84943a7...</td>\n",
6623 " <td>https://images.rapgenius.com/ac969979ccb91a0d2...</td>\n",
6624 " <td>https://images.genius.com/23bbf05f7ee8286a8905...</td>\n",
6625 " <td>https://images.genius.com/6c322c96140487d56076...</td>\n",
6626 " <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
6627 " <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
6628 " <td>https://images.genius.com/5b7d4f11893ff2fdeba7...</td>\n",
6629 " <td>https://images.genius.com/31323212a74c2a8d99eb...</td>\n",
6630 " </tr>\n",
6631 " <tr>\n",
6632 " <th>header_image_url</th>\n",
6633 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6634 " <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
6635 " <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
6636 " <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
6637 " <td>https://s3.amazonaws.com/rapgenius/1360709432_...</td>\n",
6638 " <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
6639 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6640 " <td>https://images.genius.com/560d707ac51a528c952d...</td>\n",
6641 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6642 " <td>https://images.genius.com/4268a08d2b36372eb6e8...</td>\n",
6643 " <td>...</td>\n",
6644 " <td>https://images.genius.com/9c0263f14c39b6df59e5...</td>\n",
6645 " <td>https://images.genius.com/eb7fd9257058b77179cb...</td>\n",
6646 " <td>https://images.genius.com/a8ed1f93846da84943a7...</td>\n",
6647 " <td>https://images.rapgenius.com/ac969979ccb91a0d2...</td>\n",
6648 " <td>https://images.genius.com/23bbf05f7ee8286a8905...</td>\n",
6649 " <td>https://images.genius.com/6c322c96140487d56076...</td>\n",
6650 " <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
6651 " <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
6652 " <td>https://images.genius.com/5b7d4f11893ff2fdeba7...</td>\n",
6653 " <td>https://images.genius.com/31323212a74c2a8d99eb...</td>\n",
6654 " </tr>\n",
6655 " <tr>\n",
6656 " <th>id</th>\n",
6657 " <td>1497768</td>\n",
6658 " <td>210315</td>\n",
6659 " <td>123533</td>\n",
6660 " <td>123537</td>\n",
6661 " <td>117722</td>\n",
6662 " <td>210284</td>\n",
6663 " <td>1336394</td>\n",
6664 " <td>107915</td>\n",
6665 " <td>1308579</td>\n",
6666 " <td>123808</td>\n",
6667 " <td>...</td>\n",
6668 " <td>310483</td>\n",
6669 " <td>313269</td>\n",
6670 " <td>313043</td>\n",
6671 " <td>2389345</td>\n",
6672 " <td>1245984</td>\n",
6673 " <td>311907</td>\n",
6674 " <td>310293</td>\n",
6675 " <td>310289</td>\n",
6676 " <td>106069</td>\n",
6677 " <td>310543</td>\n",
6678 " </tr>\n",
6679 " <tr>\n",
6680 " <th>lyrics</th>\n",
6681 " <td>NaN</td>\n",
6682 " <td>NaN</td>\n",
6683 " <td>NaN</td>\n",
6684 " <td>NaN</td>\n",
6685 " <td>NaN</td>\n",
6686 " <td>NaN</td>\n",
6687 " <td>NaN</td>\n",
6688 " <td>NaN</td>\n",
6689 " <td>NaN</td>\n",
6690 " <td>NaN</td>\n",
6691 " <td>...</td>\n",
6692 " <td>NaN</td>\n",
6693 " <td>NaN</td>\n",
6694 " <td>NaN</td>\n",
6695 " <td>NaN</td>\n",
6696 " <td>NaN</td>\n",
6697 " <td>NaN</td>\n",
6698 " <td>NaN</td>\n",
6699 " <td>NaN</td>\n",
6700 " <td>NaN</td>\n",
6701 " <td>NaN</td>\n",
6702 " </tr>\n",
6703 " <tr>\n",
6704 " <th>lyrics_owner_id</th>\n",
6705 " <td>1549345</td>\n",
6706 " <td>250962</td>\n",
6707 " <td>46871</td>\n",
6708 " <td>46871</td>\n",
6709 " <td>70799</td>\n",
6710 " <td>250962</td>\n",
6711 " <td>1549345</td>\n",
6712 " <td>116340</td>\n",
6713 " <td>1549345</td>\n",
6714 " <td>22533</td>\n",
6715 " <td>...</td>\n",
6716 " <td>354383</td>\n",
6717 " <td>354608</td>\n",
6718 " <td>354382</td>\n",
6719 " <td>1217557</td>\n",
6720 " <td>1549345</td>\n",
6721 " <td>354385</td>\n",
6722 " <td>354383</td>\n",
6723 " <td>354383</td>\n",
6724 " <td>16</td>\n",
6725 " <td>354608</td>\n",
6726 " </tr>\n",
6727 " <tr>\n",
6728 " <th>original_lyrics</th>\n",
6729 " <td>NaN</td>\n",
6730 " <td>NaN</td>\n",
6731 " <td>NaN</td>\n",
6732 " <td>NaN</td>\n",
6733 " <td>NaN</td>\n",
6734 " <td>NaN</td>\n",
6735 " <td>NaN</td>\n",
6736 " <td>NaN</td>\n",
6737 " <td>NaN</td>\n",
6738 " <td>NaN</td>\n",
6739 " <td>...</td>\n",
6740 " <td>NaN</td>\n",
6741 " <td>NaN</td>\n",
6742 " <td>NaN</td>\n",
6743 " <td>NaN</td>\n",
6744 " <td>NaN</td>\n",
6745 " <td>NaN</td>\n",
6746 " <td>NaN</td>\n",
6747 " <td>NaN</td>\n",
6748 " <td>NaN</td>\n",
6749 " <td>NaN</td>\n",
6750 " </tr>\n",
6751 " <tr>\n",
6752 " <th>path</th>\n",
6753 " <td>/The-beatles-all-together-on-the-wireless-mach...</td>\n",
6754 " <td>/The-beatles-a-little-rhyme-lyrics</td>\n",
6755 " <td>/The-beatles-and-i-love-her-lyrics</td>\n",
6756 " <td>/The-beatles-any-time-at-all-lyrics</td>\n",
6757 " <td>/The-beatles-a-taste-of-honey-lyrics</td>\n",
6758 " <td>/The-beatles-beatle-greetings-lyrics</td>\n",
6759 " <td>/The-beatles-can-you-take-me-back-lyrics</td>\n",
6760 " <td>/The-beatles-carry-that-weight-lyrics</td>\n",
6761 " <td>/The-beatles-down-in-eastern-australia-lyrics</td>\n",
6762 " <td>/The-beatles-everybodys-trying-to-be-my-baby-l...</td>\n",
6763 " <td>...</td>\n",
6764 " <td>/The-rolling-stones-you-cant-catch-me-lyrics</td>\n",
6765 " <td>/The-rolling-stones-you-dont-have-to-mean-it-l...</td>\n",
6766 " <td>/The-rolling-stones-you-got-me-rocking-lyrics</td>\n",
6767 " <td>/The-rolling-stones-you-got-the-silver-lyrics</td>\n",
6768 " <td>/The-rolling-stones-dont-look-back-lyrics</td>\n",
6769 " <td>/The-rolling-stones-each-and-every-day-of-the-...</td>\n",
6770 " <td>/The-rolling-stones-im-a-king-bee-lyrics</td>\n",
6771 " <td>/The-rolling-stones-little-by-little-lyrics</td>\n",
6772 " <td>/The-rolling-stones-brown-sugar-lyrics</td>\n",
6773 " <td>/The-rolling-stones-citadel-lyrics</td>\n",
6774 " </tr>\n",
6775 " <tr>\n",
6776 " <th>primary_artist</th>\n",
6777 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6778 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6779 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6780 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6781 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6782 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6783 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6784 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6785 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6786 " <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
6787 " <td>...</td>\n",
6788 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6789 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6790 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6791 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6792 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6793 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6794 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6795 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6796 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6797 " <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
6798 " </tr>\n",
6799 " <tr>\n",
6800 " <th>pyongs_count</th>\n",
6801 " <td>NaN</td>\n",
6802 " <td>NaN</td>\n",
6803 " <td>15</td>\n",
6804 " <td>2</td>\n",
6805 " <td>NaN</td>\n",
6806 " <td>NaN</td>\n",
6807 " <td>NaN</td>\n",
6808 " <td>1</td>\n",
6809 " <td>NaN</td>\n",
6810 " <td>NaN</td>\n",
6811 " <td>...</td>\n",
6812 " <td>NaN</td>\n",
6813 " <td>NaN</td>\n",
6814 " <td>NaN</td>\n",
6815 " <td>NaN</td>\n",
6816 " <td>NaN</td>\n",
6817 " <td>NaN</td>\n",
6818 " <td>NaN</td>\n",
6819 " <td>NaN</td>\n",
6820 " <td>7</td>\n",
6821 " <td>NaN</td>\n",
6822 " </tr>\n",
6823 " <tr>\n",
6824 " <th>song_art_image_thumbnail_url</th>\n",
6825 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6826 " <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
6827 " <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
6828 " <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
6829 " <td>https://s3.amazonaws.com/rapgenius/1360709432_...</td>\n",
6830 " <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
6831 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6832 " <td>https://images.genius.com/560d707ac51a528c952d...</td>\n",
6833 " <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
6834 " <td>https://images.genius.com/4268a08d2b36372eb6e8...</td>\n",
6835 " <td>...</td>\n",
6836 " <td>https://images.genius.com/9c0263f14c39b6df59e5...</td>\n",
6837 " <td>https://images.genius.com/eb7fd9257058b77179cb...</td>\n",
6838 " <td>https://images.genius.com/a8ed1f93846da84943a7...</td>\n",
6839 " <td>https://images.rapgenius.com/ac969979ccb91a0d2...</td>\n",
6840 " <td>https://images.genius.com/23bbf05f7ee8286a8905...</td>\n",
6841 " <td>https://images.genius.com/6c322c96140487d56076...</td>\n",
6842 " <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
6843 " <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
6844 " <td>https://images.genius.com/5b7d4f11893ff2fdeba7...</td>\n",
6845 " <td>https://images.genius.com/31323212a74c2a8d99eb...</td>\n",
6846 " </tr>\n",
6847 " <tr>\n",
6848 " <th>stats</th>\n",
6849 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6850 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6851 " <td>{'unreviewed_annotations': 0, 'hot': False, 'p...</td>\n",
6852 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6853 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6854 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6855 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6856 " <td>{'unreviewed_annotations': 0, 'hot': False, 'p...</td>\n",
6857 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6858 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6859 " <td>...</td>\n",
6860 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6861 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6862 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6863 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6864 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6865 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6866 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6867 " <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
6868 " <td>{'unreviewed_annotations': 0, 'hot': False, 'p...</td>\n",
6869 " <td>{'unreviewed_annotations': 14, 'hot': False}</td>\n",
6870 " </tr>\n",
6871 " <tr>\n",
6872 " <th>title</th>\n",
6873 " <td>All Together on the Wireless Machine</td>\n",
6874 " <td>A Little Rhyme</td>\n",
6875 " <td>And I Love Her</td>\n",
6876 " <td>Any Time at All</td>\n",
6877 " <td>A Taste of Honey</td>\n",
6878 " <td>Beatle Greetings</td>\n",
6879 " <td>Can You Take Me Back</td>\n",
6880 " <td>Carry That Weight</td>\n",
6881 " <td>Down in Eastern Australia</td>\n",
6882 " <td>Everybody's Trying to Be My Baby</td>\n",
6883 " <td>...</td>\n",
6884 " <td>You Can't Catch Me</td>\n",
6885 " <td>You Don't Have To Mean It</td>\n",
6886 " <td>You Got Me Rocking</td>\n",
6887 " <td>You Got the Silver</td>\n",
6888 " <td>Don't Look Back</td>\n",
6889 " <td>Each and every day of the year</td>\n",
6890 " <td>I'm A King Bee</td>\n",
6891 " <td>Little By Little</td>\n",
6892 " <td>Brown Sugar</td>\n",
6893 " <td>Citadel</td>\n",
6894 " </tr>\n",
6895 " <tr>\n",
6896 " <th>url</th>\n",
6897 " <td>https://genius.com/The-beatles-all-together-on...</td>\n",
6898 " <td>https://genius.com/The-beatles-a-little-rhyme-...</td>\n",
6899 " <td>https://genius.com/The-beatles-and-i-love-her-...</td>\n",
6900 " <td>https://genius.com/The-beatles-any-time-at-all...</td>\n",
6901 " <td>https://genius.com/The-beatles-a-taste-of-hone...</td>\n",
6902 " <td>https://genius.com/The-beatles-beatle-greeting...</td>\n",
6903 " <td>https://genius.com/The-beatles-can-you-take-me...</td>\n",
6904 " <td>https://genius.com/The-beatles-carry-that-weig...</td>\n",
6905 " <td>https://genius.com/The-beatles-down-in-eastern...</td>\n",
6906 " <td>https://genius.com/The-beatles-everybodys-tryi...</td>\n",
6907 " <td>...</td>\n",
6908 " <td>https://genius.com/The-rolling-stones-you-cant...</td>\n",
6909 " <td>https://genius.com/The-rolling-stones-you-dont...</td>\n",
6910 " <td>https://genius.com/The-rolling-stones-you-got-...</td>\n",
6911 " <td>https://genius.com/The-rolling-stones-you-got-...</td>\n",
6912 " <td>https://genius.com/The-rolling-stones-dont-loo...</td>\n",
6913 " <td>https://genius.com/The-rolling-stones-each-and...</td>\n",
6914 " <td>https://genius.com/The-rolling-stones-im-a-kin...</td>\n",
6915 " <td>https://genius.com/The-rolling-stones-little-b...</td>\n",
6916 " <td>https://genius.com/The-rolling-stones-brown-su...</td>\n",
6917 " <td>https://genius.com/The-rolling-stones-citadel-...</td>\n",
6918 " </tr>\n",
6919 " </tbody>\n",
6920 "</table>\n",
6921 "<p>18 rows × 1071 columns</p>\n",
6922 "</div>"
6923 ],
6924 "text/plain": [
6925 " 0 \\\n",
6926 "_id 1497768 \n",
6927 "annotation_count 1 \n",
6928 "api_path /songs/1497768 \n",
6929 "ctitle NaN \n",
6930 "full_title All Together on the Wireless Machine by The Be... \n",
6931 "header_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
6932 "header_image_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
6933 "id 1497768 \n",
6934 "lyrics NaN \n",
6935 "lyrics_owner_id 1549345 \n",
6936 "original_lyrics NaN \n",
6937 "path /The-beatles-all-together-on-the-wireless-mach... \n",
6938 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
6939 "pyongs_count NaN \n",
6940 "song_art_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
6941 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
6942 "title All Together on the Wireless Machine \n",
6943 "url https://genius.com/The-beatles-all-together-on... \n",
6944 "\n",
6945 " 1 \\\n",
6946 "_id 210315 \n",
6947 "annotation_count 1 \n",
6948 "api_path /songs/210315 \n",
6949 "ctitle NaN \n",
6950 "full_title A Little Rhyme by The Beatles (Ft. John & Rodn... \n",
6951 "header_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n",
6952 "header_image_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n",
6953 "id 210315 \n",
6954 "lyrics NaN \n",
6955 "lyrics_owner_id 250962 \n",
6956 "original_lyrics NaN \n",
6957 "path /The-beatles-a-little-rhyme-lyrics \n",
6958 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
6959 "pyongs_count NaN \n",
6960 "song_art_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n",
6961 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
6962 "title A Little Rhyme \n",
6963 "url https://genius.com/The-beatles-a-little-rhyme-... \n",
6964 "\n",
6965 " 2 \\\n",
6966 "_id 123533 \n",
6967 "annotation_count 5 \n",
6968 "api_path /songs/123533 \n",
6969 "ctitle NaN \n",
6970 "full_title And I Love Her by The Beatles \n",
6971 "header_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n",
6972 "header_image_url https://images.genius.com/68c11c7f5b6b66194d77... \n",
6973 "id 123533 \n",
6974 "lyrics NaN \n",
6975 "lyrics_owner_id 46871 \n",
6976 "original_lyrics NaN \n",
6977 "path /The-beatles-and-i-love-her-lyrics \n",
6978 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
6979 "pyongs_count 15 \n",
6980 "song_art_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n",
6981 "stats {'unreviewed_annotations': 0, 'hot': False, 'p... \n",
6982 "title And I Love Her \n",
6983 "url https://genius.com/The-beatles-and-i-love-her-... \n",
6984 "\n",
6985 " 3 \\\n",
6986 "_id 123537 \n",
6987 "annotation_count 4 \n",
6988 "api_path /songs/123537 \n",
6989 "ctitle NaN \n",
6990 "full_title Any Time at All by The Beatles \n",
6991 "header_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n",
6992 "header_image_url https://images.genius.com/68c11c7f5b6b66194d77... \n",
6993 "id 123537 \n",
6994 "lyrics NaN \n",
6995 "lyrics_owner_id 46871 \n",
6996 "original_lyrics NaN \n",
6997 "path /The-beatles-any-time-at-all-lyrics \n",
6998 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
6999 "pyongs_count 2 \n",
7000 "song_art_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n",
7001 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7002 "title Any Time at All \n",
7003 "url https://genius.com/The-beatles-any-time-at-all... \n",
7004 "\n",
7005 " 4 \\\n",
7006 "_id 117722 \n",
7007 "annotation_count 6 \n",
7008 "api_path /songs/117722 \n",
7009 "ctitle NaN \n",
7010 "full_title A Taste of Honey by The Beatles \n",
7011 "header_image_thumbnail_url https://s3.amazonaws.com/rapgenius/1360709432_... \n",
7012 "header_image_url https://s3.amazonaws.com/rapgenius/1360709432_... \n",
7013 "id 117722 \n",
7014 "lyrics NaN \n",
7015 "lyrics_owner_id 70799 \n",
7016 "original_lyrics NaN \n",
7017 "path /The-beatles-a-taste-of-honey-lyrics \n",
7018 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
7019 "pyongs_count NaN \n",
7020 "song_art_image_thumbnail_url https://s3.amazonaws.com/rapgenius/1360709432_... \n",
7021 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7022 "title A Taste of Honey \n",
7023 "url https://genius.com/The-beatles-a-taste-of-hone... \n",
7024 "\n",
7025 " 5 \\\n",
7026 "_id 210284 \n",
7027 "annotation_count 1 \n",
7028 "api_path /songs/210284 \n",
7029 "ctitle NaN \n",
7030 "full_title Beatle Greetings by The Beatles (Ft. George Ha... \n",
7031 "header_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n",
7032 "header_image_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n",
7033 "id 210284 \n",
7034 "lyrics NaN \n",
7035 "lyrics_owner_id 250962 \n",
7036 "original_lyrics NaN \n",
7037 "path /The-beatles-beatle-greetings-lyrics \n",
7038 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
7039 "pyongs_count NaN \n",
7040 "song_art_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n",
7041 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7042 "title Beatle Greetings \n",
7043 "url https://genius.com/The-beatles-beatle-greeting... \n",
7044 "\n",
7045 " 6 \\\n",
7046 "_id 1336394 \n",
7047 "annotation_count 1 \n",
7048 "api_path /songs/1336394 \n",
7049 "ctitle NaN \n",
7050 "full_title Can You Take Me Back by The Beatles \n",
7051 "header_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
7052 "header_image_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
7053 "id 1336394 \n",
7054 "lyrics NaN \n",
7055 "lyrics_owner_id 1549345 \n",
7056 "original_lyrics NaN \n",
7057 "path /The-beatles-can-you-take-me-back-lyrics \n",
7058 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
7059 "pyongs_count NaN \n",
7060 "song_art_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
7061 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7062 "title Can You Take Me Back \n",
7063 "url https://genius.com/The-beatles-can-you-take-me... \n",
7064 "\n",
7065 " 7 \\\n",
7066 "_id 107915 \n",
7067 "annotation_count 6 \n",
7068 "api_path /songs/107915 \n",
7069 "ctitle NaN \n",
7070 "full_title Carry That Weight by The Beatles \n",
7071 "header_image_thumbnail_url https://images.genius.com/560d707ac51a528c952d... \n",
7072 "header_image_url https://images.genius.com/560d707ac51a528c952d... \n",
7073 "id 107915 \n",
7074 "lyrics NaN \n",
7075 "lyrics_owner_id 116340 \n",
7076 "original_lyrics NaN \n",
7077 "path /The-beatles-carry-that-weight-lyrics \n",
7078 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
7079 "pyongs_count 1 \n",
7080 "song_art_image_thumbnail_url https://images.genius.com/560d707ac51a528c952d... \n",
7081 "stats {'unreviewed_annotations': 0, 'hot': False, 'p... \n",
7082 "title Carry That Weight \n",
7083 "url https://genius.com/The-beatles-carry-that-weig... \n",
7084 "\n",
7085 " 8 \\\n",
7086 "_id 1308579 \n",
7087 "annotation_count 1 \n",
7088 "api_path /songs/1308579 \n",
7089 "ctitle NaN \n",
7090 "full_title Down in Eastern Australia by The Beatles \n",
7091 "header_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
7092 "header_image_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
7093 "id 1308579 \n",
7094 "lyrics NaN \n",
7095 "lyrics_owner_id 1549345 \n",
7096 "original_lyrics NaN \n",
7097 "path /The-beatles-down-in-eastern-australia-lyrics \n",
7098 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
7099 "pyongs_count NaN \n",
7100 "song_art_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n",
7101 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7102 "title Down in Eastern Australia \n",
7103 "url https://genius.com/The-beatles-down-in-eastern... \n",
7104 "\n",
7105 " 9 \\\n",
7106 "_id 123808 \n",
7107 "annotation_count 1 \n",
7108 "api_path /songs/123808 \n",
7109 "ctitle NaN \n",
7110 "full_title Everybody's Trying to Be My Baby by The Beatles \n",
7111 "header_image_thumbnail_url https://images.genius.com/4268a08d2b36372eb6e8... \n",
7112 "header_image_url https://images.genius.com/4268a08d2b36372eb6e8... \n",
7113 "id 123808 \n",
7114 "lyrics NaN \n",
7115 "lyrics_owner_id 22533 \n",
7116 "original_lyrics NaN \n",
7117 "path /The-beatles-everybodys-trying-to-be-my-baby-l... \n",
7118 "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n",
7119 "pyongs_count NaN \n",
7120 "song_art_image_thumbnail_url https://images.genius.com/4268a08d2b36372eb6e8... \n",
7121 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7122 "title Everybody's Trying to Be My Baby \n",
7123 "url https://genius.com/The-beatles-everybodys-tryi... \n",
7124 "\n",
7125 " ... \\\n",
7126 "_id ... \n",
7127 "annotation_count ... \n",
7128 "api_path ... \n",
7129 "ctitle ... \n",
7130 "full_title ... \n",
7131 "header_image_thumbnail_url ... \n",
7132 "header_image_url ... \n",
7133 "id ... \n",
7134 "lyrics ... \n",
7135 "lyrics_owner_id ... \n",
7136 "original_lyrics ... \n",
7137 "path ... \n",
7138 "primary_artist ... \n",
7139 "pyongs_count ... \n",
7140 "song_art_image_thumbnail_url ... \n",
7141 "stats ... \n",
7142 "title ... \n",
7143 "url ... \n",
7144 "\n",
7145 " 1061 \\\n",
7146 "_id 310483 \n",
7147 "annotation_count 1 \n",
7148 "api_path /songs/310483 \n",
7149 "ctitle NaN \n",
7150 "full_title You Can't Catch Me by The Rolling Stones \n",
7151 "header_image_thumbnail_url https://images.genius.com/9c0263f14c39b6df59e5... \n",
7152 "header_image_url https://images.genius.com/9c0263f14c39b6df59e5... \n",
7153 "id 310483 \n",
7154 "lyrics NaN \n",
7155 "lyrics_owner_id 354383 \n",
7156 "original_lyrics NaN \n",
7157 "path /The-rolling-stones-you-cant-catch-me-lyrics \n",
7158 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7159 "pyongs_count NaN \n",
7160 "song_art_image_thumbnail_url https://images.genius.com/9c0263f14c39b6df59e5... \n",
7161 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7162 "title You Can't Catch Me \n",
7163 "url https://genius.com/The-rolling-stones-you-cant... \n",
7164 "\n",
7165 " 1062 \\\n",
7166 "_id 313269 \n",
7167 "annotation_count 1 \n",
7168 "api_path /songs/313269 \n",
7169 "ctitle NaN \n",
7170 "full_title You Don't Have To Mean It by The Rolling Stones \n",
7171 "header_image_thumbnail_url https://images.genius.com/eb7fd9257058b77179cb... \n",
7172 "header_image_url https://images.genius.com/eb7fd9257058b77179cb... \n",
7173 "id 313269 \n",
7174 "lyrics NaN \n",
7175 "lyrics_owner_id 354608 \n",
7176 "original_lyrics NaN \n",
7177 "path /The-rolling-stones-you-dont-have-to-mean-it-l... \n",
7178 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7179 "pyongs_count NaN \n",
7180 "song_art_image_thumbnail_url https://images.genius.com/eb7fd9257058b77179cb... \n",
7181 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7182 "title You Don't Have To Mean It \n",
7183 "url https://genius.com/The-rolling-stones-you-dont... \n",
7184 "\n",
7185 " 1063 \\\n",
7186 "_id 313043 \n",
7187 "annotation_count 1 \n",
7188 "api_path /songs/313043 \n",
7189 "ctitle NaN \n",
7190 "full_title You Got Me Rocking by The Rolling Stones \n",
7191 "header_image_thumbnail_url https://images.genius.com/a8ed1f93846da84943a7... \n",
7192 "header_image_url https://images.genius.com/a8ed1f93846da84943a7... \n",
7193 "id 313043 \n",
7194 "lyrics NaN \n",
7195 "lyrics_owner_id 354382 \n",
7196 "original_lyrics NaN \n",
7197 "path /The-rolling-stones-you-got-me-rocking-lyrics \n",
7198 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7199 "pyongs_count NaN \n",
7200 "song_art_image_thumbnail_url https://images.genius.com/a8ed1f93846da84943a7... \n",
7201 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7202 "title You Got Me Rocking \n",
7203 "url https://genius.com/The-rolling-stones-you-got-... \n",
7204 "\n",
7205 " 1064 \\\n",
7206 "_id 2389345 \n",
7207 "annotation_count 4 \n",
7208 "api_path /songs/2389345 \n",
7209 "ctitle NaN \n",
7210 "full_title You Got the Silver by The Rolling Stones (Ft. ... \n",
7211 "header_image_thumbnail_url https://images.rapgenius.com/ac969979ccb91a0d2... \n",
7212 "header_image_url https://images.rapgenius.com/ac969979ccb91a0d2... \n",
7213 "id 2389345 \n",
7214 "lyrics NaN \n",
7215 "lyrics_owner_id 1217557 \n",
7216 "original_lyrics NaN \n",
7217 "path /The-rolling-stones-you-got-the-silver-lyrics \n",
7218 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7219 "pyongs_count NaN \n",
7220 "song_art_image_thumbnail_url https://images.rapgenius.com/ac969979ccb91a0d2... \n",
7221 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7222 "title You Got the Silver \n",
7223 "url https://genius.com/The-rolling-stones-you-got-... \n",
7224 "\n",
7225 " 1065 \\\n",
7226 "_id 1245984 \n",
7227 "annotation_count 1 \n",
7228 "api_path /songs/1245984 \n",
7229 "ctitle NaN \n",
7230 "full_title Don't Look Back by The Rolling Stones \n",
7231 "header_image_thumbnail_url https://images.genius.com/23bbf05f7ee8286a8905... \n",
7232 "header_image_url https://images.genius.com/23bbf05f7ee8286a8905... \n",
7233 "id 1245984 \n",
7234 "lyrics NaN \n",
7235 "lyrics_owner_id 1549345 \n",
7236 "original_lyrics NaN \n",
7237 "path /The-rolling-stones-dont-look-back-lyrics \n",
7238 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7239 "pyongs_count NaN \n",
7240 "song_art_image_thumbnail_url https://images.genius.com/23bbf05f7ee8286a8905... \n",
7241 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7242 "title Don't Look Back \n",
7243 "url https://genius.com/The-rolling-stones-dont-loo... \n",
7244 "\n",
7245 " 1066 \\\n",
7246 "_id 311907 \n",
7247 "annotation_count 1 \n",
7248 "api_path /songs/311907 \n",
7249 "ctitle NaN \n",
7250 "full_title Each and every day of the year by The Rolling ... \n",
7251 "header_image_thumbnail_url https://images.genius.com/6c322c96140487d56076... \n",
7252 "header_image_url https://images.genius.com/6c322c96140487d56076... \n",
7253 "id 311907 \n",
7254 "lyrics NaN \n",
7255 "lyrics_owner_id 354385 \n",
7256 "original_lyrics NaN \n",
7257 "path /The-rolling-stones-each-and-every-day-of-the-... \n",
7258 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7259 "pyongs_count NaN \n",
7260 "song_art_image_thumbnail_url https://images.genius.com/6c322c96140487d56076... \n",
7261 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7262 "title Each and every day of the year \n",
7263 "url https://genius.com/The-rolling-stones-each-and... \n",
7264 "\n",
7265 " 1067 \\\n",
7266 "_id 310293 \n",
7267 "annotation_count 4 \n",
7268 "api_path /songs/310293 \n",
7269 "ctitle NaN \n",
7270 "full_title I'm A King Bee by The Rolling Stones \n",
7271 "header_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n",
7272 "header_image_url https://images.genius.com/076d49bcc219432b68b4... \n",
7273 "id 310293 \n",
7274 "lyrics NaN \n",
7275 "lyrics_owner_id 354383 \n",
7276 "original_lyrics NaN \n",
7277 "path /The-rolling-stones-im-a-king-bee-lyrics \n",
7278 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7279 "pyongs_count NaN \n",
7280 "song_art_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n",
7281 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7282 "title I'm A King Bee \n",
7283 "url https://genius.com/The-rolling-stones-im-a-kin... \n",
7284 "\n",
7285 " 1068 \\\n",
7286 "_id 310289 \n",
7287 "annotation_count 1 \n",
7288 "api_path /songs/310289 \n",
7289 "ctitle NaN \n",
7290 "full_title Little By Little by The Rolling Stones \n",
7291 "header_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n",
7292 "header_image_url https://images.genius.com/076d49bcc219432b68b4... \n",
7293 "id 310289 \n",
7294 "lyrics NaN \n",
7295 "lyrics_owner_id 354383 \n",
7296 "original_lyrics NaN \n",
7297 "path /The-rolling-stones-little-by-little-lyrics \n",
7298 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7299 "pyongs_count NaN \n",
7300 "song_art_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n",
7301 "stats {'unreviewed_annotations': 0, 'hot': False} \n",
7302 "title Little By Little \n",
7303 "url https://genius.com/The-rolling-stones-little-b... \n",
7304 "\n",
7305 " 1069 \\\n",
7306 "_id 106069 \n",
7307 "annotation_count 16 \n",
7308 "api_path /songs/106069 \n",
7309 "ctitle NaN \n",
7310 "full_title Brown Sugar by The Rolling Stones \n",
7311 "header_image_thumbnail_url https://images.genius.com/5b7d4f11893ff2fdeba7... \n",
7312 "header_image_url https://images.genius.com/5b7d4f11893ff2fdeba7... \n",
7313 "id 106069 \n",
7314 "lyrics NaN \n",
7315 "lyrics_owner_id 16 \n",
7316 "original_lyrics NaN \n",
7317 "path /The-rolling-stones-brown-sugar-lyrics \n",
7318 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7319 "pyongs_count 7 \n",
7320 "song_art_image_thumbnail_url https://images.genius.com/5b7d4f11893ff2fdeba7... \n",
7321 "stats {'unreviewed_annotations': 0, 'hot': False, 'p... \n",
7322 "title Brown Sugar \n",
7323 "url https://genius.com/The-rolling-stones-brown-su... \n",
7324 "\n",
7325 " 1070 \n",
7326 "_id 310543 \n",
7327 "annotation_count 15 \n",
7328 "api_path /songs/310543 \n",
7329 "ctitle NaN \n",
7330 "full_title Citadel by The Rolling Stones \n",
7331 "header_image_thumbnail_url https://images.genius.com/31323212a74c2a8d99eb... \n",
7332 "header_image_url https://images.genius.com/31323212a74c2a8d99eb... \n",
7333 "id 310543 \n",
7334 "lyrics NaN \n",
7335 "lyrics_owner_id 354608 \n",
7336 "original_lyrics NaN \n",
7337 "path /The-rolling-stones-citadel-lyrics \n",
7338 "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n",
7339 "pyongs_count NaN \n",
7340 "song_art_image_thumbnail_url https://images.genius.com/31323212a74c2a8d99eb... \n",
7341 "stats {'unreviewed_annotations': 14, 'hot': False} \n",
7342 "title Citadel \n",
7343 "url https://genius.com/The-rolling-stones-citadel-... \n",
7344 "\n",
7345 "[18 rows x 1071 columns]"
7346 ]
7347 },
7348 "execution_count": 46,
7349 "metadata": {},
7350 "output_type": "execute_result"
7351 }
7352 ],
7353 "source": [
7354 "gsongs = pd.DataFrame(list(genius_tracks.find()))\n",
7355 "gsongs.T"
7356 ]
7357 },
7358 {
7359 "cell_type": "markdown",
7360 "metadata": {},
7361 "source": [
7362 "Now we can get the lyrics for each song. We tidy it up as we go, to strip out formatting and the like.\n",
7363 "\n",
7364 "Note the use of [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) to strip out the HTML from the lyrics."
7365 ]
7366 },
7367 {
7368 "cell_type": "code",
7369 "execution_count": 47,
7370 "metadata": {},
7371 "outputs": [],
7372 "source": [
7373 "def genius_lyrics(song_url):\n",
7374 " headers = {'Accept': 'application/json',\n",
7375 " 'Authorization': 'Bearer ' + config['genius']['token'],\n",
7376 " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n",
7377 " request = urllib.request.Request(song_url, headers=headers, method='GET')\n",
7378 " html_doc = urllib.request.urlopen(request)\n",
7379 " soup = BeautifulSoup(html_doc, 'html.parser')\n",
7380 " lyrics = soup.find('lyrics').get_text()\n",
7381 " l2 = re.sub('\\[[^\\]]*\\]', '', lyrics)\n",
7382 " l3 = re.sub('\\[|\\]', '', l2)\n",
7383 " l4 = re.sub('(\\s)+', ' ', l3)\n",
7384 " return l4.strip().lower(), lyrics"
7385 ]
7386 },
7387 {
7388 "cell_type": "code",
7389 "execution_count": 48,
7390 "metadata": {},
7391 "outputs": [
7392 {
7393 "data": {
7394 "text/plain": [
7395 "(\"oh ain't she sweet well see her walking down that street yes i ask you very confidentially ain't she sweet? oh ain't she nice well look her over once or twice yes i ask you very confidentially ain't she nice? just cast an eye in her direction oh me oh my ain't that perfection? oh i repeat well don't you think that's kind of neat? yes i ask you very confidentially ain't she sweet? oh ain't she sweet well see her walking down that street well i ask you very confidentially ain't she sweet? well i ask you very confidentially ain't she sweet?\",\n",
7396 " \"\\n\\n[Chorus 1]]\\nOh ain't she sweet\\nWell see her walking down that street\\nYes I ask you very confidentially\\nAin't she sweet?\\n\\n[Chorus 2]\\nOh ain't she nice\\nWell look her over once or twice\\nYes I ask you very confidentially\\nAin't she nice?\\n\\n[Chorus 3]\\nJust cast an eye\\nIn her direction\\nOh me oh my\\nAin't that perfection?\\n\\n[Chorus 4]\\nOh I repeat\\nWell don't you think that's kind of neat?\\nYes I ask you very confidentially\\nAin't she sweet?\\n\\n[Chorus 1]\\n\\n[Chorus 2]\\n\\n[Chorus 3]\\n\\n[Chorus 4]\\n\\n[Chorus 1]\\nOh ain't she sweet\\nWell see her walking down that street\\nWell I ask you very confidentially\\nAin't she sweet?\\nWell I ask you very confidentially\\nAin't she sweet?\\n\\n\")"
7397 ]
7398 },
7399 "execution_count": 48,
7400 "metadata": {},
7401 "output_type": "execute_result"
7402 }
7403 ],
7404 "source": [
7405 "assl = genius_lyrics('https://genius.com/The-beatles-aint-she-sweet-lyrics')\n",
7406 "assl"
7407 ]
7408 },
7409 {
7410 "cell_type": "code",
7411 "execution_count": 49,
7412 "metadata": {},
7413 "outputs": [
7414 {
7415 "data": {
7416 "text/plain": [
7417 "{'_id': 1497768,\n",
7418 " 'lyrics': 'when i was sitting on my piano one day a magical thought came my way to write a number for the bbc kenny everett mccartney all together on the wireless machine kenny everett mccartney all together on the wireless machine kenny everett mccartney all together on the wireless machine',\n",
7419 " 'original_lyrics': '\\n\\nWhen I was sitting on my piano one day\\nA magical thought came my way\\nTo write a number for the BBC\\nKenny Everett McCartney\\nAll together on the wireless machine\\nKenny Everett McCartney\\nAll together on the wireless machine\\nKenny Everett McCartney\\nAll together on the wireless machine\\n\\n',\n",
7420 " 'title': 'All Together on the Wireless Machine'}"
7421 ]
7422 },
7423 "execution_count": 49,
7424 "metadata": {},
7425 "output_type": "execute_result"
7426 }
7427 ],
7428 "source": [
7429 "for gsong in genius_tracks.find():\n",
7430 " if 'lyrics' not in gsong:\n",
7431 " lyrics, original_lyrics = genius_lyrics(gsong['url'])\n",
7432 " genius_tracks.update_one({'_id': gsong['_id']}, \n",
7433 " {'$set': {'lyrics': lyrics, 'original_lyrics': original_lyrics}})\n",
7434 "genius_tracks.find_one({}, ['title', 'lyrics', 'original_lyrics'])"
7435 ]
7436 },
7437 {
7438 "cell_type": "code",
7439 "execution_count": 50,
7440 "metadata": {},
7441 "outputs": [
7442 {
7443 "data": {
7444 "text/plain": [
7445 "'original_lyrics_text'"
7446 ]
7447 },
7448 "execution_count": 50,
7449 "metadata": {},
7450 "output_type": "execute_result"
7451 }
7452 ],
7453 "source": [
7454 "genius_tracks.create_index([('original_lyrics', pymongo.TEXT)])"
7455 ]
7456 },
7457 {
7458 "cell_type": "code",
7459 "execution_count": 51,
7460 "metadata": {
7461 "scrolled": true
7462 },
7463 "outputs": [
7464 {
7465 "data": {
7466 "text/plain": [
7467 "[\"\\n\\nClaudine's back in jail again\\nClaudine's back in jail (again)\\nClaudine's back in jail again\\nClaudine\\n\\nClaudine's back in jail again\\nClaudine's back in jail (again)\\nShe only does it at weekends\\nClaudine\\nOh, Claudine\\n\\nNow only Spider knows for sure\\nBut he ain't talkin' about it any more\\nIs he, Claudine?\\n\\nThere's blood in the chalet\\nAnd blood in the snow\\n(She)Washed her hands of the whole damn show\\nThe best thing you could do, Claudine\\n\\nShot him once right through the head\\nShot him twice right through the chest\\nThe judge says (ruled) it was an accident\\nClaudine\\nAccidents will happen\\n(In the best homes)\\n\\nAnd Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine\\n\\n(Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\n\\nClaudine) (additional chorus)\\nI'll tell you something\\nNow Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine\\n\\nTell you one more\\n\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nHuh Claudine?\\n\\nOh Claudine...\\n\\nOooo ...\\nWhat about the children, baby?\\nPoor, poor children\\n\\nNow I threaten my wife with a gun\\nI always leave the safety on\\nI recommend it\\nClaudine\\n\\nNow she pistol whipped me once or twice\\nBut she never tried to take my life\\n(What do you think about that)\\nClaudine\\n\\nThe prettiest girl I ever seen\\nI saw you on the movie screen\\nHope you don't try to make a sacrifice of me\\nClaudine\\n(Don't get trigger happy with me)\\nDon't wave a gun at me\\n(Claudine)\\n\\nI said Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine\\n\\nI said Claudine's back in jail again\\nClaudine's back in jail again\\nShe only does it at weekends\\nClaudine\\n\\nKeith, will you put that weapon down?\\n\\nOh Claudine\\n\\nOh Claudine\\n\\n\",\n",
7468 " \"\\n\\n[Verse 1]\\nI'm not talking about the kind of clothes she wears\\nLook at that stupid girl\\nI'm not talking about the way she combs her hair\\nLook at that stupid girl\\n\\nThe way she powders her nose\\nHer vanity shows and it shows\\nShe's the worst thing in this world\\nWell, look at that stupid girl\\n\\n[Verse 2]\\nI'm not talking about the way she digs for gold\\nLook at that stupid girl\\nWell, I'm talking about the way she grabs and holds\\nLook at that stupid girl\\n\\nThe way she talks about someone else\\nThat she don't even know herself\\nShe's the sickest thing in this world\\nWell, look at that stupid girl\\n\\n[Chorus]\\nWell, I'm sick and tired and I really have my doubts\\nI've tried and tried, but it never really works out\\n\\n[Verse 3]\\nLike a lady-in-waiting to a virgin queen\\nLook at that stupid girl\\nShe bitches about things that she's never seen\\nLook at that stupid girl\\n\\nIt doesn't matter if she dyes her hair\\nOr the color of the shoes she wears\\nShe's the worst thing in this world\\nWell, look at that stupid girl\\n\\n[Guitar Break]\\n\\n[Verse 4]\\nLike a lady-in-waiting to a virgin queen\\nLook at that stupid girl\\nShe bitches about things that she's never seen\\nLook at that stupid girl\\n\\nAnd she purrs like a pussycat\\nThen she turns around and hisses back\\nShe's the sickest thing in this world\\nLook at that stupid girl\\n\\n\",\n",
7469 " \"\\n\\n[Verse 1]\\nWent out walking through the wood the other day\\nAnd the world was a carpet laid before me\\nThe buds were bursting and the air smelled sweet and strange\\nAnd it seemed about a hundred years ago\\nMary and I, we would sit upon a gate\\nJust gazing at some dragon in the sky\\nWhat tender days, we had no secrets hid away\\nWell, it seemed about a hundred years ago\\nNow all my friends are wearing worried smiles\\nLiving out a dream of what they was\\nDon't you think it's sometimes wise not to grow up?\\nWend out walking through the wood the other day\\nCan't you see the furrows in my forehead?\\nWhat tender days, we had no secrets hid away\\nNow it seems about a hundred years ago\\nNow if you see me drinking bad red wine\\nDon't worry 'bout this man that you love\\nDon't you think it's sometimes wise not to grow up?\\n\\n[Chorus]\\nYou're going to kiss and say good-bye, yeah, I warn you[x2]\\nYou're going to kiss and say good-bye, oh Lord, I warn you\\n\\n[Verse 2]\\nAnd please excuse me while I hide away\\nCall me lazy bones\\nIsn’t got no time to waste away\\nLazy bones has not got no time to waste away\\nDon't you think it's just about time to hide away? Yeah, yeah!\\n\\n\",\n",
7470 " \"\\n\\n[Instrument break]\\n\\n[Verse 1]\\nI don't like you\\nBut I love you\\nSeems that I'm always\\nThinking of you\\nOh, oh, oh\\nYou treat me badly\\nI love you madly\\nYou've really got a hold on me\\nYou've really got a hold on me, baby\\n\\n[Verse 2]\\nI don't want you\\nBut I need you\\nDon't want to kiss you\\nBut I need to\\nOh, oh, oh\\nYou do me wrong now\\nMy love is strong now\\nYou've really got a hold on me\\nYou've really got a hold on me, baby\\n\\n[Chorus]\\nI love you and all I want you to do\\nIs just hold me, hold me, hold me, hold me\\nTighter\\nTighter\\n\\n[Verse 3]\\nI want to leave you\\nDon't want to stay here\\nDon't want to spend\\nAnother day here\\nOh, oh, oh, I want to split now\\nI just can quit now\\nYou've really got a hold on me\\nYou've really got a hold on me, baby\\n\\nI love you and all I want you to do\\nIs just hold me, hold me, hold me, hold me\\n\\n[Outro]\\nYou've really got a hold on me\\nYou've really got a hold on me\\n\\n\",\n",
7471 " \"\\n\\n[Verse 1]\\nThe best things in life are free\\nBut you can keep them for the birds and bees\\nNow give me money\\nThat's what I want\\nThat's what I want, yeah\\nThat's what I want\\n\\nYour loving gives me a thrill\\nBut your loving don't pay my bills\\nNow give me money\\nThat's what I want\\nThat's what I want, yeah\\nThat's what I want\\n\\n[Chorus] [x2]\\nMoney don't get everything it's true\\nWhat it don't get, I can't use\\nNow give me money\\nThat's what I want\\nThat's what I want, yeah\\nThat's what I want, wah\\n\\n[Verse 2]\\nWell now give me money\\nA lot of money\\nWow, yeah, I want to be free\\nOh I want money\\nThat's what I want\\nThat's what I want, well\\nNow give me money\\nA lot of money\\nWow, yeah, you need money\\nNow, give me money\\nThat's what I want, yeah\\nThat's what I want\\n\\n\",\n",
7472 " '\\n\\n[Intro]\\nI say hey, Mona\\nOh, Mona\\nI say yeah, yeah, yeah, yeah, Mona\\nOh, Mona\\n\\n[Chorus][x2]\\nI tell you Mona what I want to do\\nI will build a house next door to you\\nCan I see you sometimes?\\nWe can blow kisses through the blinds\\nYeah can I out come out on the front\\nAnd listen to my heart go bumped bump\\nI need you baby that is no lie\\nWithout your love I would surely die\\nI say hey, Mona\\nOh, Mona\\nI say yeah, yeah, yeah, yeah, Mona\\nOh, Mona\\nI say hey, hey Mona\\nOh, Mona\\nI say yeah, yeah, yeah, yeah, Mona\\nOh, Mona\\n\\n',\n",
7473 " \"\\n\\n[Verse 1]\\nNow, if you want to hear some boogie like I am going to play\\nIt is just an old piano and a knockout bass\\nThe drummer's man's a cat, they call Charlie McCoy\\nYou know, remember that rubber legged boy?\\nMama, cooking chicken fried and bacon grease\\nCome on along boys, it is just down the road apiece\\n\\n[Chorus][x2]\\nWell there is a place you really get your kicks\\nIt is open every night about twelve to six\\nNow if you want to hear some boogie you can get your fill\\nAnd shove and sting like an old steam drill\\nCome on along you can lose your lead\\nDown the road, down the road, down the road apiece\\n\\n\",\n",
7474 " \"\\n\\n[Verse 1]\\nSun turnin' 'round with graceful motion\\nWe're setting off with soft explosion\\nBound for a star with fiery oceans\\nIt's so very lonely, you're a hundred light years from home\\nFreezing red deserts turn to dark\\nEnergy here in every part\\nIt's so very lonely, you're six hundred light years from home\\n\\n[Chorus]\\nIt's so very lonely, you're a thousand light years from home\\nIt's so very lonely, you're a thousand light years from home\\n\\n[Verse 2]\\nBell flight fourteen you now can land\\nSee you on Aldebaran, safe on the green desert sand\\nIt's so very lonely, you're two thousand light years from home\\nIt's so very lonely, you're two thousand light years from home\\n\\n\",\n",
7475 " '\\n\\n[Intro]\\nWell if you ever plan to motor west\\nJust take my way that is the highway that is the best\\n\\n[Verse]\\nGet your kicks on Route 66\\nWell it winds from Chicago to L.A\\nMore than 2000 miles all the way\\nGet your kicks on Route 66\\n\\n[Chorus][x2]\\nWell goes from St. Louie down to Missouri\\nOklahoma city looks oh so pretty\\nYou will see Amarillo and Gallup, New Mexico\\nFlagstaff, Arizona do not forget Winona\\nKingman, Barstow, San Bernardino\\nWould you get hip to this kindly tip\\nAnd go take that California trip\\nGet your kicks on Route 66\\n\\n',\n",
7476 " \"\\n\\nWell, they tell me of a pie up in the sky\\nWaiting for me when I die\\nBut between the day you're born and when you die\\nYou know, they never seem to hear even your cry\\n\\nChorus:\\nSo as sure as the sun will shine\\nI'm gonna get my share now what is mine\\nAnd then the harder they come\\nThe harder they fall\\nOne and all\\nThe harder they come\\nThe harder they fall\\nOne and all\\n\\nAnd the oppressors are trying to track me down\\nThey're trying to drive me underground\\nAnd they think that they have got the battle won\\nI say, forgive them Lord, they know not what they've done\\n\\nAnd I keep on fighting for the things I want\\nThough I know that when you're dead you can't\\nBut I'd rather be a free man in my grave\\nThan living as a puppet or a slave\\n\\n\"]"
7477 ]
7478 },
7479 "execution_count": 51,
7480 "metadata": {},
7481 "output_type": "execute_result"
7482 }
7483 ],
7484 "source": [
7485 "[t['original_lyrics'] for t in genius_tracks.find({'$text': {'$search': 'chorus'}}, limit=10)]"
7486 ]
7487 },
7488 {
7489 "cell_type": "markdown",
7490 "metadata": {},
7491 "source": [
7492 "## Matching datasets<a name=\"matchingdatasets\"></a>\n",
7493 "Now it's time to match up the datasets. First, we simplify the titles of the tracks, to sidestep differences in punctuation, capitalisation, and the like.\n",
7494 "\n",
7495 "* [Top](#top)"
7496 ]
7497 },
7498 {
7499 "cell_type": "code",
7500 "execution_count": 8,
7501 "metadata": {},
7502 "outputs": [],
7503 "source": [
7504 "def canonical_name(text):\n",
7505 " t1 = re.sub(' - .*', '', text) # Strip the \" - Remastered 2015\" suffix\n",
7506 " t2 = re.sub('[^\\w\\s]', '', t1) # strip all characters except letters, numbers, and whitespace\n",
7507 " t3 = re.sub('\\s+', ' ', t2) # collapse whitespace\n",
7508 " return t3.lower() # convert to lowercase and return"
7509 ]
7510 },
7511 {
7512 "cell_type": "code",
7513 "execution_count": 9,
7514 "metadata": {},
7515 "outputs": [
7516 {
7517 "data": {
7518 "text/plain": [
7519 "'a hard days night'"
7520 ]
7521 },
7522 "execution_count": 9,
7523 "metadata": {},
7524 "output_type": "execute_result"
7525 }
7526 ],
7527 "source": [
7528 "canonical_name(\"A Hard Day's Night - Live / Remastered\")"
7529 ]
7530 },
7531 {
7532 "cell_type": "markdown",
7533 "metadata": {},
7534 "source": [
7535 "Add the simplified title to each track in the Spotify and Genius collections."
7536 ]
7537 },
7538 {
7539 "cell_type": "code",
7540 "execution_count": 12,
7541 "metadata": {},
7542 "outputs": [],
7543 "source": [
7544 "for t in tracks.find():\n",
7545 " tracks.update_one({'_id': t['_id']}, {'$set': {'ctitle': canonical_name(t['name'])}})\n",
7546 "for t in genius_tracks.find():\n",
7547 " genius_tracks.update_one({'_id': t['_id']}, {'$set': {'ctitle': canonical_name(t['title'])}})"
7548 ]
7549 },
7550 {
7551 "cell_type": "code",
7552 "execution_count": 81,
7553 "metadata": {},
7554 "outputs": [
7555 {
7556 "data": {
7557 "text/plain": [
7558 "[('fight', ['Fight', 'Fight - Remastered 2009']),\n",
7559 " ('eight days a week',\n",
7560 " ['Eight Days A Week - Remastered 2015',\n",
7561 " 'Eight Days A Week - Remastered 2009']),\n",
7562 " ('yesterday', ['Yesterday - Remastered 2015', 'Yesterday - Remastered 2009']),\n",
7563 " ('had it with you', ['Had It With You', 'Had It With You - Remastered 2009']),\n",
7564 " ('little red rooster',\n",
7565 " ['Little Red Rooster - Live - 2009 Re-Mastered Digital Version',\n",
7566 " 'Little Red Rooster - Live In Ireland / 1965']),\n",
7567 " ('sympathy for the devil',\n",
7568 " ['Sympathy For The Devil - Live At Beacon Theatre, New York / 2006',\n",
7569 " 'Sympathy For The Devil - Live - 2009 Re-Mastered Digital Version',\n",
7570 " 'Sympathy For The Devil - Live']),\n",
7571 " ('you got the silver',\n",
7572 " ['You Got The Silver - Live At The Beacon Theatre, New York / 2006',\n",
7573 " 'You Got The Silver - Live']),\n",
7574 " ('worried about you',\n",
7575 " ['Worried About You - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7576 " 'Worried About You - 2009 Re-Mastered Digital Version']),\n",
7577 " ('you cant do that',\n",
7578 " [\"You Can't Do That - Live / Bonus Track\",\n",
7579 " \"You Can't Do That - Remastered 2009\"]),\n",
7580 " ('when the whip comes down',\n",
7581 " ['When The Whip Comes Down - Remastered',\n",
7582 " 'When The Whip Comes Down - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7583 " 'When The Whip Comes Down - Remastered']),\n",
7584 " ('babys in black',\n",
7585 " [\"Baby's In Black - Live / Bonus Track\",\n",
7586 " \"Baby's In Black - Remastered 2009\"]),\n",
7587 " ('slipping away',\n",
7588 " ['Slipping Away - Live - 2009 Re-Mastered Digital Version',\n",
7589 " 'Slipping Away - 2009 Re-Mastered Digital Version']),\n",
7590 " ('i want to hold your hand',\n",
7591 " ['I Want To Hold Your Hand - Live / Bonus Track',\n",
7592 " 'I Want To Hold Your Hand - Remastered 2015']),\n",
7593 " ('yellow submarine',\n",
7594 " ['Yellow Submarine - Remastered 2015',\n",
7595 " 'Yellow Submarine - Remastered 2009',\n",
7596 " 'Yellow Submarine - Remastered 2009']),\n",
7597 " ('one hit to the body',\n",
7598 " ['One Hit (To The Body)', 'One Hit (To The Body) - Remastered 2009']),\n",
7599 " ('shine a light',\n",
7600 " ['Shine A Light - Live At The Beacon Theatre, New York / 2006',\n",
7601 " 'Shine A Light - Live - 2009 Re-Mastered Digital Version',\n",
7602 " 'Shine a Light - Live']),\n",
7603 " ('its only rock n roll but i like it',\n",
7604 " [\"It's Only Rock 'n' Roll (But I Like It) - Live Licks Tour - 2009 Re-Mastered Digital Version\",\n",
7605 " \"It's Only Rock 'N Roll (But I Like It) - Live\"]),\n",
7606 " ('out of control',\n",
7607 " ['Out Of Control - 2009 Digital Remaster', 'Out Of Control - Live']),\n",
7608 " ('respectable', ['Respectable - Remastered', 'Respectable - Remastered']),\n",
7609 " ('winning ugly', ['Winning Ugly', 'Winning Ugly - Remastered 2009']),\n",
7610 " ('harlem shuffle', ['Harlem Shuffle', 'Harlem Shuffle - Remastered 2009']),\n",
7611 " ('like a rolling stone',\n",
7612 " ['Like a Rolling Stone - Live',\n",
7613 " 'Like A Rolling Stone - Live - 2009 Re-Mastered Digital Version']),\n",
7614 " ('too rude', ['Too Rude', 'Too Rude - Remastered 2009']),\n",
7615 " ('hello goodbye',\n",
7616 " ['Hello, Goodbye - Remastered 2015', 'Hello, Goodbye - Remastered 2009']),\n",
7617 " ('tumbling dice',\n",
7618 " ['Tumbling Dice - Live At The Beacon Theatre, New York / 2006',\n",
7619 " 'Tumbling Dice - Live']),\n",
7620 " ('everybody needs somebody to love',\n",
7621 " ['Everybody Needs Somebody To Love - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7622 " 'Everybody Needs Somebody To Love - Live In Ireland / 1965']),\n",
7623 " ('let it be', ['Let It Be - Remastered 2015', 'Let It Be - Remastered 2009']),\n",
7624 " ('i will', ['I Will - Remastered 2009', 'I Will']),\n",
7625 " ('paint it black',\n",
7626 " ['Paint It Black - Live At The Beacon Theatre, New York / 2006',\n",
7627 " 'Paint It Black - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7628 " 'Paint It Black - Live - 2009 Re-Mastered Digital Version',\n",
7629 " 'Paint It Black - Live']),\n",
7630 " ('start me up',\n",
7631 " ['Start Me Up - Live At The Beacon Theatre, New York / 2006',\n",
7632 " 'Start Me Up - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7633 " 'Start Me Up - Live - 2009 Re-Mastered Digital Version',\n",
7634 " 'Start Me Up - Live - 2009 Re-Mastered Digital Version',\n",
7635 " 'Start Me Up - 2009 Re-Mastered Digital Version',\n",
7636 " 'Start Me Up - Live']),\n",
7637 " ('dead flowers',\n",
7638 " ['Dead Flowers - Live',\n",
7639 " 'Dead Flowers - Live - 2009 Re-Mastered Digital Version']),\n",
7640 " ('love me do',\n",
7641 " ['Love Me Do - Mono / Remastered 2015', 'Love Me Do - Remastered 2009']),\n",
7642 " ('key to the highway',\n",
7643 " ['Key To The Highway - Piano Instrumental',\n",
7644 " 'Key To The Highway - Piano Instrumental/Remastered 2009']),\n",
7645 " ('you dont have to mean it',\n",
7646 " [\"You Don't Have To Mean It - Live Licks Tour - 2009 Re-Mastered Digital Version\",\n",
7647 " \"You Don't Have To Mean It - 2009 Digital Remaster\"]),\n",
7648 " ('shattered',\n",
7649 " ['Shattered - Remastered',\n",
7650 " 'Shattered - Remastered',\n",
7651 " 'Shattered - Live At The Beacon Theatre, New York / 2006',\n",
7652 " 'Shattered - Live - 2009 Re-Mastered Digital Version']),\n",
7653 " ('ticket to ride',\n",
7654 " ['Ticket To Ride - Live / Remastered',\n",
7655 " 'Ticket To Ride - Remastered 2015',\n",
7656 " 'Ticket To Ride - Remastered 2009']),\n",
7657 " ('hold back', ['Hold Back', 'Hold Back - Remastered 2009']),\n",
7658 " ('all my loving',\n",
7659 " ['All My Loving - Live / Remastered', 'All My Loving - Remastered 2009']),\n",
7660 " ('angie',\n",
7661 " ['Angie - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7662 " 'Angie - Live - 2009 Re-Mastered Digital Version',\n",
7663 " 'Angie - Live']),\n",
7664 " ('faraway eyes',\n",
7665 " ['Faraway Eyes - Live',\n",
7666 " 'Faraway Eyes - Live At The Beacon Theatre, New York / 2006']),\n",
7667 " ('roll over beethoven',\n",
7668 " ['Roll Over Beethoven - Live / Remastered',\n",
7669 " 'Roll Over Beethoven - Remastered 2009']),\n",
7670 " ('something', ['Something - Remastered 2015', 'Something - Remastered 2009']),\n",
7671 " ('miss you',\n",
7672 " ['Miss You - Remastered',\n",
7673 " 'Miss You - Live',\n",
7674 " 'Miss You - Live - 2009 Re-Mastered Digital Version',\n",
7675 " 'Miss You - Remastered',\n",
7676 " 'Miss You - Live']),\n",
7677 " ('get back', ['Get Back - Remastered 2015', 'Get Back - Remastered 2009']),\n",
7678 " ('midnight rambler', ['Midnight Rambler - Live', 'Midnight Rambler - Live']),\n",
7679 " ('time is on my side',\n",
7680 " ['Time Is On My Side - Live - 2009 Re-Mastered Digital Version',\n",
7681 " 'Time Is On My Side - Live In Ireland / 1965']),\n",
7682 " ('you cant always get what you want',\n",
7683 " [\"You Can't Always Get What You Want - Live Licks Tour - 2009 Re-Mastered Digital Version\",\n",
7684 " \"You Can't Always Get What You Want - Live - 2009 Re-Mastered Digital Version\",\n",
7685 " 'You Can’t Always Get What You Want - Live']),\n",
7686 " ('just my imagination running away with me',\n",
7687 " ['Just My Imagination (Running Away With Me) - Remastered',\n",
7688 " 'Just My Imagination (Running Away With Me) - Live - 2009 Re-Mastered Digital Version',\n",
7689 " 'Just My Imagination (Running Away With Me) - Remastered']),\n",
7690 " ('all down the line',\n",
7691 " ['All Down The Line - Live At The Beacon Theatre, New York / 2006',\n",
7692 " 'All Down The Line - Live']),\n",
7693 " ('sgt peppers lonely hearts club band',\n",
7694 " [\"Sgt. Pepper's Lonely Hearts Club Band - Remastered 2009\",\n",
7695 " \"Sgt. Pepper's Lonely Hearts Club Band - Reprise / Remastered 2009\"]),\n",
7696 " ('street fighting man',\n",
7697 " ['Street Fighting Man - Live',\n",
7698 " 'Street Fighting Man - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7699 " 'Street Fighting Man - Live - 2009 Re-Mastered Digital Version']),\n",
7700 " ('little ta',\n",
7701 " ['Little T&A - Live At The Beacon Theatre, New York / 2006',\n",
7702 " 'Little T&A - 2009 Re-Mastered Digital Version']),\n",
7703 " ('help',\n",
7704 " ['Help! - Live / Remastered',\n",
7705 " 'Help! - Remastered 2015',\n",
7706 " 'Help! - Remastered 2009']),\n",
7707 " ('boys', ['Boys - Live / Remastered', 'Boys - Remastered 2009']),\n",
7708 " ('beast of burden',\n",
7709 " ['Beast Of Burden - Remastered',\n",
7710 " 'Beast Of Burden - Remastered',\n",
7711 " 'Beast Of Burden - Live Licks Tour - 2009 Re-Mastered Digital Version']),\n",
7712 " ('brown sugar',\n",
7713 " ['Brown Sugar - Live',\n",
7714 " 'Brown Sugar - Live At The Beacon Theatre, New York / 2006',\n",
7715 " 'Brown Sugar - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7716 " 'Brown Sugar - Live - 2009 Re-Mastered Digital Version',\n",
7717 " 'Brown Sugar - Live']),\n",
7718 " ('rock and a hard place',\n",
7719 " ['Rock And A Hard Place - Live - 2009 Re-Mastered Digital Version',\n",
7720 " 'Rock And A Hard Place - 2009 Re-Mastered Digital Version']),\n",
7721 " ('gimme shelter',\n",
7722 " ['Gimme Shelter - Live',\n",
7723 " 'Gimme Shelter - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7724 " 'Gimme Shelter - Live']),\n",
7725 " ('before they make me run',\n",
7726 " ['Before They Make Me Run - Remastered',\n",
7727 " 'Before They Make Me Run - Remastered',\n",
7728 " 'Before They Make Me Run - Live']),\n",
7729 " ('twist and shout',\n",
7730 " ['Twist And Shout - Live / Remastered',\n",
7731 " 'Twist And Shout - Remastered 2009']),\n",
7732 " ('im free',\n",
7733 " [\"I'm Free - Live At The Beacon Theatre, New York / 2006\",\n",
7734 " \"I'm Free - Live - 2009 Re-Mastered Digital Version\"]),\n",
7735 " ('things we said today',\n",
7736 " ['Things We Said Today - Live / Remastered',\n",
7737 " 'Things We Said Today - Remastered 2009']),\n",
7738 " ('honky tonk women',\n",
7739 " ['Honky Tonk Women - Live',\n",
7740 " 'Honky Tonk Women - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7741 " 'Honky Tonk Women - Live']),\n",
7742 " ('neighbours',\n",
7743 " ['Neighbours - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7744 " 'Neighbours - 2009 Re-Mastered Digital Version']),\n",
7745 " ('eleanor rigby',\n",
7746 " ['Eleanor Rigby - Remastered 2015', 'Eleanor Rigby - Remastered 2009']),\n",
7747 " ('some girls',\n",
7748 " ['Some Girls - Remastered',\n",
7749 " 'Some Girls - Live At The Beacon Theatre, New York / 2006',\n",
7750 " 'Some Girls - Remastered']),\n",
7751 " ('sad sad sad',\n",
7752 " ['Sad Sad Sad - Live - 2009 Re-Mastered Digital Version',\n",
7753 " 'Sad Sad Sad - 2009 Re-Mastered Digital Version']),\n",
7754 " ('everybodys trying to be my baby',\n",
7755 " ['Everybody’s Trying To Be My Baby - Live / Bonus Track',\n",
7756 " \"Everybody's Trying To Be My Baby - Remastered 2009\"]),\n",
7757 " ('sleep tonight', ['Sleep Tonight', 'Sleep Tonight - Remastered 2009']),\n",
7758 " ('cant buy me love',\n",
7759 " [\"Can't Buy Me Love - Live / Remastered\",\n",
7760 " \"Can't Buy Me Love - Remastered 2015\",\n",
7761 " \"Can't Buy Me Love - Remastered 2009\"]),\n",
7762 " ('dirty work', ['Dirty Work', 'Dirty Work - Remastered 2009']),\n",
7763 " ('the long and winding road',\n",
7764 " ['The Long And Winding Road - Remastered 2015',\n",
7765 " 'The Long And Winding Road - Remastered 2009']),\n",
7766 " ('far away eyes',\n",
7767 " ['Far Away Eyes - Remastered', 'Far Away Eyes - Remastered']),\n",
7768 " ('i go wild',\n",
7769 " ['I Go Wild - Live', 'I Go Wild - 2009 Re-Mastered Digital Version']),\n",
7770 " ('continental drift',\n",
7771 " ['Continental Drift - Live - 2009 Re-Mastered Digital Version',\n",
7772 " 'Continental Drift - 2009 Re-Mastered Digital Version']),\n",
7773 " ('come together',\n",
7774 " ['Come Together - Remastered 2015', 'Come Together - Remastered 2009']),\n",
7775 " ('penny lane',\n",
7776 " ['Penny Lane - Remastered 2015', 'Penny Lane - Remastered 2009']),\n",
7777 " ('cant be seen',\n",
7778 " [\"Can't Be Seen - Live - 2009 Re-Mastered Digital Version\",\n",
7779 " \"Can't Be Seen - 2009 Re-Mastered Digital Version\"]),\n",
7780 " ('jumpin jack flash',\n",
7781 " [\"Jumpin' Jack Flash - Live\",\n",
7782 " \"Jumpin' Jack Flash - Live - 2009 Re-Mastered Digital Version\",\n",
7783 " \"Jumpin' Jack Flash - Live\"]),\n",
7784 " ('i cant get no satisfaction',\n",
7785 " [\"(I Can't Get No) Satisfaction - Live At The Beacon Theatre, New York / 2006\",\n",
7786 " \"(I Can't Get No) Satisfaction - Live Licks Tour - 2009 Re-Mastered Digital Version\",\n",
7787 " \"(I Can't Get No) Satisfaction - Live - 2009 Re-Mastered Digital Version\",\n",
7788 " \"(I Can't Get No) Satisfaction - Live - 2009 Re-Mastered Digital Version\",\n",
7789 " \"(I Can't Get No) Satisfaction - Live\"]),\n",
7790 " ('a hard days night',\n",
7791 " [\"A Hard Day's Night - Live / Remastered\",\n",
7792 " \"A Hard Day's Night - Remastered 2015\",\n",
7793 " \"A Hard Day's Night - Remastered 2009\"]),\n",
7794 " ('let me go',\n",
7795 " ['Let Me Go - Live - 2009 Re-Mastered Digital Version',\n",
7796 " 'Let Me Go - 2009 Re-Mastered Digital Version']),\n",
7797 " ('not fade away',\n",
7798 " ['Not Fade Away - Live',\n",
7799 " 'Not Fade Away - Live - 2009 Re-Mastered Digital Version']),\n",
7800 " ('dizzy miss lizzy',\n",
7801 " ['Dizzy Miss Lizzy - Live / Remastered',\n",
7802 " 'Dizzy Miss Lizzy - Remastered 2009']),\n",
7803 " ('she loves you',\n",
7804 " ['She Loves You - Live / Remastered',\n",
7805 " 'She Loves You - Mono / Remastered 2015']),\n",
7806 " ('back to zero', ['Back To Zero', 'Back To Zero - Remastered 2009']),\n",
7807 " ('lies', ['Lies - Remastered', 'Lies - Remastered']),\n",
7808 " ('she was hot',\n",
7809 " ['She Was Hot - Live At The Beacon Theatre, New York / 2006',\n",
7810 " 'She Was Hot - 2009 Re-Mastered Digital Version']),\n",
7811 " ('all you need is love',\n",
7812 " ['All You Need Is Love - Remastered 2015',\n",
7813 " 'All You Need Is Love - Remastered 2009',\n",
7814 " 'All You Need Is Love - Remastered 2009'])]"
7815 ]
7816 },
7817 "execution_count": 81,
7818 "metadata": {},
7819 "output_type": "execute_result"
7820 }
7821 ],
7822 "source": [
7823 "ctitles = set([t['ctitle'] for t in tracks.find()])\n",
7824 "\n",
7825 "[(ct, [t['name'] for t in tracks.find({'ctitle': ct})]) \n",
7826 " for ct in ctitles\n",
7827 " if tracks.find({'ctitle': ct}).count() > 1\n",
7828 "]"
7829 ]
7830 },
7831 {
7832 "cell_type": "code",
7833 "execution_count": 84,
7834 "metadata": {
7835 "scrolled": true
7836 },
7837 "outputs": [
7838 {
7839 "data": {
7840 "text/plain": [
7841 "[('eight days a week',\n",
7842 " [('Eight Days A Week - Remastered 2015', 0.215),\n",
7843 " ('Eight Days A Week - Remastered 2009', 0.119)]),\n",
7844 " ('yesterday',\n",
7845 " [('Yesterday - Remastered 2015', 0.0968),\n",
7846 " ('Yesterday - Remastered 2009', 0.0886)]),\n",
7847 " ('had it with you',\n",
7848 " [('Had It With You', 0.0655),\n",
7849 " ('Had It With You - Remastered 2009', 0.0744)]),\n",
7850 " ('worried about you',\n",
7851 " [('Worried About You - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
7852 " 0.47),\n",
7853 " ('Worried About You - 2009 Re-Mastered Digital Version', 0.0865)]),\n",
7854 " ('when the whip comes down',\n",
7855 " [('When The Whip Comes Down - Remastered', 0.242),\n",
7856 " ('When The Whip Comes Down - Remastered', 0.205)]),\n",
7857 " ('slipping away',\n",
7858 " [('Slipping Away - Live - 2009 Re-Mastered Digital Version', 0.106),\n",
7859 " ('Slipping Away - 2009 Re-Mastered Digital Version', 0.421)]),\n",
7860 " ('yellow submarine',\n",
7861 " [('Yellow Submarine - Remastered 2015', 0.543),\n",
7862 " ('Yellow Submarine - Remastered 2009', 0.528),\n",
7863 " ('Yellow Submarine - Remastered 2009', 0.438)]),\n",
7864 " ('one hit to the body',\n",
7865 " [('One Hit (To The Body)', 0.62),\n",
7866 " ('One Hit (To The Body) - Remastered 2009', 0.688)]),\n",
7867 " ('respectable',\n",
7868 " [('Respectable - Remastered', 0.0677),\n",
7869 " ('Respectable - Remastered', 0.0677)]),\n",
7870 " ('winning ugly',\n",
7871 " [('Winning Ugly', 0.693), ('Winning Ugly - Remastered 2009', 0.689)]),\n",
7872 " ('harlem shuffle',\n",
7873 " [('Harlem Shuffle', 0.224), ('Harlem Shuffle - Remastered 2009', 0.319)]),\n",
7874 " ('too rude', [('Too Rude', 0.0245), ('Too Rude - Remastered 2009', 0.0231)]),\n",
7875 " ('hello goodbye',\n",
7876 " [('Hello, Goodbye - Remastered 2015', 0.525),\n",
7877 " ('Hello, Goodbye - Remastered 2009', 0.414)]),\n",
7878 " ('let it be',\n",
7879 " [('Let It Be - Remastered 2015', 0.112),\n",
7880 " ('Let It Be - Remastered 2009', 0.111)]),\n",
7881 " ('i will', [('I Will - Remastered 2009', 0.0822), ('I Will', 0.113)]),\n",
7882 " ('love me do',\n",
7883 " [('Love Me Do - Mono / Remastered 2015', 0.154),\n",
7884 " ('Love Me Do - Remastered 2009', 0.227)]),\n",
7885 " ('key to the highway',\n",
7886 " [('Key To The Highway - Piano Instrumental', 0.132),\n",
7887 " ('Key To The Highway - Piano Instrumental/Remastered 2009', 0.138)]),\n",
7888 " ('shattered',\n",
7889 " [('Shattered - Remastered', 0.124), ('Shattered - Remastered', 0.122)]),\n",
7890 " ('ticket to ride',\n",
7891 " [('Ticket To Ride - Live / Remastered', 0.366),\n",
7892 " ('Ticket To Ride - Remastered 2015', 0.259),\n",
7893 " ('Ticket To Ride - Remastered 2009', 0.233)]),\n",
7894 " ('hold back', [('Hold Back', 0.343), ('Hold Back - Remastered 2009', 0.368)]),\n",
7895 " ('roll over beethoven',\n",
7896 " [('Roll Over Beethoven - Live / Remastered', 0.634),\n",
7897 " ('Roll Over Beethoven - Remastered 2009', 0.0952)]),\n",
7898 " ('something',\n",
7899 " [('Something - Remastered 2015', 0.144),\n",
7900 " ('Something - Remastered 2009', 0.138)]),\n",
7901 " ('miss you',\n",
7902 " [('Miss You - Remastered', 0.364),\n",
7903 " ('Miss You - Remastered', 0.236),\n",
7904 " ('Miss You - Live', 0.646)]),\n",
7905 " ('get back',\n",
7906 " [('Get Back - Remastered 2015', 0.0959),\n",
7907 " ('Get Back - Remastered 2009', 0.61)]),\n",
7908 " ('just my imagination running away with me',\n",
7909 " [('Just My Imagination (Running Away With Me) - Remastered', 0.411),\n",
7910 " ('Just My Imagination (Running Away With Me) - Remastered', 0.322)]),\n",
7911 " ('help',\n",
7912 " [('Help! - Remastered 2015', 0.0776), ('Help! - Remastered 2009', 0.0994)]),\n",
7913 " ('beast of burden',\n",
7914 " [('Beast Of Burden - Remastered', 0.0389),\n",
7915 " ('Beast Of Burden - Remastered', 0.0382)]),\n",
7916 " ('before they make me run',\n",
7917 " [('Before They Make Me Run - Remastered', 0.0499),\n",
7918 " ('Before They Make Me Run - Remastered', 0.0532)]),\n",
7919 " ('twist and shout',\n",
7920 " [('Twist And Shout - Live / Remastered', 0.508),\n",
7921 " ('Twist And Shout - Remastered 2009', 0.0414)]),\n",
7922 " ('eleanor rigby',\n",
7923 " [('Eleanor Rigby - Remastered 2015', 0.359),\n",
7924 " ('Eleanor Rigby - Remastered 2009', 0.305)]),\n",
7925 " ('some girls',\n",
7926 " [('Some Girls - Remastered', 0.409), ('Some Girls - Remastered', 0.51)]),\n",
7927 " ('everybodys trying to be my baby',\n",
7928 " [('Everybody’s Trying To Be My Baby - Live / Bonus Track', 0.448),\n",
7929 " (\"Everybody's Trying To Be My Baby - Remastered 2009\", 0.134)]),\n",
7930 " ('sleep tonight',\n",
7931 " [('Sleep Tonight', 0.273), ('Sleep Tonight - Remastered 2009', 0.297)]),\n",
7932 " ('cant buy me love',\n",
7933 " [(\"Can't Buy Me Love - Remastered 2015\", 0.325),\n",
7934 " (\"Can't Buy Me Love - Remastered 2009\", 0.321)]),\n",
7935 " ('dirty work',\n",
7936 " [('Dirty Work', 0.0878), ('Dirty Work - Remastered 2009', 0.0808)]),\n",
7937 " ('the long and winding road',\n",
7938 " [('The Long And Winding Road - Remastered 2015', 0.0718),\n",
7939 " ('The Long And Winding Road - Remastered 2009', 0.0559)]),\n",
7940 " ('far away eyes',\n",
7941 " [('Far Away Eyes - Remastered', 0.258),\n",
7942 " ('Far Away Eyes - Remastered', 0.232)]),\n",
7943 " ('come together',\n",
7944 " [('Come Together - Remastered 2015', 0.1),\n",
7945 " ('Come Together - Remastered 2009', 0.0926)]),\n",
7946 " ('penny lane',\n",
7947 " [('Penny Lane - Remastered 2015', 0.16),\n",
7948 " ('Penny Lane - Remastered 2009', 0.136)]),\n",
7949 " ('i cant get no satisfaction',\n",
7950 " [(\"(I Can't Get No) Satisfaction - Live - 2009 Re-Mastered Digital Version\",\n",
7951 " 0.511),\n",
7952 " (\"(I Can't Get No) Satisfaction - Live\", 0.357)]),\n",
7953 " ('a hard days night',\n",
7954 " [(\"A Hard Day's Night - Remastered 2015\", 0.0983),\n",
7955 " (\"A Hard Day's Night - Remastered 2009\", 0.0996)]),\n",
7956 " ('dizzy miss lizzy',\n",
7957 " [('Dizzy Miss Lizzy - Live / Remastered', 0.496),\n",
7958 " ('Dizzy Miss Lizzy - Remastered 2009', 0.0962)]),\n",
7959 " ('back to zero',\n",
7960 " [('Back To Zero', 0.064), ('Back To Zero - Remastered 2009', 0.0767)]),\n",
7961 " ('lies', [('Lies - Remastered', 0.524), ('Lies - Remastered', 0.472)]),\n",
7962 " ('all you need is love',\n",
7963 " [('All You Need Is Love - Remastered 2015', 0.263),\n",
7964 " ('All You Need Is Love - Remastered 2009', 0.286),\n",
7965 " ('All You Need Is Love - Remastered 2009', 0.155)])]"
7966 ]
7967 },
7968 "execution_count": 84,
7969 "metadata": {},
7970 "output_type": "execute_result"
7971 }
7972 ],
7973 "source": [
7974 "ctitles = set([t['ctitle'] for t in tracks.find()])\n",
7975 "\n",
7976 "[(ct, [(t['name'], t['liveness']) for t in tracks.find({'ctitle': ct, 'liveness': {'$lt': 0.7}})]) \n",
7977 " for ct in ctitles\n",
7978 " if tracks.find({'ctitle': ct, 'liveness': {'$lt': 0.7}}).count() > 1\n",
7979 "]"
7980 ]
7981 },
7982 {
7983 "cell_type": "code",
7984 "execution_count": 74,
7985 "metadata": {},
7986 "outputs": [
7987 {
7988 "data": {
7989 "text/plain": [
7990 "[('twist and shout', 'Twist And Shout - Live / Remastered', 'Twist and Shout'),\n",
7991 " ('twist and shout',\n",
7992 " 'Twist And Shout - Live / Remastered',\n",
7993 " 'Twist and shout - reloved version'),\n",
7994 " ('twist and shout',\n",
7995 " 'Twist And Shout - Live / Remastered',\n",
7996 " 'Twist And Shout - Remastered 2009'),\n",
7997 " ('roll over beethoven',\n",
7998 " 'Roll Over Beethoven - Live / Remastered',\n",
7999 " 'Roll Over Beethoven'),\n",
8000 " ('roll over beethoven',\n",
8001 " 'Roll Over Beethoven - Live / Remastered',\n",
8002 " 'Roll Over Beethoven'),\n",
8003 " ('she loves you', 'She Loves You - Live / Remastered', 'She Loves You'),\n",
8004 " ('she loves you',\n",
8005 " 'She Loves You - Live / Remastered',\n",
8006 " 'She loves you - reloved version'),\n",
8007 " ('i want to hold your hand',\n",
8008 " 'I Want To Hold Your Hand - Live / Bonus Track',\n",
8009 " 'I Want to Hold Your Hand'),\n",
8010 " ('i want to hold your hand',\n",
8011 " 'I Want To Hold Your Hand - Live / Bonus Track',\n",
8012 " 'I Want to Hold Your Hand'),\n",
8013 " ('love me do', 'Love Me Do - Mono / Remastered 2015', 'Love Me Do'),\n",
8014 " ('love me do',\n",
8015 " 'Love Me Do - Mono / Remastered 2015',\n",
8016 " 'Love Me Do - Spankox Liverpool Remix'),\n",
8017 " ('she loves you', 'She Loves You - Mono / Remastered 2015', 'She Loves You'),\n",
8018 " ('she loves you',\n",
8019 " 'She Loves You - Mono / Remastered 2015',\n",
8020 " 'She loves you - reloved version'),\n",
8021 " ('i want to hold your hand',\n",
8022 " 'I Want To Hold Your Hand - Remastered 2015',\n",
8023 " 'I Want to Hold Your Hand'),\n",
8024 " ('i want to hold your hand',\n",
8025 " 'I Want To Hold Your Hand - Remastered 2015',\n",
8026 " 'I Want to Hold Your Hand'),\n",
8027 " ('yesterday', 'Yesterday - Remastered 2015', 'Yesterday'),\n",
8028 " ('yesterday', 'Yesterday - Remastered 2015', 'Yesterday'),\n",
8029 " ('i will', 'I Will - Remastered 2009', 'I Will'),\n",
8030 " ('i will', 'I Will - Remastered 2009', 'I Will'),\n",
8031 " ('youve got to hide your love away',\n",
8032 " \"You've Got To Hide Your Love Away - Remastered 2009\",\n",
8033 " \"You've Got to Hide Your Love Away\"),\n",
8034 " ('youve got to hide your love away',\n",
8035 " \"You've Got To Hide Your Love Away - Remastered 2009\",\n",
8036 " \"You've Got To Hide Your Love Away - Take 5, Mono\"),\n",
8037 " ('yesterday', 'Yesterday - Remastered 2009', 'Yesterday'),\n",
8038 " ('yesterday', 'Yesterday - Remastered 2009', 'Yesterday'),\n",
8039 " ('little by little', 'Little By Little', 'Little by Little'),\n",
8040 " ('little by little', 'Little By Little', 'Little By Little'),\n",
8041 " ('roll over beethoven',\n",
8042 " 'Roll Over Beethoven - Remastered 2009',\n",
8043 " 'Roll Over Beethoven'),\n",
8044 " ('roll over beethoven',\n",
8045 " 'Roll Over Beethoven - Remastered 2009',\n",
8046 " 'Roll Over Beethoven'),\n",
8047 " ('i wanna be your man',\n",
8048 " 'I Wanna Be Your Man - Remastered 2009',\n",
8049 " 'I Wanna Be Your Man'),\n",
8050 " ('i wanna be your man',\n",
8051 " 'I Wanna Be Your Man - Remastered 2009',\n",
8052 " 'I Wanna Be Your Man'),\n",
8053 " ('money thats what i want',\n",
8054 " \"Money (That's What I Want) - Remastered 2009\",\n",
8055 " \"Money (That's What I Want)\"),\n",
8056 " ('money thats what i want',\n",
8057 " \"Money (That's What I Want) - Remastered 2009\",\n",
8058 " \"Money (That's What I Want) - Remastered 2009\"),\n",
8059 " ('please please me',\n",
8060 " 'Please Please Me - Remastered 2009',\n",
8061 " 'Please Please Me'),\n",
8062 " ('please please me',\n",
8063 " 'Please Please Me - Remastered 2009',\n",
8064 " 'Please, Please Me'),\n",
8065 " ('love me do', 'Love Me Do - Remastered 2009', 'Love Me Do'),\n",
8066 " ('love me do',\n",
8067 " 'Love Me Do - Remastered 2009',\n",
8068 " 'Love Me Do - Spankox Liverpool Remix'),\n",
8069 " ('ps i love you', 'P.S. I Love You - Remastered 2009', 'P.S. I Love You'),\n",
8070 " ('ps i love you',\n",
8071 " 'P.S. I Love You - Remastered 2009',\n",
8072 " 'P.s. i love you - reloved version'),\n",
8073 " ('twist and shout', 'Twist And Shout - Remastered 2009', 'Twist and Shout'),\n",
8074 " ('twist and shout',\n",
8075 " 'Twist And Shout - Remastered 2009',\n",
8076 " 'Twist and shout - reloved version'),\n",
8077 " ('twist and shout',\n",
8078 " 'Twist And Shout - Remastered 2009',\n",
8079 " 'Twist And Shout - Remastered 2009'),\n",
8080 " ('i will', 'I Will', 'I Will'),\n",
8081 " ('i will', 'I Will', 'I Will'),\n",
8082 " ('paranoid android', 'Paranoid Android', 'Paranoid Android'),\n",
8083 " ('paranoid android', 'Paranoid Android', 'Paranoid Android'),\n",
8084 " ('high and dry', 'High And Dry', 'High and Dry'),\n",
8085 " ('high and dry', 'High And Dry', 'High And Dry'),\n",
8086 " ('wild horses',\n",
8087 " 'Wild Horses - Live - 2009 Re-Mastered Digital Version',\n",
8088 " 'Wild Horses'),\n",
8089 " ('wild horses',\n",
8090 " 'Wild Horses - Live - 2009 Re-Mastered Digital Version',\n",
8091 " 'Wild Horses'),\n",
8092 " ('pain in my heart',\n",
8093 " 'Pain In My Heart - Live In Ireland / 1965',\n",
8094 " 'Pain In My Heart'),\n",
8095 " ('pain in my heart',\n",
8096 " 'Pain In My Heart - Live In Ireland / 1965',\n",
8097 " 'Pain In My Heart - Live In Ireland / 1965')]"
8098 ]
8099 },
8100 "execution_count": 74,
8101 "metadata": {},
8102 "output_type": "execute_result"
8103 }
8104 ],
8105 "source": [
8106 "[(t['ctitle'], t['name'], g['title']) \n",
8107 " for t in tracks.find()\n",
8108 " for g in genius_tracks.find({'ctitle': t['ctitle']})\n",
8109 " if genius_tracks.find({'ctitle': t['ctitle']}).count() > 1]"
8110 ]
8111 },
8112 {
8113 "cell_type": "markdown",
8114 "metadata": {},
8115 "source": [
8116 "Now to see what the differences are. Find the tracks that are in both collections, and tracks that are in only one."
8117 ]
8118 },
8119 {
8120 "cell_type": "code",
8121 "execution_count": 35,
8122 "metadata": {},
8123 "outputs": [
8124 {
8125 "data": {
8126 "text/plain": [
8127 "(499, 563, 57)"
8128 ]
8129 },
8130 "execution_count": 35,
8131 "metadata": {},
8132 "output_type": "execute_result"
8133 }
8134 ],
8135 "source": [
8136 "in_both = set((g['ctitle'], g['primary_artist']['name'])\n",
8137 " for g in genius_tracks.find({}, ['ctitle', 'primary_artist.name']) \n",
8138 " if tracks.find({'ctitle': g['ctitle']}).count())\n",
8139 "\n",
8140 "genius_only = set((g['ctitle'], g['primary_artist']['name']) \n",
8141 " for g in genius_tracks.find({}, ['ctitle', 'primary_artist.name']) \n",
8142 " if not tracks.find({'ctitle': g['ctitle']}).count())\n",
8143 "\n",
8144 "spotify_only = set((s['ctitle'], s['artist_name'])\n",
8145 " for s in tracks.find({}, ['ctitle', 'artist_name']) \n",
8146 " if not genius_tracks.find({'ctitle': s['ctitle']}).count())\n",
8147 "\n",
8148 "len(in_both), len(genius_only), len(spotify_only)"
8149 ]
8150 },
8151 {
8152 "cell_type": "code",
8153 "execution_count": 36,
8154 "metadata": {
8155 "scrolled": true
8156 },
8157 "outputs": [
8158 {
8159 "data": {
8160 "text/plain": [
8161 "[('bloom jamie xx rework', 'Radiohead'),\n",
8162 " ('sea of monsters', 'George Martin'),\n",
8163 " ('just my imagination', 'The Rolling Stones'),\n",
8164 " ('jumping jack flash', 'The Rolling Stones'),\n",
8165 " ('pepperland laid waste', 'George Martin'),\n",
8166 " ('little ta', 'The Rolling Stones'),\n",
8167 " ('kansas city heyheyheyhey', 'The Beatles'),\n",
8168 " ('bullet proof i wish i was', 'Radiohead'),\n",
8169 " ('sea of holes', 'George Martin'),\n",
8170 " ('packt like sardines in a crushed tin box', 'Radiohead'),\n",
8171 " ('codex illum sphere', 'Radiohead'),\n",
8172 " ('outro', 'Jimi Hendrix'),\n",
8173 " ('pepperland', 'George Martin'),\n",
8174 " ('key to the highway', 'The Rolling Stones'),\n",
8175 " ('march of the meanies', 'George Martin'),\n",
8176 " ('dollars cents', 'Radiohead'),\n",
8177 " ('little by little shed', 'Radiohead'),\n",
8178 " ('sea of time', 'George Martin'),\n",
8179 " ('faraway eyes', 'The Rolling Stones'),\n",
8180 " ('i will los angeles version', 'Radiohead'),\n",
8181 " ('everybody needs somebody to love finale', 'The Rolling Stones'),\n",
8182 " ('a punch up at a wedding', 'Radiohead'),\n",
8183 " ('revolution 1', 'The Beatles'),\n",
8184 " ('untitled', 'Radiohead'),\n",
8185 " ('when im sixty four', 'The Beatles')]"
8186 ]
8187 },
8188 "execution_count": 36,
8189 "metadata": {},
8190 "output_type": "execute_result"
8191 }
8192 ],
8193 "source": [
8194 "[s for s in spotify_only \n",
8195 " if 'rmx' not in s[0]\n",
8196 " if 'remix' not in s[0]\n",
8197 " if 'live' not in s[0]\n",
8198 " if 'intro' not in s[0]\n",
8199 "]"
8200 ]
8201 },
8202 {
8203 "cell_type": "code",
8204 "execution_count": 37,
8205 "metadata": {},
8206 "outputs": [
8207 {
8208 "data": {
8209 "text/plain": [
8210 "[('ladies and gentlemen the rolling stones', 'The Rolling Stones'),\n",
8211 " ('the butcher', 'Radiohead'),\n",
8212 " ('eds scary song', 'Radiohead'),\n",
8213 " ('long long while', 'The Rolling Stones'),\n",
8214 " ('till the next goodbye', 'The Rolling Stones'),\n",
8215 " ('wicked child', 'Radiohead'),\n",
8216 " ('bishops robes', 'Radiohead'),\n",
8217 " ('hey crawdaddy', 'The Rolling Stones'),\n",
8218 " ('baby please dont go', 'The Rolling Stones'),\n",
8219 " ('ready teddy', 'The Beatles'),\n",
8220 " ('somewhere', 'Ali brustofski'),\n",
8221 " ('fool to cry', 'The Rolling Stones'),\n",
8222 " ('john lennon vs bill oreilly', 'Nice Peter'),\n",
8223 " ('stray cat blues', 'The Rolling Stones'),\n",
8224 " ('because i know you love me so', 'The Beatles'),\n",
8225 " ('2120 south michigan avenue', 'The Rolling Stones'),\n",
8226 " ('jump on top of me', 'The Rolling Stones'),\n",
8227 " ('cinnamon girl', 'Radiohead'),\n",
8228 " ('john wesley harding', 'The Rolling Stones'),\n",
8229 " ('the honeymoon song', 'The Beatles'),\n",
8230 " ('dont ever change', 'The Beatles'),\n",
8231 " ('mantua', 'Radiohead'),\n",
8232 " ('fanny mae', 'The Rolling Stones'),\n",
8233 " ('paint it blacker', 'Plan B'),\n",
8234 " ('i froze up', 'Radiohead'),\n",
8235 " ('permanent daylight', 'Radiohead'),\n",
8236 " ('johnny b goode', 'The Beatles'),\n",
8237 " ('silver train', 'The Rolling Stones'),\n",
8238 " ('junk', 'The Beatles'),\n",
8239 " ('please go home', 'The Rolling Stones'),\n",
8240 " ('sie liebt dich', 'The Beatles'),\n",
8241 " ('come togetherdear prudence', 'The Beatles'),\n",
8242 " ('some other guy', 'The Beatles'),\n",
8243 " ('i call your name', 'The Beatles'),\n",
8244 " ('mona', 'The Rolling Stones'),\n",
8245 " ('complicated', 'The Rolling Stones'),\n",
8246 " ('little queenie', 'The Rolling Stones'),\n",
8247 " ('memphis', 'The Beatles'),\n",
8248 " ('glad all over', 'The Beatles'),\n",
8249 " ('all sold out', 'The Rolling Stones'),\n",
8250 " ('sympathy for the devil the neptunes remix', 'The Rolling Stones'),\n",
8251 " ('blue turns to grey', 'The Rolling Stones'),\n",
8252 " ('we are wasting time', 'The Rolling Stones'),\n",
8253 " ('its for you', 'The Beatles'),\n",
8254 " ('good times bad times', 'The Rolling Stones'),\n",
8255 " ('ooh my soul', 'The Beatles'),\n",
8256 " ('cry to me', 'The Rolling Stones'),\n",
8257 " ('egyptian song', 'Radiohead'),\n",
8258 " ('stoned', 'The Rolling Stones'),\n",
8259 " ('i dont know why aka dont know why i love you', 'The Rolling Stones'),\n",
8260 " ('get off of my cloud', 'The Rolling Stones'),\n",
8261 " ('star star', 'The Rolling Stones'),\n",
8262 " ('just a rumour', 'The Beatles'),\n",
8263 " ('id much rather be with the boys', 'The Rolling Stones'),\n",
8264 " ('petrol gang', 'The Rolling Stones'),\n",
8265 " ('in another land', 'The Rolling Stones'),\n",
8266 " ('you know what to do', 'The Beatles'),\n",
8267 " ('can you hear the music', 'The Rolling Stones'),\n",
8268 " ('you cant catch me', 'The Rolling Stones'),\n",
8269 " ('my bonnie', 'The Beatles'),\n",
8270 " ('money', 'The Rolling Stones'),\n",
8271 " ('honest i do', 'The Rolling Stones'),\n",
8272 " ('everything is turning to gold', 'The Rolling Stones'),\n",
8273 " ('cut a hole', 'Radiohead'),\n",
8274 " ('susie q', 'The Rolling Stones'),\n",
8275 " ('ooh my arms', 'The Beatles'),\n",
8276 " ('on the beach', 'Radiohead'),\n",
8277 " ('sha la la la la', 'The Beatles'),\n",
8278 " ('yesterdays papers', 'The Rolling Stones'),\n",
8279 " ('my girl', 'The Rolling Stones'),\n",
8280 " ('dear doctor', 'The Rolling Stones'),\n",
8281 " ('i want to know', 'On A Friday'),\n",
8282 " ('a moon shaped pool tracklist album cover', 'Radiohead'),\n",
8283 " ('four guys', 'James Richards'),\n",
8284 " ('i get a kick out of you', 'The Rolling Stones'),\n",
8285 " ('shout', 'The Beatles'),\n",
8286 " ('let it rock', 'The Rolling Stones'),\n",
8287 " ('travellin man', 'The Rolling Stones'),\n",
8288 " ('stealing my heart', 'The Rolling Stones'),\n",
8289 " ('when im sixtyfour', 'The Beatles'),\n",
8290 " ('criss cross man', 'The Rolling Stones'),\n",
8291 " ('come on', 'The Rolling Stones'),\n",
8292 " ('union city blue', 'Radiohead'),\n",
8293 " ('doom and gloom', 'The Rolling Stones'),\n",
8294 " ('baby whats wrong', 'The Rolling Stones'),\n",
8295 " ('nobodys child', 'The Beatles'),\n",
8296 " ('sweet little sixteen', 'The Beatles'),\n",
8297 " ('within you without youtomorrow never knows', 'The Beatles'),\n",
8298 " ('so divine aladdin story', 'The Rolling Stones'),\n",
8299 " ('upside down', 'Radiohead'),\n",
8300 " ('all things must pass', 'The Beatles'),\n",
8301 " ('besame mucho', 'The Beatles'),\n",
8302 " ('anyway you look at it', 'The Rolling Stones'),\n",
8303 " ('carol', 'The Rolling Stones'),\n",
8304 " ('winter', 'The Rolling Stones'),\n",
8305 " ('gangsters maul', 'The Rolling Stones'),\n",
8306 " ('what goes on girl', 'The Beatles'),\n",
8307 " ('lonesome tears in my eyes', 'The Beatles'),\n",
8308 " ('meet me in the bottom', 'The Rolling Stones'),\n",
8309 " ('missing links bootleg', 'Plan B'),\n",
8310 " ('through the lonely nights', 'The Rolling Stones'),\n",
8311 " ('no expectations', 'The Rolling Stones'),\n",
8312 " ('shake your hips', 'The Rolling Stones'),\n",
8313 " ('ill get you', 'The Beatles'),\n",
8314 " ('the beatles seventh christmas record', 'The Beatles'),\n",
8315 " ('words of love ep', 'The Beatles'),\n",
8316 " ('falling in love again', 'The Beatles'),\n",
8317 " ('dont let me down', 'The Beatles'),\n",
8318 " ('somebody else', 'Radiohead'),\n",
8319 " ('reminiscing', 'The Beatles'),\n",
8320 " ('the hippy hippy shake', 'The Beatles'),\n",
8321 " ('ya ya', 'The Beatles'),\n",
8322 " ('im down', 'The Beatles'),\n",
8323 " ('cry for a shadow', 'The Beatles'),\n",
8324 " ('doo doo doo doo doo heartbreaker', 'The Rolling Stones'),\n",
8325 " ('pop is dead', 'Radiohead'),\n",
8326 " ('love of the loved', 'The Beatles'),\n",
8327 " ('dancing with mr d', 'The Rolling Stones'),\n",
8328 " ('the thief', 'Radiohead'),\n",
8329 " ('jazz piano song', 'The Beatles'),\n",
8330 " ('da doo ron ron', 'The Rolling Stones'),\n",
8331 " ('lets dance', 'The Beatles'),\n",
8332 " ('one more try', 'The Rolling Stones'),\n",
8333 " ('andrews blues', 'The Rolling Stones'),\n",
8334 " ('memphis tennessee', 'The Beatles'),\n",
8335 " ('sister morphine', 'The Rolling Stones'),\n",
8336 " ('give it up', 'On A Friday'),\n",
8337 " ('blackbirdyesterday', 'The Beatles'),\n",
8338 " ('title 5', 'The Rolling Stones'),\n",
8339 " ('sad day', 'The Rolling Stones'),\n",
8340 " ('i am waiting', 'The Rolling Stones'),\n",
8341 " ('a picture of you', 'The Beatles'),\n",
8342 " ('dance', 'The Rolling Stones'),\n",
8343 " ('revolution', 'The Beatles'),\n",
8344 " ('youll be mine', 'The Beatles'),\n",
8345 " ('lewis mistreated', 'Radiohead'),\n",
8346 " ('keep your hands off my baby', 'The Beatles'),\n",
8347 " ('lady jane', 'The Rolling Stones'),\n",
8348 " ('following the river', 'The Rolling Stones'),\n",
8349 " ('the lantern', 'The Rolling Stones'),\n",
8350 " ('i got a woman', 'The Beatles'),\n",
8351 " ('walking through the sleepy city', 'The Rolling Stones'),\n",
8352 " ('aint that loving you baby', 'The Rolling Stones'),\n",
8353 " ('sing this all together', 'The Rolling Stones'),\n",
8354 " ('im gonna sit right down and cry over you', 'The Beatles'),\n",
8355 " ('in spite of all the danger', 'The Beatles'),\n",
8356 " ('crying waiting hoping', 'The Beatles'),\n",
8357 " ('we want the stones', 'The Rolling Stones'),\n",
8358 " ('the beatles 1968 christmas record', 'The Beatles'),\n",
8359 " ('miss amanda jones', 'The Rolling Stones'),\n",
8360 " ('wish i never met you', 'The Rolling Stones'),\n",
8361 " ('sweet georgia brown', 'The Beatles'),\n",
8362 " ('inside my head', 'Radiohead'),\n",
8363 " ('old brown shoe', 'The Beatles'),\n",
8364 " ('yes i am', 'Radiohead'),\n",
8365 " ('beatle greetings', 'The Beatles'),\n",
8366 " ('just a rumour speech', 'The Beatles'),\n",
8367 " ('nothin shakin', 'The Beatles'),\n",
8368 " ('hound dog', 'The Rolling Stones'),\n",
8369 " ('stuck out all alone', 'The Rolling Stones'),\n",
8370 " ('nothin shakin but the leaves on the trees', 'The Beatles'),\n",
8371 " ('2000 light years from home', 'The Rolling Stones'),\n",
8372 " ('ladytron', 'Radiohead'),\n",
8373 " ('shes a rainbow', 'The Rolling Stones'),\n",
8374 " ('no reply demo', 'The Beatles'),\n",
8375 " ('im not signifying', 'The Rolling Stones'),\n",
8376 " ('i want to be loved', 'The Rolling Stones'),\n",
8377 " ('bebopalula', 'The Beatles'),\n",
8378 " ('walking the dog', 'The Rolling Stones'),\n",
8379 " ('stop breaking down', 'The Rolling Stones'),\n",
8380 " ('whos been sleeping here', 'The Rolling Stones'),\n",
8381 " ('downtown suzie', 'The Rolling Stones'),\n",
8382 " ('real love', 'The Beatles'),\n",
8383 " ('keep strong', 'On A Friday'),\n",
8384 " ('yove got to hide your love away', 'The Beatles'),\n",
8385 " ('this boy', 'The Beatles'),\n",
8386 " ('the beatles third christmas record', 'The Beatles'),\n",
8387 " ('the harder they come', 'The Rolling Stones'),\n",
8388 " ('try a little harder', 'The Rolling Stones'),\n",
8389 " ('kid a tracklist album cover', 'Radiohead'),\n",
8390 " ('big boots', 'Radiohead'),\n",
8391 " ('aint too proud to beg', 'The Rolling Stones'),\n",
8392 " ('flight 505', 'The Rolling Stones'),\n",
8393 " ('ill be on my way', 'The Beatles'),\n",
8394 " ('cant get next to you', 'The Rolling Stones'),\n",
8395 " ('im coming up', 'On A Friday'),\n",
8396 " ('backstreet girl', 'The Rolling Stones'),\n",
8397 " ('final show', 'Beatles Candlestick Park Setlist'),\n",
8398 " ('wonderwall', 'Radiohead'),\n",
8399 " ('down in the bottom', 'The Rolling Stones'),\n",
8400 " ('you better move on', 'The Rolling Stones'),\n",
8401 " ('each and every day of the year', 'The Rolling Stones'),\n",
8402 " ('give peace a chance', 'The Beatles'),\n",
8403 " ('a punchup at a wedding', 'Radiohead'),\n",
8404 " ('why', 'The Beatles'),\n",
8405 " ('goodbye', 'The Beatles'),\n",
8406 " ('im gonna drive', 'The Rolling Stones'),\n",
8407 " ('short and curlies', 'The Rolling Stones'),\n",
8408 " ('3', 'The Rolling Stones'),\n",
8409 " ('19th nervous breakdown', 'The Rolling Stones'),\n",
8410 " ('pay your dues', 'The Rolling Stones'),\n",
8411 " ('melody', 'The Rolling Stones'),\n",
8412 " ('rhinestone cowboy', 'Radiohead'),\n",
8413 " ('spectre', 'Radiohead'),\n",
8414 " ('supercollider', 'Radiohead'),\n",
8415 " ('if you cant rock me', 'The Rolling Stones'),\n",
8416 " ('reelin and rockin', 'The Rolling Stones'),\n",
8417 " ('its not easy', 'The Rolling Stones'),\n",
8418 " ('think', 'The Rolling Stones'),\n",
8419 " ('eleanor rigbyjulia transition', 'The Beatles'),\n",
8420 " ('mannish boy', 'The Rolling Stones'),\n",
8421 " ('phillipa chicken', 'Radiohead'),\n",
8422 " ('cherry oh baby', 'The Rolling Stones'),\n",
8423 " ('its all over now', 'The Rolling Stones'),\n",
8424 " ('talkin about you', 'The Rolling Stones'),\n",
8425 " ('matchbox', 'The Beatles'),\n",
8426 " ('revolution i', 'The Beatles'),\n",
8427 " ('ooh my arms speech', 'The Beatles'),\n",
8428 " ('whatd i say', 'The Beatles'),\n",
8429 " ('saints when the saints go marching in', 'The Beatles'),\n",
8430 " ('bad boy', 'The Beatles'),\n",
8431 " ('bitches talkin', 'Frank Ocean'),\n",
8432 " ('congratulations', 'The Rolling Stones'),\n",
8433 " ('good times', 'The Rolling Stones'),\n",
8434 " ('thatll be the day', 'The Beatles'),\n",
8435 " ('gnik nus', 'The Beatles'),\n",
8436 " ('around and around', 'The Rolling Stones'),\n",
8437 " ('ive been loving you too long', 'The Rolling Stones'),\n",
8438 " ('i want none of this', 'Radiohead'),\n",
8439 " ('saints', 'The Beatles'),\n",
8440 " ('something happened to me yesterday', 'The Rolling Stones'),\n",
8441 " ('what is that you say', 'Radiohead'),\n",
8442 " ('glass onion love remix', 'The Beatles'),\n",
8443 " ('gotta get away', 'The Rolling Stones'),\n",
8444 " ('what a shame', 'The Rolling Stones'),\n",
8445 " ('i promise', 'Radiohead'),\n",
8446 " ('climbing up a bloody great hill', 'Radiohead'),\n",
8447 " ('down in eastern australia', 'The Beatles'),\n",
8448 " ('meeting in the aisle', 'Radiohead'),\n",
8449 " ('one and one is two', 'The Beatles'),\n",
8450 " ('love these goon shows', 'The Beatles'),\n",
8451 " ('nothing from nothing', 'The Rolling Stones'),\n",
8452 " ('bullet proofi wish i was', 'Radiohead'),\n",
8453 " ('play with fire', 'The Rolling Stones'),\n",
8454 " ('dear wack', 'The Beatles'),\n",
8455 " ('crushed pearl', 'The Rolling Stones'),\n",
8456 " ('the sheik of araby', 'The Beatles'),\n",
8457 " ('aint she sweet', 'The Beatles'),\n",
8458 " ('highway child', 'The Rolling Stones'),\n",
8459 " ('how can you be sure', 'Radiohead'),\n",
8460 " ('burning bush', 'Radiohead'),\n",
8461 " ('salt of the earth', 'The Rolling Stones'),\n",
8462 " ('not guilty', 'The Beatles'),\n",
8463 " ('soldier of love', 'The Beatles'),\n",
8464 " ('i aint superstitious', 'The Rolling Stones'),\n",
8465 " ('three cool cats', 'The Beatles'),\n",
8466 " ('confessin the blues', 'The Rolling Stones'),\n",
8467 " ('under the board walk', 'The Rolling Stones'),\n",
8468 " ('hoochie coochie man', 'The Rolling Stones'),\n",
8469 " ('thank you girl', 'The Beatles'),\n",
8470 " ('follow me around', 'Radiohead'),\n",
8471 " ('talk show host', 'Radiohead'),\n",
8472 " ('you know my name look up the number', 'The Beatles'),\n",
8473 " ('how i made my millions', 'Radiohead'),\n",
8474 " ('watching rainbows', 'The Beatles'),\n",
8475 " ('grown up wrong', 'The Rolling Stones'),\n",
8476 " ('crinsk dee night', 'The Beatles'),\n",
8477 " ('hello little girl', 'The Beatles'),\n",
8478 " ('september in the rain', 'The Beatles'),\n",
8479 " ('cool calm and collected', 'The Rolling Stones'),\n",
8480 " ('komm gib mir deine hand', 'The Beatles'),\n",
8481 " ('open pick', 'Radiohead'),\n",
8482 " ('moonlight mile', 'The Rolling Stones'),\n",
8483 " ('step inside love', 'The Beatles'),\n",
8484 " ('dream baby', 'The Beatles'),\n",
8485 " ('casino boogie', 'The Rolling Stones'),\n",
8486 " ('child of nature', 'The Beatles'),\n",
8487 " ('hitch hike', 'The Rolling Stones'),\n",
8488 " ('mr b', 'Radiohead'),\n",
8489 " ('im a king bee', 'The Rolling Stones'),\n",
8490 " ('parachute woman', 'The Rolling Stones'),\n",
8491 " ('goin home', 'The Rolling Stones'),\n",
8492 " ('ruby baby', 'The Beatles'),\n",
8493 " ('sinking ship', 'On A Friday'),\n",
8494 " ('the fool on the hill demo', 'The Beatles'),\n",
8495 " ('have a banana', 'The Beatles'),\n",
8496 " ('yes it is', 'The Beatles'),\n",
8497 " ('jingle bells', 'The Beatles'),\n",
8498 " ('prodigal son', 'The Rolling Stones'),\n",
8499 " ('untogether', 'Radiohead'),\n",
8500 " ('let it loose', 'The Rolling Stones'),\n",
8501 " ('everybody lies through their teeth', 'On A Friday'),\n",
8502 " ('blood red wine', 'The Rolling Stones'),\n",
8503 " ('the trickster', 'Radiohead'),\n",
8504 " ('palo alto', 'Radiohead'),\n",
8505 " ('worrywort', 'Radiohead'),\n",
8506 " ('i just dont understand', 'The Beatles'),\n",
8507 " ('what is it that you say', 'On A Friday'),\n",
8508 " ('step inside love los paranoias', 'The Beatles'),\n",
8509 " ('i think im going mad', 'The Rolling Stones'),\n",
8510 " ('youve got a hold on me', 'The Beatles'),\n",
8511 " ('some things just stick in your mind', 'The Rolling Stones'),\n",
8512 " ('empty heart', 'The Rolling Stones'),\n",
8513 " ('the beatles christmas record', 'The Beatles'),\n",
8514 " ('packt like sardines in a crushd tin box', 'Radiohead'),\n",
8515 " ('beautiful dreamer', 'The Beatles'),\n",
8516 " ('i need you baby mona', 'The Rolling Stones'),\n",
8517 " ('blue suede shoes', 'The Beatles'),\n",
8518 " ('sour milk sea', 'The Beatles'),\n",
8519 " ('sleepy city', 'The Rolling Stones'),\n",
8520 " ('family', 'The Rolling Stones'),\n",
8521 " ('lend me your comb', 'The Beatles'),\n",
8522 " ('ventilator blues', 'The Rolling Stones'),\n",
8523 " ('still a fool', 'The Rolling Stones'),\n",
8524 " ('con le mie lacrime', 'The Rolling Stones'),\n",
8525 " ('all together on the wireless machine', 'The Beatles'),\n",
8526 " ('whats the new mary jane', 'The Beatles'),\n",
8527 " ('dont look back', 'The Rolling Stones'),\n",
8528 " ('stupid girl', 'The Rolling Stones'),\n",
8529 " ('child of the moon', 'The Rolling Stones'),\n",
8530 " ('you can make it if you try', 'The Rolling Stones'),\n",
8531 " ('how do you do it', 'The Beatles'),\n",
8532 " ('kansas city', 'The Beatles'),\n",
8533 " ('hiheel sneakers', 'The Rolling Stones'),\n",
8534 " ('summertime blues', 'The Rolling Stones'),\n",
8535 " ('im going down', 'The Rolling Stones'),\n",
8536 " ('pearly', 'Radiohead'),\n",
8537 " ('so how come no one loves me', 'The Beatles'),\n",
8538 " ('we love you', 'The Rolling Stones'),\n",
8539 " ('she smiled sweetly', 'The Rolling Stones'),\n",
8540 " ('little t a', 'The Rolling Stones'),\n",
8541 " ('banana co', 'Radiohead'),\n",
8542 " ('clarabella', 'The Beatles'),\n",
8543 " ('wish you were here', 'Radiohead'),\n",
8544 " ('sing a song for you', 'Radiohead'),\n",
8545 " ('hallelujah i love her so', 'The Beatles'),\n",
8546 " ('luxury', 'The Rolling Stones'),\n",
8547 " ('the storm', 'The Rolling Stones'),\n",
8548 " ('the daily mail', 'Radiohead'),\n",
8549 " ('something with blue jay way transition', 'The Beatles'),\n",
8550 " ('big ideas', 'Radiohead'),\n",
8551 " ('heart of stone', 'The Rolling Stones'),\n",
8552 " ('i just want to make love to you', 'The Rolling Stones'),\n",
8553 " ('what to do', 'The Rolling Stones'),\n",
8554 " ('road runner', 'The Rolling Stones'),\n",
8555 " ('if i was a dancer dance part 2', 'The Rolling Stones'),\n",
8556 " ('fancyman blues', 'The Rolling Stones'),\n",
8557 " ('transatlantic drawl', 'Radiohead'),\n",
8558 " ('the rocky road to dublin', 'The Chieftains'),\n",
8559 " ('teddy boy', 'The Beatles'),\n",
8560 " ('fingerprint file', 'The Rolling Stones'),\n",
8561 " ('memphis tennessee', 'The Rolling Stones'),\n",
8562 " ('cocksucker blues', 'The Rolling Stones'),\n",
8563 " ('if you let me', 'The Rolling Stones'),\n",
8564 " ('mercy mercy', 'The Rolling Stones'),\n",
8565 " ('i got to find my baby', 'The Beatles'),\n",
8566 " ('the singer not the song', 'The Rolling Stones'),\n",
8567 " ('killer cars', 'Radiohead'),\n",
8568 " ('slow down', 'The Beatles'),\n",
8569 " ('my bonnie', 'Tony Sheridan'),\n",
8570 " ('heavys pizza', 'Dallas Smart'),\n",
8571 " ('drift away', 'The Rolling Stones'),\n",
8572 " ('lift', 'Radiohead'),\n",
8573 " ('sure to fall in love with you', 'The Beatles'),\n",
8574 " ('molasses', 'Radiohead'),\n",
8575 " ('tell me why ep', 'The Beatles'),\n",
8576 " ('ill wear it proudly', 'Radiohead'),\n",
8577 " ('melatonin', 'Radiohead'),\n",
8578 " ('rain', 'The Beatles'),\n",
8579 " ('india', 'The Beatles'),\n",
8580 " ('being for the benefit of mr kitei want you shes so heavyhelter skelter',\n",
8581 " 'The Beatles'),\n",
8582 " ('one more shot', 'The Rolling Stones'),\n",
8583 " ('stupid car', 'Radiohead'),\n",
8584 " ('jiving sister fanny', 'The Rolling Stones'),\n",
8585 " ('another beatles christmas record', 'The Beatles'),\n",
8586 " ('were wastin time', 'The Rolling Stones'),\n",
8587 " ('punchdrunk lovesick singalong', 'Radiohead'),\n",
8588 " ('can i get a witness', 'The Rolling Stones'),\n",
8589 " ('happy song', 'On A Friday'),\n",
8590 " ('100 years ago', 'The Rolling Stones'),\n",
8591 " ('riding on a bus', 'The Beatles'),\n",
8592 " ('india rubber', 'Radiohead'),\n",
8593 " ('on with the show', 'The Rolling Stones'),\n",
8594 " ('hey negrita', 'The Rolling Stones'),\n",
8595 " ('moonlight', 'The Beatles'),\n",
8596 " ('polyethylene parts 1 2', 'Radiohead'),\n",
8597 " ('sympathy for the devil fatboy slim remix', 'The Rolling Stones'),\n",
8598 " ('sweet black angel', 'The Rolling Stones'),\n",
8599 " ('if you love me baby', 'The Beatles'),\n",
8600 " ('sweet little sixteen', 'The Rolling Stones'),\n",
8601 " ('1822', 'The Beatles'),\n",
8602 " ('everyone needs someone to hate', 'On A Friday'),\n",
8603 " ('leave my kitten alone', 'The Beatles'),\n",
8604 " ('citadel', 'The Rolling Stones'),\n",
8605 " ('country honk', 'The Rolling Stones'),\n",
8606 " ('hot stuff', 'The Rolling Stones'),\n",
8607 " ('someone else', 'On A Friday'),\n",
8608 " ('hide your love', 'The Rolling Stones'),\n",
8609 " ('look what youve done', 'The Rolling Stones'),\n",
8610 " ('dance little sister', 'The Rolling Stones'),\n",
8611 " ('tell me youre coming back', 'The Rolling Stones'),\n",
8612 " ('dancing in the light', 'The Rolling Stones'),\n",
8613 " ('i dont know why', 'The Rolling Stones'),\n",
8614 " ('mothers little helper', 'The Rolling Stones'),\n",
8615 " ('jigsaw puzzle', 'The Rolling Stones'),\n",
8616 " ('2000 man', 'The Rolling Stones'),\n",
8617 " ('from us to you', 'The Beatles'),\n",
8618 " ('here comes the sunthe inner light transition', 'The Beatles'),\n",
8619 " ('down home girl', 'The Rolling Stones'),\n",
8620 " ('you never wash up after yourself', 'Radiohead'),\n",
8621 " ('commonwealth', 'The Beatles'),\n",
8622 " ('bye bye johnny', 'The Rolling Stones'),\n",
8623 " ('diddley daddy', 'The Rolling Stones'),\n",
8624 " ('crackin up', 'The Rolling Stones'),\n",
8625 " ('i just want to see his face', 'The Rolling Stones'),\n",
8626 " ('set fire to that lot speech', 'The Beatles'),\n",
8627 " ('the new generation', 'Radiohead'),\n",
8628 " ('to be a brilliant light', 'On A Friday'),\n",
8629 " ('a little rhyme', 'The Beatles'),\n",
8630 " ('these are my twisted words', 'Radiohead'),\n",
8631 " ('rain fall down william remix', 'The Rolling Stones'),\n",
8632 " ('across the universe wildlife version', 'The Beatles'),\n",
8633 " ('i cant help it', 'The Rolling Stones'),\n",
8634 " ('the happy rishikesh song', 'The Beatles'),\n",
8635 " ('blue moon of kentucky', 'The Beatles'),\n",
8636 " ('dollars and cents', 'Radiohead'),\n",
8637 " ('it should be you', 'The Rolling Stones'),\n",
8638 " ('goodbye girl', 'The Rolling Stones'),\n",
8639 " ('corinna', 'The Rolling Stones'),\n",
8640 " ('million dollar question', 'Radiohead'),\n",
8641 " ('bitch', 'The Rolling Stones'),\n",
8642 " ('she said yeah', 'The Rolling Stones'),\n",
8643 " ('maquiladora', 'Radiohead'),\n",
8644 " ('sway', 'The Rolling Stones'),\n",
8645 " ('oh baby we got a good thing goin', 'The Rolling Stones'),\n",
8646 " ('wake up in the morning', 'The Rolling Stones'),\n",
8647 " ('who am i', 'The Rolling Stones'),\n",
8648 " ('memory motel', 'The Rolling Stones'),\n",
8649 " ('my obsession', 'The Rolling Stones'),\n",
8650 " ('sure to fall', 'The Beatles'),\n",
8651 " ('im talking about you', 'The Beatles'),\n",
8652 " ('faithless the wonderboy', 'Radiohead'),\n",
8653 " ('i got the blues', 'The Rolling Stones'),\n",
8654 " ('carol', 'The Beatles'),\n",
8655 " ('sgt peppers lonely hearts club band band documentary multimedia',\n",
8656 " 'The Beatles'),\n",
8657 " ('the under assistant west coast promotion man', 'The Rolling Stones'),\n",
8658 " ('have you seen your mother baby standing in the shadow',\n",
8659 " 'The Rolling Stones'),\n",
8660 " ('suzy parker', 'The Beatles'),\n",
8661 " ('jerusalem', 'On A Friday'),\n",
8662 " ('plundered my soul', 'The Rolling Stones'),\n",
8663 " ('mailman bring me no more blues', 'The Beatles'),\n",
8664 " ('memo from turner', 'The Rolling Stones'),\n",
8665 " ('it hurts me too', 'The Rolling Stones'),\n",
8666 " ('stranger in my arms', 'The Beatles'),\n",
8667 " ('young blood', 'The Beatles'),\n",
8668 " ('soul survivor', 'The Rolling Stones'),\n",
8669 " ('torn and frayed', 'The Rolling Stones'),\n",
8670 " ('sittin on a fence', 'The Rolling Stones'),\n",
8671 " ('doncha bother me', 'The Rolling Stones'),\n",
8672 " ('fasttrack', 'Radiohead'),\n",
8673 " ('ride on baby', 'The Rolling Stones'),\n",
8674 " ('that girl belongs to yesterday', 'The Rolling Stones'),\n",
8675 " ('james bond theme', 'The Beatles'),\n",
8676 " ('love', 'The Beatles'),\n",
8677 " ('hear me lord harrison', 'The Beatles'),\n",
8678 " ('i forgot to remember to forget', 'The Beatles'),\n",
8679 " ('a reminder', 'Radiohead'),\n",
8680 " ('set fire to that lot', 'The Beatles'),\n",
8681 " ('ceremony', 'Radiohead'),\n",
8682 " ('harlem shuffle ny mix', 'The Rolling Stones'),\n",
8683 " ('if you need me', 'The Rolling Stones'),\n",
8684 " ('lozenge of love', 'Radiohead'),\n",
8685 " ('shake rattle and roll', 'The Beatles'),\n",
8686 " ('to know her is to love her', 'The Beatles'),\n",
8687 " ('pedro the fisherman', 'The Beatles'),\n",
8688 " ('harry patch in memory of', 'Radiohead'),\n",
8689 " ('nothing touches me', 'Radiohead'),\n",
8690 " ('dont lie to me', 'The Rolling Stones'),\n",
8691 " ('christmas time is here again', 'The Beatles'),\n",
8692 " ('cook cook blues', 'The Rolling Stones'),\n",
8693 " ('losing my touch', 'The Rolling Stones'),\n",
8694 " ('fortune teller', 'The Rolling Stones'),\n",
8695 " ('have a banana speech', 'The Beatles'),\n",
8696 " ('coming down again', 'The Rolling Stones'),\n",
8697 " ('ill wind', 'Radiohead'),\n",
8698 " ('lull', 'Radiohead'),\n",
8699 " ('you gotta move', 'The Rolling Stones'),\n",
8700 " ('the inner light', 'The Beatles'),\n",
8701 " ('hand of fate', 'The Rolling Stones'),\n",
8702 " ('staircase', 'Radiohead'),\n",
8703 " ('dont stop', 'The Rolling Stones'),\n",
8704 " ('get back aka no pakistanis', 'The Beatles'),\n",
8705 " ('lucille', 'The Beatles'),\n",
8706 " ('that means a lot', 'The Beatles'),\n",
8707 " ('gomper', 'The Rolling Stones'),\n",
8708 " ('tell me', 'The Rolling Stones'),\n",
8709 " ('moonlight bay', 'The Beatles'),\n",
8710 " ('stand by me', 'The Beatles'),\n",
8711 " ('manowar', 'Radiohead'),\n",
8712 " ('bad to me', 'The Beatles'),\n",
8713 " ('miss you dr dre remix 2002', 'The Rolling Stones'),\n",
8714 " ('too much monkey business', 'The Beatles'),\n",
8715 " ('poison ivy', 'The Rolling Stones'),\n",
8716 " ('free as a bird', 'The Beatles'),\n",
8717 " ('cuttooth', 'Radiohead'),\n",
8718 " ('come and get it', 'The Beatles'),\n",
8719 " ('turd on the run', 'The Rolling Stones'),\n",
8720 " ('i cant be satisfied', 'The Rolling Stones'),\n",
8721 " ('time waits for no one', 'The Rolling Stones'),\n",
8722 " ('if you really want to be my friend', 'The Rolling Stones'),\n",
8723 " ('dandelion', 'The Rolling Stones'),\n",
8724 " ('swanee river', 'The Beatles'),\n",
8725 " ('tell me baby how many times', 'The Rolling Stones'),\n",
8726 " ('you know my name', 'The Beatles'),\n",
8727 " ('bright lights big city', 'The Rolling Stones'),\n",
8728 " ('beautiful delilah', 'The Rolling Stones'),\n",
8729 " ('when the saints go marchin in', 'The Beatles'),\n",
8730 " ('nobody does it better', 'Radiohead'),\n",
8731 " ('like dreamers do', 'The Beatles'),\n",
8732 " ('searchin', 'The Beatles'),\n",
8733 " ('thats alright mama', 'The Beatles'),\n",
8734 " ('crazy mama', 'The Rolling Stones'),\n",
8735 " ('good time women', 'The Rolling Stones'),\n",
8736 " ('keys to your love', 'The Rolling Stones'),\n",
8737 " ('whos driving your plane', 'The Rolling Stones'),\n",
8738 " ('drive my carthe wordwhat youre doing', 'The Beatles'),\n",
8739 " ('out of time', 'The Rolling Stones'),\n",
8740 " ('cops and robbers', 'The Rolling Stones'),\n",
8741 " ('pass the wine sophia loren', 'The Rolling Stones'),\n",
8742 " ('linda lu', 'The Rolling Stones'),\n",
8743 " ('from fluff to you', 'The Beatles'),\n",
8744 " ('surprise surprise', 'The Rolling Stones'),\n",
8745 " ('pantomime everywhere its christmas', 'The Beatles'),\n",
8746 " ('coke babies', 'Radiohead'),\n",
8747 " ('fog', 'Radiohead'),\n",
8748 " ('sgt peppers lonely hearts club band reprise', 'The Beatles'),\n",
8749 " ('if youve got trouble', 'The Beatles'),\n",
8750 " ('a shot of rhythm and blues', 'The Beatles'),\n",
8751 " ('looking tired', 'The Rolling Stones'),\n",
8752 " ('the amazing sounds of orgy', 'Radiohead'),\n",
8753 " ('sing this all together see what happens', 'The Rolling Stones')]"
8754 ]
8755 },
8756 "execution_count": 37,
8757 "metadata": {},
8758 "output_type": "execute_result"
8759 }
8760 ],
8761 "source": [
8762 "[g for g in genius_only\n",
8763 " if 'take' not in g[0]\n",
8764 " if 'medley' not in g[0]\n",
8765 " if 'intro' not in g[0]\n",
8766 " if 'live' not in g[0]\n",
8767 "]"
8768 ]
8769 },
8770 {
8771 "cell_type": "code",
8772 "execution_count": 38,
8773 "metadata": {},
8774 "outputs": [
8775 {
8776 "data": {
8777 "text/plain": [
8778 "[('revolution', 'The Beatles'), ('revolution i', 'The Beatles')]"
8779 ]
8780 },
8781 "execution_count": 38,
8782 "metadata": {},
8783 "output_type": "execute_result"
8784 }
8785 ],
8786 "source": [
8787 "[t for t in genius_only if 'revolution' in t[0]]"
8788 ]
8789 },
8790 {
8791 "cell_type": "code",
8792 "execution_count": 39,
8793 "metadata": {},
8794 "outputs": [
8795 {
8796 "data": {
8797 "text/plain": [
8798 "[('revolution 1', 'The Beatles')]"
8799 ]
8800 },
8801 "execution_count": 39,
8802 "metadata": {},
8803 "output_type": "execute_result"
8804 }
8805 ],
8806 "source": [
8807 "[t for t in spotify_only if 'revolution' in t[0]]"
8808 ]
8809 },
8810 {
8811 "cell_type": "code",
8812 "execution_count": 40,
8813 "metadata": {},
8814 "outputs": [
8815 {
8816 "data": {
8817 "text/plain": [
8818 "([], [('jumping jack flash', 'The Rolling Stones')])"
8819 ]
8820 },
8821 "execution_count": 40,
8822 "metadata": {},
8823 "output_type": "execute_result"
8824 }
8825 ],
8826 "source": [
8827 "([t for t in in_both if 'jack flash' in t], [t for t in spotify_only if 'jack flash' in t[0]])"
8828 ]
8829 },
8830 {
8831 "cell_type": "code",
8832 "execution_count": 42,
8833 "metadata": {},
8834 "outputs": [
8835 {
8836 "name": "stdout",
8837 "output_type": "stream",
8838 "text": [
8839 "i might be wrong live [('i might be wrong live', 'Radiohead')] []\n",
8840 "losing my touch [] [('losing my touch', 'The Rolling Stones')]\n",
8841 "burning bush [] [('burning bush', 'Radiohead')]\n",
8842 "just a rumour [] [('just a rumour', 'The Beatles')]\n",
8843 "eight days a week [('eight days a week', 'The Beatles'), ('eight days a week', 'The Beatles')] [('eight days a week', 'The Beatles')]\n",
8844 "little by little caribou rmx [('little by little caribou rmx', 'Radiohead')] []\n",
8845 "yesterdays papers [] [('yesterdays papers', 'The Rolling Stones')]\n",
8846 "con le mie lacrime [] [('con le mie lacrime', 'The Rolling Stones')]\n",
8847 "come on [] [('come on', 'The Rolling Stones')]\n",
8848 "fortune teller [] [('fortune teller', 'The Rolling Stones')]\n",
8849 "cinnamon girl [] [('cinnamon girl', 'Radiohead')]\n",
8850 "lewis mistreated [] [('lewis mistreated', 'Radiohead')]\n",
8851 "bright lights big city [] [('bright lights big city', 'The Rolling Stones')]\n",
8852 "johnny b goode [] [('johnny b goode', 'The Beatles')]\n",
8853 "give it up [] [('give it up', 'On A Friday')]\n",
8854 "crinsk dee night [] [('crinsk dee night', 'The Beatles')]\n",
8855 "hoochie coochie man [] [('hoochie coochie man', 'The Rolling Stones')]\n",
8856 "union city blue [] [('union city blue', 'Radiohead')]\n",
8857 "yesterday [('yesterday', 'The Beatles'), ('yesterday', 'The Beatles')] [('yesterday', 'Yusdrew'), ('yesterday', 'The Beatles')]\n",
8858 "had it with you [('had it with you', 'The Rolling Stones'), ('had it with you', 'The Rolling Stones')] [('had it with you', 'The Rolling Stones')]\n",
8859 "gnik nus [] [('gnik nus', 'The Beatles')]\n",
8860 "bullet proof i wish i was [('bullet proof i wish i was', 'Radiohead')] []\n",
8861 "child of nature [] [('child of nature', 'The Beatles')]\n",
8862 "dont stop [] [('dont stop', 'The Rolling Stones')]\n",
8863 "kansas city heyheyheyhey [('kansas city heyheyheyhey', 'The Beatles')] []\n",
8864 "dance [] [('dance', 'The Rolling Stones')]\n",
8865 "besame mucho [] [('besame mucho', 'The Beatles')]\n",
8866 "you got the silver [('you got the silver', 'The Rolling Stones'), ('you got the silver', 'The Rolling Stones')] [('you got the silver', 'The Rolling Stones')]\n",
8867 "march of the meanies [('march of the meanies', 'George Martin')] []\n",
8868 "stupid girl [] [('stupid girl', 'The Rolling Stones')]\n",
8869 "child of the moon [] [('child of the moon', 'The Rolling Stones')]\n",
8870 "stoned [] [('stoned', 'The Rolling Stones')]\n",
8871 "good time women [] [('good time women', 'The Rolling Stones')]\n",
8872 "you can make it if you try [] [('you can make it if you try', 'The Rolling Stones')]\n",
8873 "christmas time is here again [] [('christmas time is here again', 'The Beatles')]\n",
8874 "everyone needs someone to hate [] [('everyone needs someone to hate', 'On A Friday')]\n",
8875 "its not easy [] [('its not easy', 'The Rolling Stones')]\n",
8876 "worried about you [('worried about you', 'The Rolling Stones'), ('worried about you', 'Bob Clearmountain')] [('worried about you', 'The Rolling Stones')]\n",
8877 "i promise [] [('i promise', 'Radiohead')]\n",
8878 "charlie watts introduction of marianne faithfull [] [('charlie watts introduction of marianne faithfull', 'The Rolling Stones')]\n",
8879 "out of time [] [('out of time', 'The Rolling Stones'), ('out of time', 'The Rolling Stones')]\n",
8880 "play with fire [] [('play with fire', 'The Rolling Stones')]\n",
8881 "the storm [] [('the storm', 'The Rolling Stones')]\n",
8882 "hiheel sneakers [] [('hiheel sneakers', 'The Rolling Stones')]\n",
8883 "ill wind [] [('ill wind', 'Radiohead')]\n",
8884 "walking through the sleepy city [] [('walking through the sleepy city', 'The Rolling Stones')]\n",
8885 "maquiladora [] [('maquiladora', 'Radiohead')]\n",
8886 "when the whip comes down [('when the whip comes down', 'The Rolling Stones'), ('when the whip comes down', 'The Rolling Stones'), ('when the whip comes down', 'The Rolling Stones')] [('when the whip comes down', 'The Rolling Stones')]\n",
8887 "worrywort [] [('worrywort', 'Radiohead')]\n",
8888 "a moon shaped pool tracklist album cover [] [('a moon shaped pool tracklist album cover', 'Radiohead')]\n",
8889 "ill be on my way [] [('ill be on my way', 'The Beatles')]\n",
8890 "sure to fall in love with you [] [('sure to fall in love with you', 'The Beatles')]\n",
8891 "i wanna be your man [('i wanna be your man', 'The Beatles')] [('i wanna be your man', 'The Beatles'), ('i wanna be your man', 'The Rolling Stones')]\n",
8892 "glad all over [] [('glad all over', 'The Beatles')]\n",
8893 "goin home [] [('goin home', 'The Rolling Stones')]\n",
8894 "i am waiting [] [('i am waiting', 'The Rolling Stones')]\n",
8895 "high and dry [('high and dry', 'Radiohead')] [('high and dry', 'Radiohead'), ('high and dry', 'The Rolling Stones')]\n",
8896 "highway child [] [('highway child', 'The Rolling Stones')]\n",
8897 "sgt peppers lonely hearts club band band documentary multimedia [] [('sgt peppers lonely hearts club band band documentary multimedia', 'The Beatles')]\n",
8898 "gangsters maul [] [('gangsters maul', 'The Rolling Stones')]\n",
8899 "ooh my arms speech [] [('ooh my arms speech', 'The Beatles')]\n",
8900 "from us to you [] [('from us to you', 'The Beatles')]\n",
8901 "why [] [('why', 'The Beatles')]\n",
8902 "yellow submarine [('yellow submarine', 'The Beatles'), ('yellow submarine', 'The Beatles'), ('yellow submarine', 'The Beatles')] [('yellow submarine', 'The Beatles')]\n",
8903 "im gonna drive [] [('im gonna drive', 'The Rolling Stones')]\n",
8904 "one hit to the body [('one hit to the body', 'The Rolling Stones'), ('one hit to the body', 'The Rolling Stones')] [('one hit to the body', 'The Rolling Stones')]\n",
8905 "nobodys child [] [('nobodys child', 'The Beatles')]\n",
8906 "sweet little sixteen [] [('sweet little sixteen', 'The Beatles'), ('sweet little sixteen', 'The Rolling Stones')]\n",
8907 "you better move on [] [('you better move on', 'The Rolling Stones')]\n",
8908 "paranoid android [('paranoid android', 'Radiohead')] [('paranoid android', 'Sia'), ('paranoid android', 'Radiohead')]\n",
8909 "keep your hands off my baby [] [('keep your hands off my baby', 'The Beatles')]\n",
8910 "eleanor rigbyjulia transition [] [('eleanor rigbyjulia transition', 'The Beatles')]\n",
8911 "dear wack [] [('dear wack', 'The Beatles')]\n",
8912 "fingerprint file [] [('fingerprint file', 'The Rolling Stones')]\n",
8913 "everything in its right place live in france [('everything in its right place live in france', 'Radiohead')] []\n",
8914 "mailman bring me no more blues [] [('mailman bring me no more blues', 'The Beatles')]\n",
8915 "till the next goodbye [] [('till the next goodbye', 'The Rolling Stones')]\n",
8916 "another beatles christmas record [] [('another beatles christmas record', 'The Beatles')]\n",
8917 "harlem shuffle [('harlem shuffle', 'The Rolling Stones'), ('harlem shuffle', 'The Rolling Stones')] [('harlem shuffle', 'The Rolling Stones')]\n",
8918 "that means a lot [] [('that means a lot', 'The Beatles')]\n",
8919 "tell me baby how many times [] [('tell me baby how many times', 'The Rolling Stones')]\n",
8920 "like a rolling stone [('like a rolling stone', 'The Rolling Stones'), ('like a rolling stone', 'The Rolling Stones')] [('like a rolling stone', 'The Rolling Stones')]\n",
8921 "you know what to do [] [('you know what to do', 'The Beatles')]\n",
8922 "too rude [('too rude', 'The Rolling Stones'), ('too rude', 'The Rolling Stones')] [('too rude', 'The Rolling Stones')]\n",
8923 "drive my carthe wordwhat youre doing [] [('drive my carthe wordwhat youre doing', 'The Beatles')]\n",
8924 "everybody lies through their teeth [] [('everybody lies through their teeth', 'On A Friday')]\n",
8925 "ladytron [] [('ladytron', 'Radiohead')]\n",
8926 "open pick [] [('open pick', 'Radiohead')]\n",
8927 "i want none of this [] [('i want none of this', 'Radiohead')]\n",
8928 "whos been sleeping here [] [('whos been sleeping here', 'The Rolling Stones')]\n",
8929 "being for the benefit of mr kitei want you shes so heavyhelter skelter [] [('being for the benefit of mr kitei want you shes so heavyhelter skelter', 'The Beatles')]\n",
8930 "james bond theme [] [('james bond theme', 'The Beatles')]\n",
8931 "what to do [] [('what to do', 'The Rolling Stones')]\n",
8932 "ruby baby [] [('ruby baby', 'The Beatles')]\n",
8933 "still a fool [] [('still a fool', 'The Rolling Stones')]\n",
8934 "pedro the fisherman [] [('pedro the fisherman', 'The Beatles')]\n",
8935 "watching rainbows [] [('watching rainbows', 'The Beatles')]\n",
8936 "if you love me baby [] [('if you love me baby', 'The Beatles')]\n",
8937 "if you cant rock me [] [('if you cant rock me', 'The Rolling Stones')]\n",
8938 "bitches talkin [] [('bitches talkin', 'Frank Ocean')]\n",
8939 "fog [] [('fog', 'Radiohead')]\n",
8940 "strawberry fields forever take 7 edit piece [] [('strawberry fields forever take 7 edit piece', 'The Beatles')]\n",
8941 "fanny mae [] [('fanny mae', 'The Rolling Stones')]\n",
8942 "band introductions [('band introductions', 'The Rolling Stones')] []\n",
8943 "nothing touches me [] [('nothing touches me', 'Radiohead')]\n",
8944 "the national anthem live in france [('the national anthem live in france', 'Radiohead')] []\n",
8945 "bloom harmonic 313 rmx [('bloom harmonic 313 rmx', 'Radiohead')] []\n",
8946 "hey negrita [] [('hey negrita', 'The Rolling Stones')]\n",
8947 "give up the ghost thriller houseghost remix [('give up the ghost thriller houseghost remix', 'Radiohead')] []\n",
8948 "if you need me [] [('if you need me', 'The Rolling Stones')]\n"
8949 ]
8950 },
8951 {
8952 "name": "stdout",
8953 "output_type": "stream",
8954 "text": [
8955 "the daily mail [] [('the daily mail', 'Radiohead')]\n",
8956 "try a little harder [] [('try a little harder', 'The Rolling Stones')]\n",
8957 "bishops robes [] [('bishops robes', 'Radiohead')]\n",
8958 "casino boogie [] [('casino boogie', 'The Rolling Stones')]\n",
8959 "fool to cry [] [('fool to cry', 'The Rolling Stones')]\n",
8960 "outro [('outro', 'Jimi Hendrix')] []\n",
8961 "i will [('i will', 'The Beatles'), ('i will', 'Radiohead')] [('i will', 'Radiohead'), ('i will', 'The Beatles')]\n",
8962 "the fool on the hill demo [] [('the fool on the hill demo', 'The Beatles')]\n",
8963 "yes it is [] [('yes it is', 'The Beatles')]\n",
8964 "the butcher [] [('the butcher', 'Radiohead')]\n",
8965 "blood red wine [] [('blood red wine', 'The Rolling Stones')]\n",
8966 "youll be mine [] [('youll be mine', 'The Beatles')]\n",
8967 "luxury [] [('luxury', 'The Rolling Stones')]\n",
8968 "tell me youre coming back [] [('tell me youre coming back', 'The Rolling Stones')]\n",
8969 "paint it black [('paint it black', 'The Rolling Stones'), ('paint it black', 'The Rolling Stones'), ('paint it black', 'The Rolling Stones'), ('paint it black', 'The Rolling Stones')] [('paint it black', 'The Rolling Stones')]\n",
8970 "start me up [('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones')] [('start me up', 'The Rolling Stones')]\n",
8971 "dead flowers [('dead flowers', 'The Rolling Stones'), ('dead flowers', 'The Rolling Stones')] [('dead flowers', 'The Rolling Stones')]\n",
8972 "stuck out all alone [] [('stuck out all alone', 'The Rolling Stones')]\n",
8973 "love me do [('love me do', 'The Beatles'), ('love me do', 'The Beatles')] [('love me do', 'The Beatles'), ('love me do', 'The Beatles')]\n",
8974 "can i get a witness [] [('can i get a witness', 'The Rolling Stones')]\n",
8975 "have you seen your mother baby standing in the shadow [] [('have you seen your mother baby standing in the shadow', 'The Rolling Stones')]\n",
8976 "cherry oh baby [] [('cherry oh baby', 'The Rolling Stones')]\n",
8977 "hear me lord harrison [] [('hear me lord harrison', 'The Beatles')]\n",
8978 "crushed pearl [] [('crushed pearl', 'The Rolling Stones')]\n",
8979 "criss cross man [] [('criss cross man', 'The Rolling Stones')]\n",
8980 "citadel [] [('citadel', 'The Rolling Stones')]\n",
8981 "shattered [('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones')] [('shattered', 'The Rolling Stones')]\n",
8982 "wake up in the morning [] [('wake up in the morning', 'The Rolling Stones')]\n",
8983 "lets dance [] [('lets dance', 'The Beatles')]\n",
8984 "surprise surprise [] [('surprise surprise', 'The Rolling Stones')]\n",
8985 "have a banana speech [] [('have a banana speech', 'The Beatles')]\n",
8986 "ticket to ride [('ticket to ride', 'The Beatles'), ('ticket to ride', 'The Beatles'), ('ticket to ride', 'The Beatles')] [('ticket to ride', 'The Beatles')]\n",
8987 "all my loving [('all my loving', 'The Beatles'), ('all my loving', 'The Beatles')] [('all my loving', 'The Beatles')]\n",
8988 "goodbye girl [] [('goodbye girl', 'The Rolling Stones')]\n",
8989 "turd on the run [] [('turd on the run', 'The Rolling Stones')]\n",
8990 "codex illum sphere [('codex illum sphere', 'Radiohead')] []\n",
8991 "the amazing sounds of orgy [] [('the amazing sounds of orgy', 'Radiohead')]\n",
8992 "a shot of rhythm and blues [] [('a shot of rhythm and blues', 'The Beatles')]\n",
8993 "blue turns to grey [] [('blue turns to grey', 'The Rolling Stones')]\n",
8994 "faraway eyes [('faraway eyes', 'The Rolling Stones'), ('faraway eyes', 'The Rolling Stones')] []\n",
8995 "dandelion [] [('dandelion', 'The Rolling Stones')]\n",
8996 "down in the bottom [] [('down in the bottom', 'The Rolling Stones')]\n",
8997 "transatlantic drawl [] [('transatlantic drawl', 'Radiohead')]\n",
8998 "dollars cents [('dollars cents', 'Radiohead')] []\n",
8999 "i got to find my baby [] [('i got to find my baby', 'The Beatles')]\n",
9000 "mantua [] [('mantua', 'Radiohead')]\n",
9001 "being for the benefit of mr kite take 7 [] [('being for the benefit of mr kite take 7', 'The Beatles')]\n",
9002 "get back [('get back', 'Billy Preston'), ('get back', 'The Beatles')] [('get back', 'The Beatles')]\n",
9003 "all things must pass [] [('all things must pass', 'The Beatles')]\n",
9004 "time is on my side [('time is on my side', 'The Rolling Stones'), ('time is on my side', 'The Rolling Stones')] [('time is on my side', 'The Rolling Stones')]\n",
9005 "slow down [] [('slow down', 'The Beatles')]\n",
9006 "crackin up [] [('crackin up', 'The Rolling Stones')]\n",
9007 "i just want to see his face [] [('i just want to see his face', 'The Rolling Stones')]\n",
9008 "down home girl [] [('down home girl', 'The Rolling Stones')]\n",
9009 "dont ever change [] [('dont ever change', 'The Beatles')]\n",
9010 "all together on the wireless machine [] [('all together on the wireless machine', 'The Beatles')]\n",
9011 "lift [] [('lift', 'Radiohead')]\n",
9012 "glass onion love remix [] [('glass onion love remix', 'The Beatles')]\n",
9013 "martin scorsese intro [('martin scorsese intro', 'The Rolling Stones')] []\n",
9014 "good times bad times [] [('good times bad times', 'The Rolling Stones')]\n",
9015 "you cant always get what you want [('you cant always get what you want', 'The Rolling Stones'), ('you cant always get what you want', 'The Rolling Stones'), ('you cant always get what you want', 'The Rolling Stones')] [('you cant always get what you want', 'The Rolling Stones')]\n",
9016 "2 2 5 live at earls court [('2 2 5 live at earls court', 'Radiohead')] []\n",
9017 "separator four tet rmx [('separator four tet rmx', 'Radiohead')] []\n",
9018 "all down the line [('all down the line', 'The Rolling Stones'), ('all down the line', 'The Rolling Stones')] [('all down the line', 'The Rolling Stones')]\n",
9019 "baby whats wrong [] [('baby whats wrong', 'The Rolling Stones')]\n",
9020 "beautiful dreamer [] [('beautiful dreamer', 'The Beatles')]\n",
9021 "reelin and rockin [] [('reelin and rockin', 'The Rolling Stones')]\n",
9022 "looking tired [] [('looking tired', 'The Rolling Stones')]\n",
9023 "matchbox [] [('matchbox', 'The Beatles')]\n",
9024 "september in the rain [] [('september in the rain', 'The Beatles')]\n",
9025 "hound dog [] [('hound dog', 'The Rolling Stones')]\n",
9026 "street fighting man [('street fighting man', 'The Rolling Stones'), ('street fighting man', 'The Rolling Stones'), ('street fighting man', 'The Rolling Stones')] [('street fighting man', 'The Rolling Stones')]\n",
9027 "downtown suzie [] [('downtown suzie', 'The Rolling Stones')]\n",
9028 "lend me your comb [] [('lend me your comb', 'The Beatles')]\n",
9029 "my bonnie english intro [] [('my bonnie english intro', 'The Beatles')]\n",
9030 "sing a song for you [] [('sing a song for you', 'Radiohead')]\n",
9031 "staircase [] [('staircase', 'Radiohead')]\n",
9032 "across the universe wildlife version [] [('across the universe wildlife version', 'The Beatles')]\n",
9033 "little ta [('little ta', 'The Rolling Stones'), ('little ta', 'The Rolling Stones')] []\n",
9034 "in another land [] [('in another land', 'The Rolling Stones')]\n",
9035 "the beatles 1968 christmas record [] [('the beatles 1968 christmas record', 'The Beatles')]\n",
9036 "lady jane [] [('lady jane', 'The Rolling Stones')]\n",
9037 "stray cat blues [] [('stray cat blues', 'The Rolling Stones')]\n",
9038 "bad to me [] [('bad to me', 'The Beatles')]\n",
9039 "soul survivor [] [('soul survivor', 'The Rolling Stones')]\n",
9040 "keith richards introduction of the who [] [('keith richards introduction of the who', 'The Rolling Stones')]\n",
9041 "bloom blawan rmx [('bloom blawan rmx', 'Radiohead')] []\n",
9042 "love [] [('love', 'The Beatles')]\n",
9043 "dont let me down [] [('dont let me down', 'The Beatles')]\n",
9044 "melatonin [] [('melatonin', 'Radiohead')]\n",
9045 "the harder they come [] [('the harder they come', 'The Rolling Stones')]\n",
9046 "someone else [] [('someone else', 'On A Friday')]\n",
9047 "pearly [] [('pearly', 'Radiohead')]\n",
9048 "no expectations [] [('no expectations', 'The Rolling Stones')]\n",
9049 "dont look back [] [('dont look back', 'The Rolling Stones')]\n",
9050 "lull [] [('lull', 'Radiohead')]\n",
9051 "million dollar question [] [('million dollar question', 'Radiohead')]\n",
9052 "gomper [] [('gomper', 'The Rolling Stones')]\n",
9053 "a picture of you [] [('a picture of you', 'The Beatles')]\n",
9054 "sympathy for the devil fatboy slim remix [] [('sympathy for the devil fatboy slim remix', 'The Rolling Stones')]\n",
9055 "revolution [] [('revolution', 'The Beatles')]\n",
9056 "what a shame [] [('what a shame', 'The Rolling Stones')]\n",
9057 "coming down again [] [('coming down again', 'The Rolling Stones')]\n",
9058 "fasttrack [] [('fasttrack', 'Radiohead')]\n",
9059 "cuttooth [] [('cuttooth', 'Radiohead')]\n",
9060 "morning bell live in oxford [('morning bell live in oxford', 'Radiohead')] []\n",
9061 "heavys pizza [] [('heavys pizza', 'Dallas Smart')]\n",
9062 "i forgot to remember to forget [] [('i forgot to remember to forget', 'The Beatles')]\n",
9063 "set fire to that lot [] [('set fire to that lot', 'The Beatles')]\n"
9064 ]
9065 },
9066 {
9067 "name": "stdout",
9068 "output_type": "stream",
9069 "text": [
9070 "good times [] [('good times', 'The Rolling Stones')]\n",
9071 "meeting in the aisle [] [('meeting in the aisle', 'Radiohead')]\n",
9072 "lozenge of love [] [('lozenge of love', 'Radiohead')]\n",
9073 "hitch hike [] [('hitch hike', 'The Rolling Stones')]\n",
9074 "to be a brilliant light [] [('to be a brilliant light', 'On A Friday')]\n",
9075 "separator anstam rmx [('separator anstam rmx', 'Radiohead')] []\n",
9076 "doo doo doo doo doo heartbreaker [] [('doo doo doo doo doo heartbreaker', 'The Rolling Stones')]\n",
9077 "beast of burden [('beast of burden', 'The Rolling Stones'), ('beast of burden', 'The Rolling Stones'), ('beast of burden', 'The Rolling Stones')] [('beast of burden', 'The Rolling Stones')]\n",
9078 "medley kansas cityhey hey hey hey [] [('medley kansas cityhey hey hey hey', 'The Beatles')]\n",
9079 "bloom objekt rmx [('bloom objekt rmx', 'Radiohead')] []\n",
9080 "intro take the a train [('intro take the a train', 'Duke Ellington')] []\n",
9081 "money thats what i want [('money thats what i want', 'The Beatles')] [('money thats what i want', 'The Beatles'), ('money thats what i want', 'The Beatles')]\n",
9082 "how do you do it [] [('how do you do it', 'The Beatles')]\n",
9083 "soldier of love [] [('soldier of love', 'The Beatles')]\n",
9084 "wish i never met you [] [('wish i never met you', 'The Rolling Stones')]\n",
9085 "remyxomatosis cristian vogel rmx [('remyxomatosis cristian vogel rmx', 'Radiohead')] []\n",
9086 "bebopalula [] [('bebopalula', 'The Beatles')]\n",
9087 "before they make me run [('before they make me run', 'The Rolling Stones'), ('before they make me run', 'The Rolling Stones'), ('before they make me run', 'The Rolling Stones')] [('before they make me run', 'The Rolling Stones')]\n",
9088 "twist and shout [('twist and shout', 'The Beatles'), ('twist and shout', 'The Beatles')] [('twist and shout', 'The Beatles'), ('twist and shout', 'The Beatles'), ('twist and shout', 'The Beatles')]\n",
9089 "jazz piano song [] [('jazz piano song', 'The Beatles')]\n",
9090 "spectre [] [('spectre', 'Radiohead')]\n",
9091 "within you without youtomorrow never knows [] [('within you without youtomorrow never knows', 'The Beatles')]\n",
9092 "im free [('im free', 'The Rolling Stones'), ('im free', 'The Rolling Stones')] [('im free', 'The Rolling Stones')]\n",
9093 "things we said today [('things we said today', 'The Beatles'), ('things we said today', 'The Beatles')] [('things we said today', 'The Beatles')]\n",
9094 "nobody does it better [] [('nobody does it better', 'Radiohead')]\n",
9095 "country honk [] [('country honk', 'The Rolling Stones')]\n",
9096 "suzy parker [] [('suzy parker', 'The Beatles')]\n",
9097 "hide your love [] [('hide your love', 'The Rolling Stones')]\n",
9098 "charlies intro to little red rooster [('charlies intro to little red rooster', 'The Rolling Stones')] []\n",
9099 "honky tonk women [('honky tonk women', 'The Rolling Stones'), ('honky tonk women', 'Sheryl Crow'), ('honky tonk women', 'The Rolling Stones')] [('honky tonk women', 'The Rolling Stones')]\n",
9100 "here comes the sunthe inner light transition [] [('here comes the sunthe inner light transition', 'The Beatles')]\n",
9101 "dear doctor [] [('dear doctor', 'The Rolling Stones')]\n",
9102 "little t a [] [('little t a', 'The Rolling Stones')]\n",
9103 "title 5 [] [('title 5', 'The Rolling Stones')]\n",
9104 "saints when the saints go marching in [] [('saints when the saints go marching in', 'The Beatles')]\n",
9105 "happy song [] [('happy song', 'On A Friday')]\n",
9106 "neighbours [('neighbours', 'The Rolling Stones'), ('neighbours', 'Bob Clearmountain')] [('neighbours', 'The Rolling Stones')]\n",
9107 "wonderwall [] [('wonderwall', 'Radiohead')]\n",
9108 "i got the blues [] [('i got the blues', 'The Rolling Stones')]\n",
9109 "the new generation [] [('the new generation', 'Radiohead')]\n",
9110 "sleep tonight [('sleep tonight', 'The Rolling Stones'), ('sleep tonight', 'The Rolling Stones')] [('sleep tonight', 'The Rolling Stones')]\n",
9111 "like spinning plates live [('like spinning plates live', 'Radiohead')] []\n",
9112 "what is it that you say [] [('what is it that you say', 'On A Friday')]\n",
9113 "teddy boy [] [('teddy boy', 'The Beatles')]\n",
9114 "the beatles seventh christmas record [] [('the beatles seventh christmas record', 'The Beatles')]\n",
9115 "harry patch in memory of [] [('harry patch in memory of', 'Radiohead')]\n",
9116 "through the lonely nights [] [('through the lonely nights', 'The Rolling Stones')]\n",
9117 "pepperland laid waste [('pepperland laid waste', 'George Martin')] []\n",
9118 "cant buy me love [('cant buy me love', 'The Beatles'), ('cant buy me love', 'The Beatles'), ('cant buy me love', 'The Beatles')] [('cant buy me love', 'The Beatles')]\n",
9119 "look what youve done [] [('look what youve done', 'The Rolling Stones')]\n",
9120 "can you take me back [] [('can you take me back', 'The Beatles')]\n",
9121 "dirty work [('dirty work', 'The Rolling Stones'), ('dirty work', 'The Rolling Stones')] [('dirty work', 'The Rolling Stones')]\n",
9122 "heart of stone [] [('heart of stone', 'The Rolling Stones')]\n",
9123 "moonlight [] [('moonlight', 'The Beatles')]\n",
9124 "in spite of all the danger [] [('in spite of all the danger', 'The Beatles')]\n",
9125 "im down [] [('im down', 'The Beatles')]\n",
9126 "walking the dog [] [('walking the dog', 'The Rolling Stones')]\n",
9127 "the long and winding road [('the long and winding road', 'The Beatles'), ('the long and winding road', 'The Beatles')] [('the long and winding road', 'The Beatles')]\n",
9128 "mick jaggers and john lennons introduction of the dirty mac [] [('mick jaggers and john lennons introduction of the dirty mac', 'The Rolling Stones')]\n",
9129 "get off of my cloud [] [('get off of my cloud', 'The Rolling Stones')]\n",
9130 "coke babies [] [('coke babies', 'Radiohead')]\n",
9131 "ps i love you [('ps i love you', 'The Beatles')] [('ps i love you', 'The Beatles'), ('ps i love you', 'The Beatles')]\n",
9132 "stupid car [] [('stupid car', 'Radiohead')]\n",
9133 "nothin shakin but the leaves on the trees [] [('nothin shakin but the leaves on the trees', 'The Beatles')]\n",
9134 "strawberry fields forever take 1 [] [('strawberry fields forever take 1', 'The Beatles')]\n",
9135 "far away eyes [('far away eyes', 'The Rolling Stones'), ('far away eyes', 'The Rolling Stones')] [('far away eyes', 'The Rolling Stones')]\n",
9136 "were wastin time [] [('were wastin time', 'The Rolling Stones')]\n",
9137 "i go wild [('i go wild', 'The Rolling Stones'), ('i go wild', 'The Rolling Stones')] [('i go wild', 'The Rolling Stones')]\n",
9138 "have a banana [] [('have a banana', 'The Beatles')]\n",
9139 "sea of time [('sea of time', 'George Martin')] []\n",
9140 "continental drift [('continental drift', 'The Rolling Stones'), ('continental drift', 'The Rolling Stones')] [('continental drift', 'The Rolling Stones')]\n",
9141 "its all over now [] [('its all over now', 'The Rolling Stones')]\n",
9142 "come together [('come together', 'The Beatles'), ('come together', 'The Beatles')] [('come together', 'The Beatles')]\n",
9143 "sway [] [('sway', 'The Rolling Stones')]\n",
9144 "somewhere [] [('somewhere', 'Ali brustofski')]\n",
9145 "penny lane [('penny lane', 'The Beatles'), ('penny lane', 'The Beatles')] [('penny lane', 'The Beatles')]\n",
9146 "beatles movie medley [] [('beatles movie medley', 'The Beatles')]\n",
9147 "the thief [] [('the thief', 'Radiohead')]\n",
9148 "mercy mercy [] [('mercy mercy', 'The Rolling Stones')]\n",
9149 "egyptian song [] [('egyptian song', 'Radiohead')]\n",
9150 "love of the loved [] [('love of the loved', 'The Beatles')]\n",
9151 "i just dont understand [] [('i just dont understand', 'The Beatles')]\n",
9152 "from fluff to you [] [('from fluff to you', 'The Beatles')]\n",
9153 "youve got to hide your love away [('youve got to hide your love away', 'The Beatles')] [('youve got to hide your love away', 'The Beatles'), ('youve got to hide your love away', 'The Beatles')]\n",
9154 "jumpin jack flash [('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones')] [('jumpin jack flash', 'The Rolling Stones')]\n",
9155 "gotta get away [] [('gotta get away', 'The Rolling Stones')]\n",
9156 "give peace a chance [] [('give peace a chance', 'The Beatles')]\n",
9157 "let it rock [] [('let it rock', 'The Rolling Stones')]\n",
9158 "i cant get no satisfaction [('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones')] [('i cant get no satisfaction', 'The Rolling Stones')]\n",
9159 "falling in love again [] [('falling in love again', 'The Beatles')]\n",
9160 "let me go [('let me go', 'The Rolling Stones'), ('let me go', 'The Rolling Stones')] [('let me go', 'The Rolling Stones')]\n",
9161 "corinna [] [('corinna', 'The Rolling Stones')]\n",
9162 "dollars and cents [] [('dollars and cents', 'Radiohead')]\n",
9163 "lucille [] [('lucille', 'The Beatles')]\n",
9164 "jumping jack flash [('jumping jack flash', 'The Rolling Stones')] []\n",
9165 "you know my name look up the number [] [('you know my name look up the number', 'The Beatles')]\n",
9166 "the trickster [] [('the trickster', 'Radiohead')]\n",
9167 "she loves you [('she loves you', 'The Beatles'), ('she loves you', 'The Beatles')] [('she loves you', 'The Beatles'), ('she loves you', 'The Beatles')]\n",
9168 "shes a rainbow [] [('shes a rainbow', 'The Rolling Stones')]\n",
9169 "jiving sister fanny [] [('jiving sister fanny', 'The Rolling Stones')]\n",
9170 "im gonna sit right down and cry over you [] [('im gonna sit right down and cry over you', 'The Beatles')]\n",
9171 "paint it blacker [] [('paint it blacker', 'Plan B')]\n",
9172 "when the saints go marchin in [] [('when the saints go marchin in', 'The Beatles')]\n",
9173 "how can you be sure [] [('how can you be sure', 'Radiohead')]\n",
9174 "if you really want to be my friend [] [('if you really want to be my friend', 'The Rolling Stones')]\n",
9175 "sgt peppers lonely hearts club band reprise [] [('sgt peppers lonely hearts club band reprise', 'The Beatles')]\n",
9176 "dollars cents live [('dollars cents live', 'Radiohead')] []\n",
9177 "get back aka no pakistanis [] [('get back aka no pakistanis', 'The Beatles')]\n",
9178 "give up the ghost brokenchord rmx [('give up the ghost brokenchord rmx', 'Radiohead')] []\n",
9179 "each and every day of the year [] [('each and every day of the year', 'The Rolling Stones')]\n",
9180 "19th nervous breakdown [] [('19th nervous breakdown', 'The Rolling Stones')]\n",
9181 "true love waits live in oslo [('true love waits live in oslo', 'Radiohead')] []\n",
9182 "pay your dues [] [('pay your dues', 'The Rolling Stones')]\n",
9183 "you never wash up after yourself [] [('you never wash up after yourself', 'Radiohead')]\n",
9184 "all sold out [] [('all sold out', 'The Rolling Stones')]\n",
9185 "polyethylene parts 1 2 [] [('polyethylene parts 1 2', 'Radiohead')]\n",
9186 "love these goon shows [] [('love these goon shows', 'The Beatles')]\n",
9187 "around and around [] [('around and around', 'The Rolling Stones')]\n",
9188 "palo alto [] [('palo alto', 'Radiohead')]\n",
9189 "untogether [] [('untogether', 'Radiohead')]\n",
9190 "doom and gloom [] [('doom and gloom', 'The Rolling Stones')]\n",
9191 "the beatles third christmas record [] [('the beatles third christmas record', 'The Beatles')]\n",
9192 "she smiled sweetly [] [('she smiled sweetly', 'The Rolling Stones')]\n",
9193 "little queenie [] [('little queenie', 'The Rolling Stones')]\n",
9194 "because i know you love me so [] [('because i know you love me so', 'The Beatles')]\n",
9195 "we want the stones [] [('we want the stones', 'The Rolling Stones')]\n"
9196 ]
9197 },
9198 {
9199 "name": "stdout",
9200 "output_type": "stream",
9201 "text": [
9202 "sea of monsters [('sea of monsters', 'George Martin')] []\n",
9203 "3 [] [('3', 'The Rolling Stones')]\n",
9204 "linda lu [] [('linda lu', 'The Rolling Stones')]\n",
9205 "please go home [] [('please go home', 'The Rolling Stones')]\n",
9206 "tell me why ep [] [('tell me why ep', 'The Beatles')]\n",
9207 "fight [('fight', 'The Rolling Stones'), ('fight', 'The Rolling Stones')] [('fight', 'The Rolling Stones')]\n",
9208 "goodbye [] [('goodbye', 'The Beatles')]\n",
9209 "mr b [] [('mr b', 'Radiohead')]\n",
9210 "jerusalem [] [('jerusalem', 'On A Friday')]\n",
9211 "bye bye johnny [] [('bye bye johnny', 'The Rolling Stones')]\n",
9212 "india [] [('india', 'The Beatles')]\n",
9213 "eds scary song [] [('eds scary song', 'Radiohead')]\n",
9214 "beautiful delilah [] [('beautiful delilah', 'The Rolling Stones')]\n",
9215 "upside down [] [('upside down', 'Radiohead')]\n",
9216 "hello little girl [] [('hello little girl', 'The Beatles')]\n",
9217 "meet me in the bottom [] [('meet me in the bottom', 'The Rolling Stones')]\n",
9218 "feral lone rmx [('feral lone rmx', 'Radiohead')] []\n",
9219 "aint she sweet [] [('aint she sweet', 'The Beatles')]\n",
9220 "harlem shuffle ny mix [] [('harlem shuffle ny mix', 'The Rolling Stones')]\n",
9221 "blue suede shoes [] [('blue suede shoes', 'The Beatles')]\n",
9222 "road runner [] [('road runner', 'The Rolling Stones')]\n",
9223 "leave my kitten alone [] [('leave my kitten alone', 'The Beatles')]\n",
9224 "pantomime everywhere its christmas [] [('pantomime everywhere its christmas', 'The Beatles')]\n",
9225 "keys to your love [] [('keys to your love', 'The Rolling Stones')]\n",
9226 "lotus flower sbtrkt rmx [('lotus flower sbtrkt rmx', 'Radiohead')] []\n",
9227 "little red rooster [('little red rooster', 'The Rolling Stones'), ('little red rooster', 'The Rolling Stones')] [('little red rooster', 'The Rolling Stones')]\n",
9228 "complicated [] [('complicated', 'The Rolling Stones')]\n",
9229 "im not signifying [] [('im not signifying', 'The Rolling Stones')]\n",
9230 "sea of holes [('sea of holes', 'George Martin')] []\n",
9231 "ooh my arms [] [('ooh my arms', 'The Beatles')]\n",
9232 "cry to me [] [('cry to me', 'The Rolling Stones')]\n",
9233 "prodigal son [] [('prodigal son', 'The Rolling Stones')]\n",
9234 "everybody needs somebody to love finale [('everybody needs somebody to love finale', 'The Rolling Stones')] []\n",
9235 "stand by me [] [('stand by me', 'The Beatles')]\n",
9236 "please please me [('please please me', 'The Beatles')] [('please please me', 'The Beatles'), ('please please me', 'The Rolling Stones')]\n",
9237 "big ideas [] [('big ideas', 'Radiohead')]\n",
9238 "sympathy for the devil [('sympathy for the devil', 'The Rolling Stones'), ('sympathy for the devil', 'The Rolling Stones'), ('sympathy for the devil', 'The Rolling Stones')] [('sympathy for the devil', 'The Rolling Stones')]\n",
9239 "pepperland [('pepperland', 'George Martin')] []\n",
9240 "crying waiting hoping [] [('crying waiting hoping', 'The Beatles')]\n",
9241 "punchdrunk lovesick singalong [] [('punchdrunk lovesick singalong', 'Radiohead')]\n",
9242 "i dont know why aka dont know why i love you [] [('i dont know why aka dont know why i love you', 'The Rolling Stones')]\n",
9243 "when im sixtyfour [] [('when im sixtyfour', 'The Beatles')]\n",
9244 "a reminder [] [('a reminder', 'Radiohead')]\n",
9245 "come togetherdear prudence [] [('come togetherdear prudence', 'The Beatles')]\n",
9246 "four guys [] [('four guys', 'James Richards')]\n",
9247 "cops and robbers [] [('cops and robbers', 'The Rolling Stones')]\n",
9248 "you cant do that [('you cant do that', 'The Beatles'), ('you cant do that', 'The Beatles')] [('you cant do that', 'The Beatles')]\n",
9249 "blue moon of kentucky [] [('blue moon of kentucky', 'The Beatles')]\n",
9250 "andrews blues [] [('andrews blues', 'The Rolling Stones')]\n",
9251 "bloom jamie xx rework [('bloom jamie xx rework', 'Radiohead')] []\n",
9252 "how i made my millions [] [('how i made my millions', 'Radiohead')]\n",
9253 "john lennon vs bill oreilly [] [('john lennon vs bill oreilly', 'Nice Peter')]\n",
9254 "petrol gang [] [('petrol gang', 'The Rolling Stones')]\n",
9255 "swanee river [] [('swanee river', 'The Beatles')]\n",
9256 "cant get next to you [] [('cant get next to you', 'The Rolling Stones')]\n",
9257 "empty heart [] [('empty heart', 'The Rolling Stones')]\n",
9258 "let it loose [] [('let it loose', 'The Rolling Stones')]\n",
9259 "susie q [] [('susie q', 'The Rolling Stones')]\n",
9260 "so how come no one loves me [] [('so how come no one loves me', 'The Beatles')]\n",
9261 "no reply demo [] [('no reply demo', 'The Beatles')]\n",
9262 "babys in black [('babys in black', 'The Beatles'), ('babys in black', 'The Beatles')] [('babys in black', 'The Beatles')]\n",
9263 "if youve got trouble [] [('if youve got trouble', 'The Beatles')]\n",
9264 "anyway you look at it [] [('anyway you look at it', 'The Rolling Stones')]\n",
9265 "thank you girl [] [('thank you girl', 'The Beatles')]\n",
9266 "ladies and gentlemen the rolling stones [] [('ladies and gentlemen the rolling stones', 'The Rolling Stones')]\n",
9267 "you cant catch me [] [('you cant catch me', 'The Rolling Stones')]\n",
9268 "slipping away [('slipping away', 'The Rolling Stones'), ('slipping away', 'The Rolling Stones')] [('slipping away', 'The Rolling Stones')]\n",
9269 "morning mr magpie pearson sound scavenger rmx [('morning mr magpie pearson sound scavenger rmx', 'Radiohead')] []\n",
9270 "jigsaw puzzle [] [('jigsaw puzzle', 'The Rolling Stones')]\n",
9271 "congratulations [] [('congratulations', 'The Rolling Stones')]\n",
9272 "i want to hold your hand [('i want to hold your hand', 'The Beatles'), ('i want to hold your hand', 'The Beatles')] [('i want to hold your hand', 'The Beatles'), ('i want to hold your hand', 'Ali brustofski')]\n",
9273 "winter [] [('winter', 'The Rolling Stones')]\n",
9274 "whatd i say [] [('whatd i say', 'The Beatles')]\n",
9275 "bitch [] [('bitch', 'The Rolling Stones')]\n",
9276 "she said yeah [] [('she said yeah', 'The Rolling Stones')]\n",
9277 "komm gib mir deine hand [] [('komm gib mir deine hand', 'The Beatles')]\n",
9278 "i need you baby mona [] [('i need you baby mona', 'The Rolling Stones')]\n",
9279 "the fool on the hill take 4 [] [('the fool on the hill take 4', 'The Beatles')]\n",
9280 "memphis [] [('memphis', 'The Beatles')]\n",
9281 "searchin [] [('searchin', 'The Beatles')]\n",
9282 "thats alright mama [] [('thats alright mama', 'The Beatles')]\n",
9283 "confessin the blues [] [('confessin the blues', 'The Rolling Stones')]\n",
9284 "shine a light [('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones')] [('shine a light', 'The Rolling Stones')]\n",
9285 "the lantern [] [('the lantern', 'The Rolling Stones')]\n",
9286 "follow me around [] [('follow me around', 'Radiohead')]\n",
9287 "dream baby [] [('dream baby', 'The Beatles')]\n",
9288 "talk show host [] [('talk show host', 'Radiohead')]\n",
9289 "it hurts me too [] [('it hurts me too', 'The Rolling Stones')]\n",
9290 "come and get it [] [('come and get it', 'The Beatles')]\n",
9291 "shake rattle and roll [] [('shake rattle and roll', 'The Beatles')]\n",
9292 "its only rock n roll but i like it [('its only rock n roll but i like it', 'The Rolling Stones'), ('its only rock n roll but i like it', 'The Rolling Stones')] [('its only rock n roll but i like it', 'The Rolling Stones')]\n",
9293 "ive been loving you too long [] [('ive been loving you too long', 'The Rolling Stones')]\n",
9294 "ventilator blues [] [('ventilator blues', 'The Rolling Stones')]\n",
9295 "this boy [] [('this boy', 'The Beatles')]\n",
9296 "out of control [('out of control', 'The Rolling Stones'), ('out of control', 'The Rolling Stones')] [('out of control', 'The Rolling Stones')]\n",
9297 "when im sixty four [('when im sixty four', 'The Beatles')] []\n",
9298 "respectable [('respectable', 'The Rolling Stones'), ('respectable', 'The Rolling Stones')] [('respectable', 'The Rolling Stones')]\n",
9299 "winning ugly [('winning ugly', 'The Rolling Stones'), ('winning ugly', 'The Rolling Stones')] [('winning ugly', 'The Rolling Stones')]\n",
9300 "the sheik of araby [] [('the sheik of araby', 'The Beatles')]\n",
9301 "poison ivy [] [('poison ivy', 'The Rolling Stones')]\n",
9302 "i just want to make love to you [] [('i just want to make love to you', 'The Rolling Stones')]\n",
9303 "kansas city [] [('kansas city', 'The Beatles')]\n",
9304 "honest i do [] [('honest i do', 'The Rolling Stones')]\n",
9305 "everything is turning to gold [] [('everything is turning to gold', 'The Rolling Stones')]\n",
9306 "jump on top of me [] [('jump on top of me', 'The Rolling Stones')]\n",
9307 "set fire to that lot speech [] [('set fire to that lot speech', 'The Beatles')]\n",
9308 "ride on baby [] [('ride on baby', 'The Rolling Stones')]\n",
9309 "2120 south michigan avenue [] [('2120 south michigan avenue', 'The Rolling Stones')]\n",
9310 "i want to know [] [('i want to know', 'On A Friday')]\n",
9311 "lonesome tears in my eyes [] [('lonesome tears in my eyes', 'The Beatles')]\n",
9312 "cook cook blues [] [('cook cook blues', 'The Rolling Stones')]\n",
9313 "money [] [('money', 'The Rolling Stones')]\n",
9314 "stranger in my arms [] [('stranger in my arms', 'The Beatles')]\n",
9315 "climbing up a bloody great hill [] [('climbing up a bloody great hill', 'Radiohead')]\n",
9316 "sleepy city [] [('sleepy city', 'The Rolling Stones')]\n",
9317 "lotus flower jacques greene rmx [('lotus flower jacques greene rmx', 'Radiohead')] []\n",
9318 "salt of the earth [] [('salt of the earth', 'The Rolling Stones')]\n",
9319 "cool calm and collected [] [('cool calm and collected', 'The Rolling Stones')]\n",
9320 "hello goodbye [('hello goodbye', 'The Beatles'), ('hello goodbye', 'The Beatles')] [('hello goodbye', 'The Beatles')]\n",
9321 "miss you dr dre remix 2002 [] [('miss you dr dre remix 2002', 'The Rolling Stones')]\n",
9322 "tumbling dice [('tumbling dice', 'The Rolling Stones'), ('tumbling dice', 'The Rolling Stones')] [('tumbling dice', 'The Rolling Stones')]\n",
9323 "just my imagination [('just my imagination', 'The Rolling Stones')] []\n",
9324 "everybody needs somebody to love [('everybody needs somebody to love', 'Solomon Burke'), ('everybody needs somebody to love', 'The Rolling Stones')] [('everybody needs somebody to love', 'The Rolling Stones')]\n",
9325 "stop breaking down [] [('stop breaking down', 'The Rolling Stones')]\n",
9326 "riding on a bus [] [('riding on a bus', 'The Beatles')]\n",
9327 "take good care of my baby [] [('take good care of my baby', 'The Beatles')]\n",
9328 "id much rather be with the boys [] [('id much rather be with the boys', 'The Rolling Stones')]\n",
9329 "its for you [] [('its for you', 'The Beatles')]\n",
9330 "wish you were here [] [('wish you were here', 'Radiohead')]\n",
9331 "little by little shed [('little by little shed', 'Radiohead')] []\n",
9332 "my girl [] [('my girl', 'The Rolling Stones')]\n",
9333 "memphis tennessee [] [('memphis tennessee', 'The Beatles'), ('memphis tennessee', 'The Rolling Stones')]\n",
9334 "moonlight mile [] [('moonlight mile', 'The Rolling Stones')]\n",
9335 "phillipa chicken [] [('phillipa chicken', 'Radiohead')]\n",
9336 "down in eastern australia [] [('down in eastern australia', 'The Beatles')]\n",
9337 "aint that loving you baby [] [('aint that loving you baby', 'The Rolling Stones')]\n",
9338 "final show [] [('final show', 'Beatles Candlestick Park Setlist')]\n",
9339 "words of love ep [] [('words of love ep', 'The Beatles')]\n",
9340 "sing this all together [] [('sing this all together', 'The Rolling Stones')]\n",
9341 "let it be [('let it be', 'The Beatles'), ('let it be', 'The Beatles')] [('let it be', 'The Beatles')]\n",
9342 "i cant be satisfied [] [('i cant be satisfied', 'The Rolling Stones')]\n",
9343 "time waits for no one [] [('time waits for no one', 'The Rolling Stones')]\n",
9344 "the rocky road to dublin [] [('the rocky road to dublin', 'The Chieftains')]\n",
9345 "fancyman blues [] [('fancyman blues', 'The Rolling Stones')]\n",
9346 "rain fall down william remix [] [('rain fall down william remix', 'The Rolling Stones')]\n",
9347 "sure to fall [] [('sure to fall', 'The Beatles')]\n",
9348 "i will los angeles version [('i will los angeles version', 'Radiohead')] []\n"
9349 ]
9350 },
9351 {
9352 "name": "stdout",
9353 "output_type": "stream",
9354 "text": [
9355 "sittin on a fence [] [('sittin on a fence', 'The Rolling Stones')]\n",
9356 "pass the wine sophia loren [] [('pass the wine sophia loren', 'The Rolling Stones')]\n",
9357 "grown up wrong [] [('grown up wrong', 'The Rolling Stones')]\n",
9358 "think [] [('think', 'The Rolling Stones')]\n",
9359 "idioteque live in oxford [('idioteque live in oxford', 'Radiohead')] []\n",
9360 "sour milk sea [] [('sour milk sea', 'The Beatles')]\n",
9361 "killer cars [] [('killer cars', 'Radiohead')]\n",
9362 "tell me [] [('tell me', 'The Rolling Stones')]\n",
9363 "sie liebt dich [] [('sie liebt dich', 'The Beatles')]\n",
9364 "movie medley [] [('movie medley', 'The Beatles')]\n",
9365 "one more try [] [('one more try', 'The Rolling Stones')]\n",
9366 "tkol altrice rmx [('tkol altrice rmx', 'Radiohead')] []\n",
9367 "mannish boy [] [('mannish boy', 'The Rolling Stones')]\n",
9368 "commonwealth [] [('commonwealth', 'The Beatles')]\n",
9369 "ceremony [] [('ceremony', 'Radiohead')]\n",
9370 "dance little sister [] [('dance little sister', 'The Rolling Stones')]\n",
9371 "i call your name [] [('i call your name', 'The Beatles')]\n",
9372 "sing this all together see what happens [] [('sing this all together see what happens', 'The Rolling Stones')]\n",
9373 "the happy rishikesh song [] [('the happy rishikesh song', 'The Beatles')]\n",
9374 "revolution 1 [('revolution 1', 'The Beatles')] []\n",
9375 "you gotta move [] [('you gotta move', 'The Rolling Stones')]\n",
9376 "fog again live [('fog again live', 'Radiohead')] []\n",
9377 "key to the highway [('key to the highway', 'The Rolling Stones'), ('key to the highway', 'The Rolling Stones')] []\n",
9378 "you dont have to mean it [('you dont have to mean it', 'The Rolling Stones'), ('you dont have to mean it', 'The Rolling Stones')] [('you dont have to mean it', 'The Rolling Stones')]\n",
9379 "mothers little helper [] [('mothers little helper', 'The Rolling Stones')]\n",
9380 "one and one is two [] [('one and one is two', 'The Beatles')]\n",
9381 "permanent daylight [] [('permanent daylight', 'Radiohead')]\n",
9382 "parachute woman [] [('parachute woman', 'The Rolling Stones')]\n",
9383 "sympathy for the devil the neptunes remix [] [('sympathy for the devil the neptunes remix', 'The Rolling Stones')]\n",
9384 "drift away [] [('drift away', 'The Rolling Stones')]\n",
9385 "hand of fate [] [('hand of fate', 'The Rolling Stones')]\n",
9386 "100 years ago [] [('100 years ago', 'The Rolling Stones')]\n",
9387 "hold back [('hold back', 'The Rolling Stones'), ('hold back', 'The Rolling Stones')] [('hold back', 'The Rolling Stones')]\n",
9388 "saints [] [('saints', 'The Beatles')]\n",
9389 "angie [('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones')] [('angie', 'The Rolling Stones')]\n",
9390 "doncha bother me [] [('doncha bother me', 'The Rolling Stones')]\n",
9391 "roll over beethoven [('roll over beethoven', 'The Beatles'), ('roll over beethoven', 'The Beatles')] [('roll over beethoven', 'The Beatles'), ('roll over beethoven', 'The Rolling Stones')]\n",
9392 "packt like sardines in a crushed tin box [('packt like sardines in a crushed tin box', 'Radiohead')] []\n",
9393 "hallelujah i love her so [] [('hallelujah i love her so', 'The Beatles')]\n",
9394 "young blood [] [('young blood', 'The Beatles')]\n",
9395 "aint too proud to beg [] [('aint too proud to beg', 'The Rolling Stones')]\n",
9396 "something [('something', 'The Beatles'), ('something', 'The Beatles')] [('something', 'The Beatles')]\n",
9397 "flight 505 [] [('flight 505', 'The Rolling Stones')]\n",
9398 "hey crawdaddy [] [('hey crawdaddy', 'The Rolling Stones')]\n",
9399 "miss you [('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones')] [('miss you', 'The Rolling Stones')]\n",
9400 "midnight rambler [('midnight rambler', 'The Rolling Stones'), ('midnight rambler', 'The Rolling Stones')] [('midnight rambler', 'The Rolling Stones')]\n",
9401 "rhinestone cowboy [] [('rhinestone cowboy', 'Radiohead')]\n",
9402 "supercollider [] [('supercollider', 'Radiohead')]\n",
9403 "i think im going mad [] [('i think im going mad', 'The Rolling Stones')]\n",
9404 "whats the new mary jane [] [('whats the new mary jane', 'The Beatles')]\n",
9405 "carol [] [('carol', 'The Beatles'), ('carol', 'The Rolling Stones')]\n",
9406 "a little rhyme [] [('a little rhyme', 'The Beatles')]\n",
9407 "memo from turner [] [('memo from turner', 'The Rolling Stones')]\n",
9408 "just my imagination running away with me [('just my imagination running away with me', 'The Rolling Stones'), ('just my imagination running away with me', 'The Rolling Stones'), ('just my imagination running away with me', 'The Rolling Stones')] [('just my imagination running away with me', 'The Rolling Stones')]\n",
9409 "rain [] [('rain', 'The Beatles')]\n",
9410 "my bonnie german intro [] [('my bonnie german intro', 'The Beatles')]\n",
9411 "yove got to hide your love away [] [('yove got to hide your love away', 'The Beatles')]\n",
9412 "manowar [] [('manowar', 'Radiohead')]\n",
9413 "sgt peppers lonely hearts club band [('sgt peppers lonely hearts club band', 'The Beatles'), ('sgt peppers lonely hearts club band', 'The Beatles')] [('sgt peppers lonely hearts club band', 'The Beatles')]\n",
9414 "diddley daddy [] [('diddley daddy', 'The Rolling Stones')]\n",
9415 "molasses [] [('molasses', 'Radiohead')]\n",
9416 "you know my name [] [('you know my name', 'The Beatles')]\n",
9417 "nothing from nothing [] [('nothing from nothing', 'The Rolling Stones')]\n",
9418 "so divine aladdin story [] [('so divine aladdin story', 'The Rolling Stones')]\n",
9419 "i cant help it [] [('i cant help it', 'The Rolling Stones')]\n",
9420 "keep strong [] [('keep strong', 'On A Friday')]\n",
9421 "some things just stick in your mind [] [('some things just stick in your mind', 'The Rolling Stones')]\n",
9422 "bad boy [] [('bad boy', 'The Beatles')]\n",
9423 "star star [] [('star star', 'The Rolling Stones')]\n",
9424 "pop is dead [] [('pop is dead', 'Radiohead')]\n",
9425 "on with the show [] [('on with the show', 'The Rolling Stones')]\n",
9426 "blackbirdyesterday [] [('blackbirdyesterday', 'The Beatles')]\n",
9427 "sha la la la la [] [('sha la la la la', 'The Beatles')]\n",
9428 "on the beach [] [('on the beach', 'Radiohead')]\n",
9429 "if you let me [] [('if you let me', 'The Rolling Stones')]\n",
9430 "help [('help', 'The Beatles'), ('help', 'The Beatles'), ('help', 'The Beatles')] [('help', 'The Beatles')]\n",
9431 "something with blue jay way transition [] [('something with blue jay way transition', 'The Beatles')]\n",
9432 "following the river [] [('following the river', 'The Rolling Stones')]\n",
9433 "i aint superstitious [] [('i aint superstitious', 'The Rolling Stones')]\n",
9434 "backstreet girl [] [('backstreet girl', 'The Rolling Stones')]\n",
9435 "if i was a dancer dance part 2 [] [('if i was a dancer dance part 2', 'The Rolling Stones')]\n",
9436 "sweet black angel [] [('sweet black angel', 'The Rolling Stones')]\n",
9437 "not guilty [] [('not guilty', 'The Beatles')]\n",
9438 "shake your hips [] [('shake your hips', 'The Rolling Stones')]\n",
9439 "i get a kick out of you [] [('i get a kick out of you', 'The Rolling Stones')]\n",
9440 "missing links bootleg [] [('missing links bootleg', 'Plan B')]\n",
9441 "thatll be the day [] [('thatll be the day', 'The Beatles')]\n",
9442 "step inside love los paranoias [] [('step inside love los paranoias', 'The Beatles')]\n",
9443 "silver train [] [('silver train', 'The Rolling Stones')]\n",
9444 "boys [('boys', 'The Beatles'), ('boys', 'The Beatles')] [('boys', 'The Beatles')]\n",
9445 "bloom mark pritchard rmx [('bloom mark pritchard rmx', 'Radiohead')] []\n",
9446 "john wesley harding [] [('john wesley harding', 'The Rolling Stones')]\n",
9447 "a punchup at a wedding [] [('a punchup at a wedding', 'Radiohead')]\n",
9448 "under the board walk [] [('under the board walk', 'The Rolling Stones')]\n",
9449 "inside my head [] [('inside my head', 'Radiohead')]\n",
9450 "to know her is to love her [] [('to know her is to love her', 'The Beatles')]\n",
9451 "rip it up medley [] [('rip it up medley', 'The Beatles')]\n",
9452 "good evening mrs magpie modeselektor rmx [('good evening mrs magpie modeselektor rmx', 'Radiohead')] []\n",
9453 "brown sugar [('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones')] [('brown sugar', 'The Rolling Stones')]\n",
9454 "miss amanda jones [] [('miss amanda jones', 'The Rolling Stones')]\n",
9455 "ready teddy [] [('ready teddy', 'The Beatles')]\n",
9456 "morning mr magpie nathan fake rmx [('morning mr magpie nathan fake rmx', 'Radiohead')] []\n",
9457 "rock and a hard place [('rock and a hard place', 'The Rolling Stones'), ('rock and a hard place', 'The Rolling Stones')] [('rock and a hard place', 'The Rolling Stones')]\n",
9458 "im talking about you [] [('im talking about you', 'The Beatles')]\n",
9459 "medley rip it up shake rattle and roll blue suede shoes [] [('medley rip it up shake rattle and roll blue suede shoes', 'The Beatles')]\n",
9460 "can you hear the music [] [('can you hear the music', 'The Rolling Stones')]\n",
9461 "what is that you say [] [('what is that you say', 'Radiohead')]\n",
9462 "sweet georgia brown [] [('sweet georgia brown', 'The Beatles')]\n",
9463 "gimme shelter [('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones')] [('gimme shelter', 'The Rolling Stones')]\n",
9464 "jingle bells [] [('jingle bells', 'The Beatles')]\n",
9465 "im a king bee [] [('im a king bee', 'The Rolling Stones')]\n",
9466 "take it or leave it [] [('take it or leave it', 'The Rolling Stones')]\n",
9467 "long long while [] [('long long while', 'The Rolling Stones')]\n",
9468 "packt like sardines in a crushd tin box [] [('packt like sardines in a crushd tin box', 'Radiohead')]\n",
9469 "2000 light years from home [] [('2000 light years from home', 'The Rolling Stones')]\n",
9470 "being for the benefit of mr kite takes 1 2 [] [('being for the benefit of mr kite takes 1 2', 'The Beatles')]\n",
9471 "real love [] [('real love', 'The Beatles')]\n",
9472 "reminiscing [] [('reminiscing', 'The Beatles')]\n",
9473 "just a rumour speech [] [('just a rumour speech', 'The Beatles')]\n",
9474 "nothin shakin [] [('nothin shakin', 'The Beatles')]\n",
9475 "we love you [] [('we love you', 'The Rolling Stones')]\n",
9476 "one more shot [] [('one more shot', 'The Rolling Stones')]\n",
9477 "im coming up [] [('im coming up', 'On A Friday')]\n",
9478 "the beatles christmas record [] [('the beatles christmas record', 'The Beatles')]\n",
9479 "i want to be loved [] [('i want to be loved', 'The Rolling Stones')]\n",
9480 "my obsession [] [('my obsession', 'The Rolling Stones')]\n",
9481 "somebody else [] [('somebody else', 'Radiohead')]\n",
9482 "2000 man [] [('2000 man', 'The Rolling Stones')]\n",
9483 "ill get you [] [('ill get you', 'The Beatles')]\n"
9484 ]
9485 },
9486 {
9487 "name": "stdout",
9488 "output_type": "stream",
9489 "text": [
9490 "cry for a shadow [] [('cry for a shadow', 'The Beatles')]\n",
9491 "wicked child [] [('wicked child', 'Radiohead')]\n",
9492 "like dreamers do [] [('like dreamers do', 'The Beatles')]\n",
9493 "step inside love [] [('step inside love', 'The Beatles')]\n",
9494 "sad day [] [('sad day', 'The Rolling Stones')]\n",
9495 "talkin about you [] [('talkin about you', 'The Rolling Stones')]\n",
9496 "faithless the wonderboy [] [('faithless the wonderboy', 'Radiohead')]\n",
9497 "dancing with mr d [] [('dancing with mr d', 'The Rolling Stones')]\n",
9498 "im going down [] [('im going down', 'The Rolling Stones')]\n",
9499 "who am i [] [('who am i', 'The Rolling Stones')]\n",
9500 "untitled [('untitled', 'Radiohead')] []\n",
9501 "we are wasting time [] [('we are wasting time', 'The Rolling Stones')]\n",
9502 "moonlight bay [] [('moonlight bay', 'The Beatles')]\n",
9503 "eleanor rigby [('eleanor rigby', 'The Beatles'), ('eleanor rigby', 'The Beatles')] [('eleanor rigby', 'The Beatles')]\n",
9504 "pain in my heart [('pain in my heart', 'The Rolling Stones')] [('pain in my heart', 'The Rolling Stones'), ('pain in my heart', 'The Rolling Stones')]\n",
9505 "some girls [('some girls', 'The Rolling Stones'), ('some girls', 'The Rolling Stones'), ('some girls', 'The Rolling Stones')] [('some girls', 'The Rolling Stones')]\n",
9506 "mona [] [('mona', 'The Rolling Stones')]\n",
9507 "the hippy hippy shake [] [('the hippy hippy shake', 'The Beatles')]\n",
9508 "baby please dont go [] [('baby please dont go', 'The Rolling Stones')]\n",
9509 "sad sad sad [('sad sad sad', 'The Rolling Stones'), ('sad sad sad', 'The Rolling Stones')] [('sad sad sad', 'The Rolling Stones')]\n",
9510 "cocksucker blues [] [('cocksucker blues', 'The Rolling Stones')]\n",
9511 "junk [] [('junk', 'The Beatles')]\n",
9512 "everybodys trying to be my baby [('everybodys trying to be my baby', 'The Beatles'), ('everybodys trying to be my baby', 'The Beatles')] [('everybodys trying to be my baby', 'The Beatles')]\n",
9513 "mick jaggers introduction to jethro tull [] [('mick jaggers introduction to jethro tull', 'The Rolling Stones')]\n",
9514 "hot stuff [] [('hot stuff', 'The Rolling Stones')]\n",
9515 "my bonnie [] [('my bonnie', 'Tony Sheridan'), ('my bonnie', 'The Beatles')]\n",
9516 "these are my twisted words [] [('these are my twisted words', 'Radiohead')]\n",
9517 "whos driving your plane [] [('whos driving your plane', 'The Rolling Stones')]\n",
9518 "the singer not the song [] [('the singer not the song', 'The Rolling Stones')]\n",
9519 "da doo ron ron [] [('da doo ron ron', 'The Rolling Stones')]\n",
9520 "what goes on girl [] [('what goes on girl', 'The Beatles')]\n",
9521 "bullet proofi wish i was [] [('bullet proofi wish i was', 'Radiohead')]\n",
9522 "the under assistant west coast promotion man [] [('the under assistant west coast promotion man', 'The Rolling Stones')]\n",
9523 "yes i am [] [('yes i am', 'Radiohead')]\n",
9524 "some other guy [] [('some other guy', 'The Beatles')]\n",
9525 "sinking ship [] [('sinking ship', 'On A Friday')]\n",
9526 "mick jaggers introduction of rock roll circus [] [('mick jaggers introduction of rock roll circus', 'The Rolling Stones')]\n",
9527 "kid a tracklist album cover [] [('kid a tracklist album cover', 'Radiohead')]\n",
9528 "sister morphine [] [('sister morphine', 'The Rolling Stones')]\n",
9529 "oh baby we got a good thing goin [] [('oh baby we got a good thing goin', 'The Rolling Stones')]\n",
9530 "intro [] [('intro', 'The Rolling Stones')]\n",
9531 "the honeymoon song [] [('the honeymoon song', 'The Beatles')]\n",
9532 "plundered my soul [] [('plundered my soul', 'The Rolling Stones')]\n",
9533 "stealing my heart [] [('stealing my heart', 'The Rolling Stones')]\n",
9534 "old brown shoe [] [('old brown shoe', 'The Beatles')]\n",
9535 "clarabella [] [('clarabella', 'The Beatles')]\n",
9536 "i got a woman [] [('i got a woman', 'The Beatles')]\n",
9537 "1822 [] [('1822', 'The Beatles')]\n",
9538 "revolution i [] [('revolution i', 'The Beatles')]\n",
9539 "crazy mama [] [('crazy mama', 'The Rolling Stones')]\n",
9540 "cant be seen [('cant be seen', 'The Rolling Stones'), ('cant be seen', 'The Rolling Stones')] [('cant be seen', 'The Rolling Stones')]\n",
9541 "the inner light [] [('the inner light', 'The Beatles')]\n",
9542 "banana co [] [('banana co', 'Radiohead')]\n",
9543 "three cool cats [] [('three cool cats', 'The Beatles')]\n",
9544 "it should be you [] [('it should be you', 'The Rolling Stones')]\n",
9545 "travellin man [] [('travellin man', 'The Rolling Stones')]\n",
9546 "ooh my soul [] [('ooh my soul', 'The Beatles')]\n",
9547 "a hard days night [('a hard days night', 'The Beatles'), ('a hard days night', 'The Beatles'), ('a hard days night', 'The Beatles')] [('a hard days night', 'The Beatles')]\n",
9548 "big boots [] [('big boots', 'Radiohead')]\n",
9549 "youve got a hold on me [] [('youve got a hold on me', 'The Beatles')]\n",
9550 "cut a hole [] [('cut a hole', 'Radiohead')]\n",
9551 "dont lie to me [] [('dont lie to me', 'The Rolling Stones')]\n",
9552 "skttrbrain four tet remix [('skttrbrain four tet remix', 'Radiohead')] []\n",
9553 "torn and frayed [] [('torn and frayed', 'The Rolling Stones')]\n",
9554 "too much monkey business [] [('too much monkey business', 'The Beatles')]\n",
9555 "a punch up at a wedding [('a punch up at a wedding', 'Radiohead')] []\n",
9556 "not fade away [('not fade away', 'The Rolling Stones'), ('not fade away', 'The Rolling Stones')] [('not fade away', 'The Rolling Stones')]\n",
9557 "wild horses [('wild horses', 'The Rolling Stones')] [('wild horses', 'Plan B'), ('wild horses', 'The Rolling Stones')]\n",
9558 "i froze up [] [('i froze up', 'Radiohead')]\n",
9559 "free as a bird [] [('free as a bird', 'The Beatles')]\n",
9560 "dizzy miss lizzy [('dizzy miss lizzy', 'The Beatles'), ('dizzy miss lizzy', 'The Beatles')] [('dizzy miss lizzy', 'The Beatles')]\n",
9561 "india rubber [] [('india rubber', 'Radiohead')]\n",
9562 "back to zero [('back to zero', 'The Rolling Stones'), ('back to zero', 'The Rolling Stones')] [('back to zero', 'The Rolling Stones')]\n",
9563 "little by little [('little by little', 'Radiohead')] [('little by little', 'Radiohead'), ('little by little', 'The Rolling Stones')]\n",
9564 "that girl belongs to yesterday [] [('that girl belongs to yesterday', 'The Rolling Stones')]\n",
9565 "ill wear it proudly [] [('ill wear it proudly', 'Radiohead')]\n",
9566 "summertime blues [] [('summertime blues', 'The Rolling Stones')]\n",
9567 "short and curlies [] [('short and curlies', 'The Rolling Stones')]\n",
9568 "family [] [('family', 'The Rolling Stones')]\n",
9569 "lies [('lies', 'The Rolling Stones'), ('lies', 'The Rolling Stones')] [('lies', 'The Rolling Stones')]\n",
9570 "beatle greetings [] [('beatle greetings', 'The Beatles')]\n",
9571 "dancing in the light [] [('dancing in the light', 'The Rolling Stones')]\n",
9572 "i dont know why [] [('i dont know why', 'The Rolling Stones')]\n",
9573 "she was hot [('she was hot', 'The Rolling Stones'), ('she was hot', 'The Rolling Stones')] [('she was hot', 'The Rolling Stones')]\n",
9574 "melody [] [('melody', 'The Rolling Stones')]\n",
9575 "all you need is love [('all you need is love', 'The Beatles'), ('all you need is love', 'The Beatles'), ('all you need is love', 'The Beatles')] [('all you need is love', 'The Beatles')]\n",
9576 "shout [] [('shout', 'The Beatles')]\n",
9577 "ya ya [] [('ya ya', 'The Beatles')]\n",
9578 "memory motel [] [('memory motel', 'The Rolling Stones')]\n",
9579 "something happened to me yesterday [] [('something happened to me yesterday', 'The Rolling Stones')]\n",
9580 "intro excerpt from fanfare for the common man [] [('intro excerpt from fanfare for the common man', 'The Rolling Stones')]\n"
9581 ]
9582 }
9583 ],
9584 "source": [
9585 "for ct in ctitles:\n",
9586 " sts = [(t['ctitle'], t['artist_name']) for t in tracks.find({'ctitle': ct}, ['ctitle', 'artist_name'])]\n",
9587 " gts = [(t['ctitle'], t['primary_artist']['name']) for t in genius_tracks.find({'ctitle': ct}, ['ctitle', 'primary_artist.name'])]\n",
9588 " if len(sts) != 1 or len(gts) != 1:\n",
9589 " print(ct, sts, gts)"
9590 ]
9591 },
9592 {
9593 "cell_type": "code",
9594 "execution_count": 44,
9595 "metadata": {},
9596 "outputs": [],
9597 "source": [
9598 "def levenshtein(s1, s2):\n",
9599 " if len(s1) < len(s2):\n",
9600 " return levenshtein(s2, s1)\n",
9601 "\n",
9602 " # len(s1) >= len(s2)\n",
9603 " if len(s2) == 0:\n",
9604 " return len(s1)\n",
9605 "\n",
9606 " previous_row = range(len(s2) + 1)\n",
9607 " for i, c1 in enumerate(s1):\n",
9608 " current_row = [i + 1]\n",
9609 " for j, c2 in enumerate(s2):\n",
9610 " insertions = previous_row[j + 1] + 1 # j+1 instead of j since previous_row and current_row are one character longer\n",
9611 " deletions = current_row[j] + 1 # than s2\n",
9612 " substitutions = previous_row[j] + (c1 != c2)\n",
9613 " current_row.append(min(insertions, deletions, substitutions))\n",
9614 " previous_row = current_row\n",
9615 " \n",
9616 " return previous_row[-1]"
9617 ]
9618 },
9619 {
9620 "cell_type": "code",
9621 "execution_count": 76,
9622 "metadata": {
9623 "scrolled": true
9624 },
9625 "outputs": [
9626 {
9627 "name": "stdout",
9628 "output_type": "stream",
9629 "text": [
9630 "('sea of monsters', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 23 True\n",
9631 "('just my imagination', 'The Rolling Stones') ('out of control', 'The Rolling Stones') 12 True\n",
9632 "('jumping jack flash', 'The Rolling Stones') ('jumpin jack flash', 'The Rolling Stones') 1 True\n",
9633 "('pepperland laid waste', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n",
9634 "('little ta', 'The Rolling Stones') ('little t a', 'The Rolling Stones') 1 False\n",
9635 "('kansas city heyheyheyhey', 'The Beatles') ('medley kansas cityhey hey hey hey', 'The Beatles') 11 False\n",
9636 "('bullet proof i wish i was', 'Radiohead') ('bullet proofi wish i was', 'Radiohead') 1 False\n",
9637 "('sea of holes', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n",
9638 "('packt like sardines in a crushed tin box', 'Radiohead') ('packt like sardines in a crushd tin box', 'Radiohead') 1 False\n",
9639 "('codex illum sphere', 'Radiohead') ('the butcher', 'Radiohead') 12 False\n",
9640 "('outro', 'Jimi Hendrix') Missing 99999 False\n",
9641 "('pepperland', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 20 True\n",
9642 "('key to the highway', 'The Rolling Stones') ('thief in the night', 'The Rolling Stones') 10 True\n",
9643 "('march of the meanies', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 24 True\n",
9644 "('dollars cents', 'Radiohead') ('dollars and cents', 'Radiohead') 4 False\n",
9645 "('little by little shed', 'Radiohead') ('little by little', 'Radiohead') 5 True\n",
9646 "('sea of time', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n",
9647 "('faraway eyes', 'The Rolling Stones') ('far away eyes', 'The Rolling Stones') 1 True\n",
9648 "('i will los angeles version', 'Radiohead') ('wish you were here', 'Radiohead') 16 False\n",
9649 "('everybody needs somebody to love finale', 'The Rolling Stones') ('everybody needs somebody to love', 'The Rolling Stones') 7 True\n",
9650 "('a punch up at a wedding', 'Radiohead') ('a punchup at a wedding', 'Radiohead') 1 False\n",
9651 "('revolution 1', 'The Beatles') ('revolution 9', 'The Beatles') 1 True\n",
9652 "('untitled', 'Radiohead') ('untogether', 'Radiohead') 5 False\n",
9653 "('when im sixty four', 'The Beatles') ('when im sixtyfour', 'The Beatles') 1 False\n"
9654 ]
9655 }
9656 ],
9657 "source": [
9658 "banned_substrings = ['rmx', 'remix', 'rework', 'live', 'intro', 'medley']\n",
9659 "genius_and_both = genius_only | in_both\n",
9660 "for s in spotify_only:\n",
9661 " if not any(banned in s[0] for banned in banned_substrings):\n",
9662 " candidates = [g for g in genius_and_both if g[1] == s[1]]\n",
9663 " if candidates:\n",
9664 " gt = min(candidates, key=lambda g: levenshtein(s[0], g[0]))\n",
9665 " d = levenshtein(s[0], gt[0])\n",
9666 " else:\n",
9667 " gt = 'Missing'\n",
9668 " d = 99999\n",
9669 " print(s, gt, d, gt in in_both)"
9670 ]
9671 },
9672 {
9673 "cell_type": "code",
9674 "execution_count": 52,
9675 "metadata": {},
9676 "outputs": [
9677 {
9678 "name": "stdout",
9679 "output_type": "stream",
9680 "text": [
9681 "('charlies intro to little red rooster', 'The Rolling Stones') []\n",
9682 "('bloom jamie xx rework', 'Radiohead') []\n",
9683 "('sea of monsters', 'George Martin') []\n",
9684 "('just my imagination', 'The Rolling Stones') []\n",
9685 "('jumping jack flash', 'The Rolling Stones') [(('jumpin jack flash', 'The Rolling Stones'), 1)]\n",
9686 "('pepperland laid waste', 'George Martin') []\n",
9687 "('little ta', 'The Rolling Stones') [(('title 5', 'The Rolling Stones'), 4), (('little t a', 'The Rolling Stones'), 1), (('little rain', 'The Rolling Stones'), 3), (('little baby', 'The Rolling Stones'), 3)]\n",
9688 "('kansas city heyheyheyhey', 'The Beatles') []\n",
9689 "('bullet proof i wish i was', 'Radiohead') [(('bullet proofi wish i was', 'Radiohead'), 1)]\n",
9690 "('sea of holes', 'George Martin') []\n",
9691 "('packt like sardines in a crushed tin box', 'Radiohead') [(('packt like sardines in a crushd tin box', 'Radiohead'), 1)]\n",
9692 "('codex illum sphere', 'Radiohead') []\n",
9693 "('pepperland', 'George Martin') []\n",
9694 "('key to the highway', 'The Rolling Stones') []\n",
9695 "('march of the meanies', 'George Martin') []\n",
9696 "('band introductions', 'The Rolling Stones') []\n",
9697 "('dollars cents', 'Radiohead') [(('dollars and cents', 'Radiohead'), 4)]\n",
9698 "('little by little shed', 'Radiohead') []\n",
9699 "('sea of time', 'George Martin') []\n",
9700 "('faraway eyes', 'The Rolling Stones') [(('far away eyes', 'The Rolling Stones'), 1)]\n",
9701 "('i will los angeles version', 'Radiohead') []\n",
9702 "('everybody needs somebody to love finale', 'The Rolling Stones') []\n",
9703 "('a punch up at a wedding', 'Radiohead') [(('a punchup at a wedding', 'Radiohead'), 1)]\n",
9704 "('martin scorsese intro', 'The Rolling Stones') []\n",
9705 "('revolution 1', 'The Beatles') [(('revolution 9', 'The Beatles'), 1), (('revolution', 'The Beatles'), 2), (('revolution i', 'The Beatles'), 1)]\n",
9706 "('untitled', 'Radiohead') []\n",
9707 "('when im sixty four', 'The Beatles') [(('when im sixtyfour', 'The Beatles'), 1)]\n"
9708 ]
9709 }
9710 ],
9711 "source": [
9712 "genius_and_both = genius_only | in_both\n",
9713 "for s in spotify_only:\n",
9714 " if 'rmx' not in s[0] and 'remix' not in s[0] and 'live' not in s[0]:\n",
9715 " album = \n",
9716 " candidates = [g for g in genius_and_both if g[1] == s[1]]\n",
9717 " if candidates:\n",
9718 " gts = [(g, levenshtein(s[0], g[0])) for g in candidates if levenshtein(s[0], g[0]) < 5]\n",
9719 " print(s, gts)"
9720 ]
9721 },
9722 {
9723 "cell_type": "code",
9724 "execution_count": 54,
9725 "metadata": {
9726 "scrolled": true
9727 },
9728 "outputs": [
9729 {
9730 "data": {
9731 "text/html": [
9732 "<div>\n",
9733 "<style>\n",
9734 " .dataframe thead tr:only-child th {\n",
9735 " text-align: right;\n",
9736 " }\n",
9737 "\n",
9738 " .dataframe thead th {\n",
9739 " text-align: left;\n",
9740 " }\n",
9741 "\n",
9742 " .dataframe tbody tr th {\n",
9743 " vertical-align: top;\n",
9744 " }\n",
9745 "</style>\n",
9746 "<table border=\"1\" class=\"dataframe\">\n",
9747 " <thead>\n",
9748 " <tr style=\"text-align: right;\">\n",
9749 " <th></th>\n",
9750 " <th>_id</th>\n",
9751 " <th>artist_name</th>\n",
9752 " <th>name</th>\n",
9753 " </tr>\n",
9754 " </thead>\n",
9755 " <tbody>\n",
9756 " <tr>\n",
9757 " <th>0</th>\n",
9758 " <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
9759 " <td>The Beatles</td>\n",
9760 " <td>Live At The Hollywood Bowl</td>\n",
9761 " </tr>\n",
9762 " <tr>\n",
9763 " <th>1</th>\n",
9764 " <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
9765 " <td>The Beatles</td>\n",
9766 " <td>1 (Remastered)</td>\n",
9767 " </tr>\n",
9768 " <tr>\n",
9769 " <th>2</th>\n",
9770 " <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
9771 " <td>The Beatles</td>\n",
9772 " <td>Let It Be (Remastered)</td>\n",
9773 " </tr>\n",
9774 " <tr>\n",
9775 " <th>3</th>\n",
9776 " <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
9777 " <td>The Beatles</td>\n",
9778 " <td>Abbey Road (Remastered)</td>\n",
9779 " </tr>\n",
9780 " <tr>\n",
9781 " <th>4</th>\n",
9782 " <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
9783 " <td>The Beatles</td>\n",
9784 " <td>Yellow Submarine (Remastered)</td>\n",
9785 " </tr>\n",
9786 " <tr>\n",
9787 " <th>5</th>\n",
9788 " <td>03Qh833fEdVT30Pfs93ea6</td>\n",
9789 " <td>The Beatles</td>\n",
9790 " <td>The Beatles (Remastered)</td>\n",
9791 " </tr>\n",
9792 " <tr>\n",
9793 " <th>6</th>\n",
9794 " <td>6P9yO0ukhOx3dvmhGKeYoC</td>\n",
9795 " <td>The Beatles</td>\n",
9796 " <td>Magical Mystery Tour (Remastered)</td>\n",
9797 " </tr>\n",
9798 " <tr>\n",
9799 " <th>7</th>\n",
9800 " <td>1PULmKbHeOqlkIwcDMNwD4</td>\n",
9801 " <td>The Beatles</td>\n",
9802 " <td>Sgt. Pepper's Lonely Hearts Club Band (Remaste...</td>\n",
9803 " </tr>\n",
9804 " <tr>\n",
9805 " <th>8</th>\n",
9806 " <td>0PYyrqs9NXtxPhf0CZkq2L</td>\n",
9807 " <td>The Beatles</td>\n",
9808 " <td>Revolver (Remastered)</td>\n",
9809 " </tr>\n",
9810 " <tr>\n",
9811 " <th>9</th>\n",
9812 " <td>3OdI6e43crvyAHhaqpxSyz</td>\n",
9813 " <td>The Beatles</td>\n",
9814 " <td>Rubber Soul (Remastered)</td>\n",
9815 " </tr>\n",
9816 " <tr>\n",
9817 " <th>10</th>\n",
9818 " <td>19K3IHYeVkUTjcBHGfbCOi</td>\n",
9819 " <td>The Beatles</td>\n",
9820 " <td>Help! (Remastered)</td>\n",
9821 " </tr>\n",
9822 " <tr>\n",
9823 " <th>11</th>\n",
9824 " <td>7BgGBZndAvDlKOcwe5rscZ</td>\n",
9825 " <td>The Beatles</td>\n",
9826 " <td>Beatles For Sale (Remastered)</td>\n",
9827 " </tr>\n",
9828 " <tr>\n",
9829 " <th>12</th>\n",
9830 " <td>71Mwd9tntFQYUk4k2DwA0D</td>\n",
9831 " <td>The Beatles</td>\n",
9832 " <td>A Hard Day's Night (Remastered)</td>\n",
9833 " </tr>\n",
9834 " <tr>\n",
9835 " <th>13</th>\n",
9836 " <td>1DBkJIEoeHrTX4WCBQGcCi</td>\n",
9837 " <td>Radiohead</td>\n",
9838 " <td>The King Of Limbs</td>\n",
9839 " </tr>\n",
9840 " <tr>\n",
9841 " <th>14</th>\n",
9842 " <td>3nkEsxmIX0zRNXGAexaHAn</td>\n",
9843 " <td>The Beatles</td>\n",
9844 " <td>With The Beatles (Remastered)</td>\n",
9845 " </tr>\n",
9846 " <tr>\n",
9847 " <th>15</th>\n",
9848 " <td>7gDXyW16byCQOgK965BRzn</td>\n",
9849 " <td>The Beatles</td>\n",
9850 " <td>Please Please Me (Remastered)</td>\n",
9851 " </tr>\n",
9852 " <tr>\n",
9853 " <th>16</th>\n",
9854 " <td>6vuykQgDLUCiZ7YggIpLM9</td>\n",
9855 " <td>Radiohead</td>\n",
9856 " <td>A Moon Shaped Pool</td>\n",
9857 " </tr>\n",
9858 " <tr>\n",
9859 " <th>17</th>\n",
9860 " <td>47xaqCsJcYFWqD1gwujl1T</td>\n",
9861 " <td>Radiohead</td>\n",
9862 " <td>TKOL RMX 1234567</td>\n",
9863 " </tr>\n",
9864 " <tr>\n",
9865 " <th>18</th>\n",
9866 " <td>7eyQXxuf2nGj9d2367Gi5f</td>\n",
9867 " <td>Radiohead</td>\n",
9868 " <td>In Rainbows</td>\n",
9869 " </tr>\n",
9870 " <tr>\n",
9871 " <th>19</th>\n",
9872 " <td>36lJLPoPPOKNFddTAcirnc</td>\n",
9873 " <td>Radiohead</td>\n",
9874 " <td>In Rainbows Disk 2</td>\n",
9875 " </tr>\n",
9876 " <tr>\n",
9877 " <th>20</th>\n",
9878 " <td>6Eo5EkmdLvZrONzi046iC2</td>\n",
9879 " <td>Radiohead</td>\n",
9880 " <td>Com Lag: 2+2=5</td>\n",
9881 " </tr>\n",
9882 " <tr>\n",
9883 " <th>21</th>\n",
9884 " <td>1oW3v5Har9mvXnGk0x4fHm</td>\n",
9885 " <td>Radiohead</td>\n",
9886 " <td>Hail To the Thief</td>\n",
9887 " </tr>\n",
9888 " <tr>\n",
9889 " <th>22</th>\n",
9890 " <td>6svTt5o2lUgIrgYDKVmdnD</td>\n",
9891 " <td>Radiohead</td>\n",
9892 " <td>I Might Be Wrong</td>\n",
9893 " </tr>\n",
9894 " <tr>\n",
9895 " <th>23</th>\n",
9896 " <td>6V9YnBmFjWmXCBaUVRCVXP</td>\n",
9897 " <td>Radiohead</td>\n",
9898 " <td>Amnesiac</td>\n",
9899 " </tr>\n",
9900 " <tr>\n",
9901 " <th>24</th>\n",
9902 " <td>19RUXBFyM4PpmrLRdtqWbp</td>\n",
9903 " <td>Radiohead</td>\n",
9904 " <td>Kid A</td>\n",
9905 " </tr>\n",
9906 " <tr>\n",
9907 " <th>25</th>\n",
9908 " <td>7dxKtc08dYeRVHt3p9CZJn</td>\n",
9909 " <td>Radiohead</td>\n",
9910 " <td>OK Computer</td>\n",
9911 " </tr>\n",
9912 " <tr>\n",
9913 " <th>26</th>\n",
9914 " <td>500FEaUzn8lN9zWFyZG5C2</td>\n",
9915 " <td>Radiohead</td>\n",
9916 " <td>The Bends</td>\n",
9917 " </tr>\n",
9918 " <tr>\n",
9919 " <th>27</th>\n",
9920 " <td>6400dnyeDyD2mIFHfkwHXN</td>\n",
9921 " <td>Radiohead</td>\n",
9922 " <td>Pablo Honey</td>\n",
9923 " </tr>\n",
9924 " <tr>\n",
9925 " <th>28</th>\n",
9926 " <td>4g9Jfls8z2nbQxj5PiXkiy</td>\n",
9927 " <td>The Rolling Stones</td>\n",
9928 " <td>Blue &amp; Lonesome</td>\n",
9929 " </tr>\n",
9930 " <tr>\n",
9931 " <th>29</th>\n",
9932 " <td>4fhWcu56Bbh5wALuTouFVW</td>\n",
9933 " <td>The Rolling Stones</td>\n",
9934 " <td>Havana Moon (Live)</td>\n",
9935 " </tr>\n",
9936 " <tr>\n",
9937 " <th>30</th>\n",
9938 " <td>3PbRKFafwE7Of8e4dTee72</td>\n",
9939 " <td>The Rolling Stones</td>\n",
9940 " <td>Totally Stripped (Live)</td>\n",
9941 " </tr>\n",
9942 " <tr>\n",
9943 " <th>31</th>\n",
9944 " <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
9945 " <td>The Rolling Stones</td>\n",
9946 " <td>Live 1965: Music From Charlie Is My Darling (L...</td>\n",
9947 " </tr>\n",
9948 " <tr>\n",
9949 " <th>32</th>\n",
9950 " <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
9951 " <td>The Rolling Stones</td>\n",
9952 " <td>Shine A Light</td>\n",
9953 " </tr>\n",
9954 " <tr>\n",
9955 " <th>33</th>\n",
9956 " <td>4FTHynKEtuP7eppERNfjyG</td>\n",
9957 " <td>The Rolling Stones</td>\n",
9958 " <td>A Bigger Bang (2009 Re-Mastered)</td>\n",
9959 " </tr>\n",
9960 " <tr>\n",
9961 " <th>34</th>\n",
9962 " <td>50UGtgNA5bq1c0BDjPfmbD</td>\n",
9963 " <td>The Rolling Stones</td>\n",
9964 " <td>Live Licks</td>\n",
9965 " </tr>\n",
9966 " <tr>\n",
9967 " <th>35</th>\n",
9968 " <td>0ZGddnvcVzHVHfE3WW1tV5</td>\n",
9969 " <td>The Rolling Stones</td>\n",
9970 " <td>Bridges To Babylon (2009 Re-Mastered)</td>\n",
9971 " </tr>\n",
9972 " <tr>\n",
9973 " <th>36</th>\n",
9974 " <td>4M8Q1L9PZq0xK5tLUpO3jd</td>\n",
9975 " <td>The Rolling Stones</td>\n",
9976 " <td>Stripped</td>\n",
9977 " </tr>\n",
9978 " <tr>\n",
9979 " <th>37</th>\n",
9980 " <td>62ZT16LY1phGM0O8x5qW1z</td>\n",
9981 " <td>The Rolling Stones</td>\n",
9982 " <td>Voodoo Lounge (2009 Re-Mastered)</td>\n",
9983 " </tr>\n",
9984 " <tr>\n",
9985 " <th>38</th>\n",
9986 " <td>1W1UJulgICjFDyYIMUwRs7</td>\n",
9987 " <td>The Rolling Stones</td>\n",
9988 " <td>Flashpoint</td>\n",
9989 " </tr>\n",
9990 " <tr>\n",
9991 " <th>39</th>\n",
9992 " <td>25mfHGJNQkluvIqedXHSx3</td>\n",
9993 " <td>The Rolling Stones</td>\n",
9994 " <td>Steel Wheels (2009 Re-Mastered)</td>\n",
9995 " </tr>\n",
9996 " <tr>\n",
9997 " <th>40</th>\n",
9998 " <td>1TpcI1LEFVhBvDPSTMPGFG</td>\n",
9999 " <td>The Rolling Stones</td>\n",
10000 " <td>Dirty Work</td>\n",
10001 " </tr>\n",
10002 " <tr>\n",
10003 " <th>41</th>\n",
10004 " <td>1WSfNoPDPzgyKFN6OSYWUx</td>\n",
10005 " <td>The Rolling Stones</td>\n",
10006 " <td>Dirty Work (Remastered 2009)</td>\n",
10007 " </tr>\n",
10008 " <tr>\n",
10009 " <th>42</th>\n",
10010 " <td>064eFGemsrDcMvgRZ0gqtw</td>\n",
10011 " <td>The Rolling Stones</td>\n",
10012 " <td>Undercover (2009 Re-Mastered)</td>\n",
10013 " </tr>\n",
10014 " <tr>\n",
10015 " <th>43</th>\n",
10016 " <td>0hxrNynMDh5QeyALlf1CdS</td>\n",
10017 " <td>The Rolling Stones</td>\n",
10018 " <td>Still Life</td>\n",
10019 " </tr>\n",
10020 " <tr>\n",
10021 " <th>44</th>\n",
10022 " <td>1YvnuYGlblQ5vLnOhaZzpn</td>\n",
10023 " <td>The Rolling Stones</td>\n",
10024 " <td>Tattoo You (2009 Re-Mastered)</td>\n",
10025 " </tr>\n",
10026 " <tr>\n",
10027 " <th>45</th>\n",
10028 " <td>2wZgoXS06wSdu9C0ZJOvlc</td>\n",
10029 " <td>The Rolling Stones</td>\n",
10030 " <td>Emotional Rescue (2009 Re-Mastered)</td>\n",
10031 " </tr>\n",
10032 " <tr>\n",
10033 " <th>46</th>\n",
10034 " <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
10035 " <td>The Rolling Stones</td>\n",
10036 " <td>Some Girls</td>\n",
10037 " </tr>\n",
10038 " <tr>\n",
10039 " <th>47</th>\n",
10040 " <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
10041 " <td>The Rolling Stones</td>\n",
10042 " <td>Some Girls (Deluxe Version)</td>\n",
10043 " </tr>\n",
10044 " </tbody>\n",
10045 "</table>\n",
10046 "</div>"
10047 ],
10048 "text/plain": [
10049 " _id artist_name \\\n",
10050 "0 5XfJmldgWzrc1AIdbBaVZn The Beatles \n",
10051 "1 5ju5Ouzan3QwXqQt1Tihbh The Beatles \n",
10052 "2 2pCqZLeavM2BMovJXsJEIV The Beatles \n",
10053 "3 2Pqkn9Dq2DFtdfkKAeqgMd The Beatles \n",
10054 "4 47bcKzmKgmMPHXNVOWpLiu The Beatles \n",
10055 "5 03Qh833fEdVT30Pfs93ea6 The Beatles \n",
10056 "6 6P9yO0ukhOx3dvmhGKeYoC The Beatles \n",
10057 "7 1PULmKbHeOqlkIwcDMNwD4 The Beatles \n",
10058 "8 0PYyrqs9NXtxPhf0CZkq2L The Beatles \n",
10059 "9 3OdI6e43crvyAHhaqpxSyz The Beatles \n",
10060 "10 19K3IHYeVkUTjcBHGfbCOi The Beatles \n",
10061 "11 7BgGBZndAvDlKOcwe5rscZ The Beatles \n",
10062 "12 71Mwd9tntFQYUk4k2DwA0D The Beatles \n",
10063 "13 1DBkJIEoeHrTX4WCBQGcCi Radiohead \n",
10064 "14 3nkEsxmIX0zRNXGAexaHAn The Beatles \n",
10065 "15 7gDXyW16byCQOgK965BRzn The Beatles \n",
10066 "16 6vuykQgDLUCiZ7YggIpLM9 Radiohead \n",
10067 "17 47xaqCsJcYFWqD1gwujl1T Radiohead \n",
10068 "18 7eyQXxuf2nGj9d2367Gi5f Radiohead \n",
10069 "19 36lJLPoPPOKNFddTAcirnc Radiohead \n",
10070 "20 6Eo5EkmdLvZrONzi046iC2 Radiohead \n",
10071 "21 1oW3v5Har9mvXnGk0x4fHm Radiohead \n",
10072 "22 6svTt5o2lUgIrgYDKVmdnD Radiohead \n",
10073 "23 6V9YnBmFjWmXCBaUVRCVXP Radiohead \n",
10074 "24 19RUXBFyM4PpmrLRdtqWbp Radiohead \n",
10075 "25 7dxKtc08dYeRVHt3p9CZJn Radiohead \n",
10076 "26 500FEaUzn8lN9zWFyZG5C2 Radiohead \n",
10077 "27 6400dnyeDyD2mIFHfkwHXN Radiohead \n",
10078 "28 4g9Jfls8z2nbQxj5PiXkiy The Rolling Stones \n",
10079 "29 4fhWcu56Bbh5wALuTouFVW The Rolling Stones \n",
10080 "30 3PbRKFafwE7Of8e4dTee72 The Rolling Stones \n",
10081 "31 5eTqRwTGKPBUiUuN1rFaXD The Rolling Stones \n",
10082 "32 3CHu7qW160uqPZHW3TMZ1l The Rolling Stones \n",
10083 "33 4FTHynKEtuP7eppERNfjyG The Rolling Stones \n",
10084 "34 50UGtgNA5bq1c0BDjPfmbD The Rolling Stones \n",
10085 "35 0ZGddnvcVzHVHfE3WW1tV5 The Rolling Stones \n",
10086 "36 4M8Q1L9PZq0xK5tLUpO3jd The Rolling Stones \n",
10087 "37 62ZT16LY1phGM0O8x5qW1z The Rolling Stones \n",
10088 "38 1W1UJulgICjFDyYIMUwRs7 The Rolling Stones \n",
10089 "39 25mfHGJNQkluvIqedXHSx3 The Rolling Stones \n",
10090 "40 1TpcI1LEFVhBvDPSTMPGFG The Rolling Stones \n",
10091 "41 1WSfNoPDPzgyKFN6OSYWUx The Rolling Stones \n",
10092 "42 064eFGemsrDcMvgRZ0gqtw The Rolling Stones \n",
10093 "43 0hxrNynMDh5QeyALlf1CdS The Rolling Stones \n",
10094 "44 1YvnuYGlblQ5vLnOhaZzpn The Rolling Stones \n",
10095 "45 2wZgoXS06wSdu9C0ZJOvlc The Rolling Stones \n",
10096 "46 54sqbAXxR1jFfyXb1WvrHK The Rolling Stones \n",
10097 "47 6FjXxl9VLURGuubdXUn2J3 The Rolling Stones \n",
10098 "\n",
10099 " name \n",
10100 "0 Live At The Hollywood Bowl \n",
10101 "1 1 (Remastered) \n",
10102 "2 Let It Be (Remastered) \n",
10103 "3 Abbey Road (Remastered) \n",
10104 "4 Yellow Submarine (Remastered) \n",
10105 "5 The Beatles (Remastered) \n",
10106 "6 Magical Mystery Tour (Remastered) \n",
10107 "7 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n",
10108 "8 Revolver (Remastered) \n",
10109 "9 Rubber Soul (Remastered) \n",
10110 "10 Help! (Remastered) \n",
10111 "11 Beatles For Sale (Remastered) \n",
10112 "12 A Hard Day's Night (Remastered) \n",
10113 "13 The King Of Limbs \n",
10114 "14 With The Beatles (Remastered) \n",
10115 "15 Please Please Me (Remastered) \n",
10116 "16 A Moon Shaped Pool \n",
10117 "17 TKOL RMX 1234567 \n",
10118 "18 In Rainbows \n",
10119 "19 In Rainbows Disk 2 \n",
10120 "20 Com Lag: 2+2=5 \n",
10121 "21 Hail To the Thief \n",
10122 "22 I Might Be Wrong \n",
10123 "23 Amnesiac \n",
10124 "24 Kid A \n",
10125 "25 OK Computer \n",
10126 "26 The Bends \n",
10127 "27 Pablo Honey \n",
10128 "28 Blue & Lonesome \n",
10129 "29 Havana Moon (Live) \n",
10130 "30 Totally Stripped (Live) \n",
10131 "31 Live 1965: Music From Charlie Is My Darling (L... \n",
10132 "32 Shine A Light \n",
10133 "33 A Bigger Bang (2009 Re-Mastered) \n",
10134 "34 Live Licks \n",
10135 "35 Bridges To Babylon (2009 Re-Mastered) \n",
10136 "36 Stripped \n",
10137 "37 Voodoo Lounge (2009 Re-Mastered) \n",
10138 "38 Flashpoint \n",
10139 "39 Steel Wheels (2009 Re-Mastered) \n",
10140 "40 Dirty Work \n",
10141 "41 Dirty Work (Remastered 2009) \n",
10142 "42 Undercover (2009 Re-Mastered) \n",
10143 "43 Still Life \n",
10144 "44 Tattoo You (2009 Re-Mastered) \n",
10145 "45 Emotional Rescue (2009 Re-Mastered) \n",
10146 "46 Some Girls \n",
10147 "47 Some Girls (Deluxe Version) "
10148 ]
10149 },
10150 "execution_count": 54,
10151 "metadata": {},
10152 "output_type": "execute_result"
10153 }
10154 ],
10155 "source": [
10156 "pd.DataFrame(list(albums.find({}, ['artist_name', 'name'])))"
10157 ]
10158 },
10159 {
10160 "cell_type": "markdown",
10161 "metadata": {
10162 "collapsed": true
10163 },
10164 "source": [
10165 "Manually fix a couple of errors."
10166 ]
10167 },
10168 {
10169 "cell_type": "code",
10170 "execution_count": 85,
10171 "metadata": {},
10172 "outputs": [
10173 {
10174 "data": {
10175 "text/plain": [
10176 "<pymongo.results.UpdateResult at 0x7f4550282a88>"
10177 ]
10178 },
10179 "execution_count": 85,
10180 "metadata": {},
10181 "output_type": "execute_result"
10182 }
10183 ],
10184 "source": [
10185 "genius_tracks.update_many({'ctitle': 'revolution i'}, \n",
10186 " {'$set': {'ctitle': 'revolution 1'}})\n",
10187 "genius_tracks.update_many({'ctitle': 'when im sixtyfour'}, \n",
10188 " {'$set': {'ctitle': 'when im sixty four'}})\n",
10189 "genius_tracks.update_many({'ctitle': 'packt like sardines in a crushd tin box'}, \n",
10190 " {'$set': {'ctitle': 'packt like sardines in a crushed tin box'}})\n",
10191 "genius_tracks.update_many({'ctitle': 'a punchup at a wedding'}, \n",
10192 " {'$set': {'ctitle': 'a punch up at a wedding'}})\n",
10193 "genius_tracks.update_many({'ctitle': 'dollars cents'}, \n",
10194 " {'$set': {'ctitle': 'dollars and cents'}})\n",
10195 "genius_tracks.update_many({'ctitle': 'bullet proofi wish i was'}, \n",
10196 " {'$set': {'ctitle': 'bullet proof i wish i was'}})\n",
10197 "genius_tracks.update_many({'ctitle': 'jumpin jack flash'}, \n",
10198 " {'$set': {'ctitle': 'jumping jack flash'}})\n",
10199 "genius_tracks.update_many({'ctitle': 'far away eyes'}, \n",
10200 " {'$set': {'ctitle': 'faraway eyes'}})"
10201 ]
10202 },
10203 {
10204 "cell_type": "code",
10205 "execution_count": 86,
10206 "metadata": {},
10207 "outputs": [
10208 {
10209 "data": {
10210 "text/plain": [
10211 "(494, 554, 52)"
10212 ]
10213 },
10214 "execution_count": 86,
10215 "metadata": {},
10216 "output_type": "execute_result"
10217 }
10218 ],
10219 "source": [
10220 "in_both = set(g['ctitle'] for g in genius_tracks.find({}, ['ctitle']) if tracks.find({'ctitle': g['ctitle']}).count())\n",
10221 "genius_only = set(g['ctitle'] for g in genius_tracks.find({}, ['ctitle']) if not tracks.find({'ctitle': g['ctitle']}).count())\n",
10222 "spotify_only = set(s['ctitle'] for s in tracks.find({}, ['ctitle']) if not genius_tracks.find({'ctitle': s['ctitle']}).count())\n",
10223 "len(in_both), len(genius_only), len(spotify_only)"
10224 ]
10225 },
10226 {
10227 "cell_type": "markdown",
10228 "metadata": {},
10229 "source": [
10230 "### Copy the lyrics over<a name=\"copylyrics\"></a>\n",
10231 "Now can can connect the tracks, let's copy across the lyrics from the Genius collection into the Spotify collection. We'll calculate the lyrical density at the same time.\n",
10232 "\n",
10233 "* [Top](#top)"
10234 ]
10235 },
10236 {
10237 "cell_type": "code",
10238 "execution_count": 87,
10239 "metadata": {},
10240 "outputs": [],
10241 "source": [
10242 "for t in tracks.find({}, ['ctitle', 'duration_ms']):\n",
10243 " gts = genius_tracks.find({'ctitle': t['ctitle'], 'lyrics': {'$exists': True}}, ['lyrics', 'original_lyrics'])\n",
10244 " for gt in gts:\n",
10245 " tracks.update_one({'_id': t['_id']}, \n",
10246 " {'$set': {'lyrics': gt['lyrics'], \n",
10247 " 'original_lyrics': gt['original_lyrics'],\n",
10248 " 'lyrical_density': 1000 * len(gt['lyrics'].split()) / t['duration_ms']}})"
10249 ]
10250 },
10251 {
10252 "cell_type": "markdown",
10253 "metadata": {},
10254 "source": [
10255 "## Sentiment analysis<a name=\"sentimentanalysis\"></a>\n",
10256 "I couldn't find an easily-installable equivalent to the NRC corpus, so I'm using a sentiment analysis API endpoint from [Text Processing](http://text-processing.com/docs/sentiment.html).\n",
10257 "\n",
10258 "* [Top](#top)"
10259 ]
10260 },
10261 {
10262 "cell_type": "code",
10263 "execution_count": 88,
10264 "metadata": {
10265 "scrolled": true
10266 },
10267 "outputs": [],
10268 "source": [
10269 "for t in tracks.find({'lyrics': {'$exists': True}}, ['lyrics']):\n",
10270 " text = t['lyrics']\n",
10271 " if text:\n",
10272 " query = urllib.parse.urlencode({'text': text}).encode('ascii')\n",
10273 " headers = {'Accept': 'application/json',\n",
10274 " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n",
10275 " request = urllib.request.Request('http://text-processing.com/api/sentiment/', \n",
10276 " headers=headers, data=query)\n",
10277 " with urllib.request.urlopen(request) as f:\n",
10278 " response = json.loads(f.read().decode('utf-8'))\n",
10279 " tracks.update_one({'_id': t['_id']}, {'$set': {'sentiment': response}})"
10280 ]
10281 },
10282 {
10283 "cell_type": "code",
10284 "execution_count": 89,
10285 "metadata": {},
10286 "outputs": [
10287 {
10288 "data": {
10289 "text/plain": [
10290 "dict_keys(['track_number', 'time_signature', '_id', 'preview_url', 'sentiment', 'loudness', 'type', 'external_ids', 'uri', 'album_id', 'lyrics', 'lyrical_density', 'tempo', 'danceability', 'href', 'disc_number', 'available_markets', 'analysis_url', 'instrumentalness', 'artist_id', 'name', 'id', 'valence', 'external_urls', 'ctitle', 'track_href', 'duration_ms', 'artist_name', 'explicit', 'speechiness', 'artists', 'album', 'key', 'original_lyrics', 'popularity', 'acousticness', 'liveness', 'mode', 'energy'])"
10291 ]
10292 },
10293 "execution_count": 89,
10294 "metadata": {},
10295 "output_type": "execute_result"
10296 }
10297 ],
10298 "source": [
10299 "tracks.find_one({'sentiment': {'$exists': True}}).keys()"
10300 ]
10301 },
10302 {
10303 "cell_type": "code",
10304 "execution_count": 90,
10305 "metadata": {
10306 "scrolled": true
10307 },
10308 "outputs": [
10309 {
10310 "data": {
10311 "text/plain": [
10312 "{'_id': '74tlMxJ8wF0sNp93GBEPdK',\n",
10313 " 'acousticness': 0.00352,\n",
10314 " 'album': {'album_type': 'album',\n",
10315 " 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/22bE4uQ6baNwSHPVcDxLCe'},\n",
10316 " 'href': 'https://api.spotify.com/v1/artists/22bE4uQ6baNwSHPVcDxLCe',\n",
10317 " 'id': '22bE4uQ6baNwSHPVcDxLCe',\n",
10318 " 'name': 'The Rolling Stones',\n",
10319 " 'type': 'artist',\n",
10320 " 'uri': 'spotify:artist:22bE4uQ6baNwSHPVcDxLCe'}],\n",
10321 " 'available_markets': ['GB'],\n",
10322 " 'external_urls': {'spotify': 'https://open.spotify.com/album/3PbRKFafwE7Of8e4dTee72'},\n",
10323 " 'href': 'https://api.spotify.com/v1/albums/3PbRKFafwE7Of8e4dTee72',\n",
10324 " 'id': '3PbRKFafwE7Of8e4dTee72',\n",
10325 " 'images': [{'height': 640,\n",
10326 " 'url': 'https://i.scdn.co/image/4bd988736fe53e8109488f0f390cdfd5d119762d',\n",
10327 " 'width': 640},\n",
10328 " {'height': 300,\n",
10329 " 'url': 'https://i.scdn.co/image/b5c53642ccdaac3120aa766ce5e29d9c1b61794f',\n",
10330 " 'width': 300},\n",
10331 " {'height': 64,\n",
10332 " 'url': 'https://i.scdn.co/image/9c6e2872cbd2688c528d5d43c57651d12c19eec1',\n",
10333 " 'width': 64}],\n",
10334 " 'name': 'Totally Stripped (Live)',\n",
10335 " 'type': 'album',\n",
10336 " 'uri': 'spotify:album:3PbRKFafwE7Of8e4dTee72'},\n",
10337 " 'album_id': '3PbRKFafwE7Of8e4dTee72',\n",
10338 " 'analysis_url': 'https://api.spotify.com/v1/audio-analysis/74tlMxJ8wF0sNp93GBEPdK',\n",
10339 " 'artist_id': '22bE4uQ6baNwSHPVcDxLCe',\n",
10340 " 'artist_name': 'The Rolling Stones',\n",
10341 " 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/22bE4uQ6baNwSHPVcDxLCe'},\n",
10342 " 'href': 'https://api.spotify.com/v1/artists/22bE4uQ6baNwSHPVcDxLCe',\n",
10343 " 'id': '22bE4uQ6baNwSHPVcDxLCe',\n",
10344 " 'name': 'The Rolling Stones',\n",
10345 " 'type': 'artist',\n",
10346 " 'uri': 'spotify:artist:22bE4uQ6baNwSHPVcDxLCe'}],\n",
10347 " 'available_markets': ['GB'],\n",
10348 " 'ctitle': 'honky tonk women',\n",
10349 " 'danceability': 0.367,\n",
10350 " 'disc_number': 1,\n",
10351 " 'duration_ms': 293773,\n",
10352 " 'energy': 0.962,\n",
10353 " 'explicit': False,\n",
10354 " 'external_ids': {'isrc': 'GBCBR1500392'},\n",
10355 " 'external_urls': {'spotify': 'https://open.spotify.com/track/74tlMxJ8wF0sNp93GBEPdK'},\n",
10356 " 'href': 'https://api.spotify.com/v1/tracks/74tlMxJ8wF0sNp93GBEPdK',\n",
10357 " 'id': '74tlMxJ8wF0sNp93GBEPdK',\n",
10358 " 'instrumentalness': 0.000172,\n",
10359 " 'key': 0,\n",
10360 " 'liveness': 0.962,\n",
10361 " 'loudness': -5.589,\n",
10362 " 'lyrical_density': 0.48336640875778236,\n",
10363 " 'lyrics': \"i met a gin-soaked barroom queen in memphis she tried to take me upstairs for a ride she had to heave me right across her shoulder cause i just can't seem to drink it off my mind it's the honky tonk women gimme, gimme, gimme the honky tonk blues i laid a divorcee in new york city i had to put up some kind of a fight the lady then she covered me with roses she blew my nose and then she blew my mind it's the honky tonk women gimme, gimme, gimme the honky tonk blues strollin' on the boulevards of paris naked as the day that i will die the sailors, they're so charming there in paris but i just don't seem to sail you off my mind it's the honky tonk women gimme, gimme, gimme the honky tonk blues\",\n",
10364 " 'mode': 1,\n",
10365 " 'name': 'Honky Tonk Women - Live',\n",
10366 " 'original_lyrics': \"\\n\\nI met a gin-soaked barroom queen in Memphis\\nShe tried to take me upstairs for a ride\\nShe had to heave me right across her shoulder\\nCause I just can't seem to drink it off my mind\\n\\nIt's the honky tonk women\\nGimme, gimme, gimme the honky tonk blues\\n\\nI laid a divorcee in New York City\\nI had to put up some kind of a fight\\nThe lady then she covered me with roses\\nShe blew my nose and then she blew my mind\\n\\nIt's the honky tonk women\\nGimme, gimme, gimme the honky tonk blues\\n\\nStrollin' on the boulevards of Paris\\nNaked as the day that I will die\\nThe sailors, they're so charming there in Paris\\nBut I just don't seem to sail you off my mind\\n\\nIt's the honky tonk women\\nGimme, gimme, gimme the honky tonk blues\\n\\n\",\n",
10367 " 'popularity': 19,\n",
10368 " 'preview_url': 'https://p.scdn.co/mp3-preview/671f51874a70b3f786fe38b452f2c0fa0e64356b?cid=null',\n",
10369 " 'sentiment': {'label': 'neutral',\n",
10370 " 'probability': {'neg': 0.6068924635372548,\n",
10371 " 'neutral': 0.6112522000410702,\n",
10372 " 'pos': 0.3931075364627452}},\n",
10373 " 'speechiness': 0.11,\n",
10374 " 'tempo': 114.303,\n",
10375 " 'time_signature': 4,\n",
10376 " 'track_href': 'https://api.spotify.com/v1/tracks/74tlMxJ8wF0sNp93GBEPdK',\n",
10377 " 'track_number': 2,\n",
10378 " 'type': 'audio_features',\n",
10379 " 'uri': 'spotify:track:74tlMxJ8wF0sNp93GBEPdK',\n",
10380 " 'valence': 0.426}"
10381 ]
10382 },
10383 "execution_count": 90,
10384 "metadata": {},
10385 "output_type": "execute_result"
10386 }
10387 ],
10388 "source": [
10389 "tracks.find_one({'sentiment': {'$exists': True}})"
10390 ]
10391 },
10392 {
10393 "cell_type": "code",
10394 "execution_count": 91,
10395 "metadata": {},
10396 "outputs": [
10397 {
10398 "data": {
10399 "text/plain": [
10400 "(606, 65)"
10401 ]
10402 },
10403 "execution_count": 91,
10404 "metadata": {},
10405 "output_type": "execute_result"
10406 }
10407 ],
10408 "source": [
10409 "tracks.find({'sentiment': {'$exists': True}}).count(), tracks.find({'sentiment': {'$exists': False}}).count()"
10410 ]
10411 },
10412 {
10413 "cell_type": "code",
10414 "execution_count": 92,
10415 "metadata": {},
10416 "outputs": [
10417 {
10418 "data": {
10419 "text/plain": [
10420 "8"
10421 ]
10422 },
10423 "execution_count": 92,
10424 "metadata": {},
10425 "output_type": "execute_result"
10426 }
10427 ],
10428 "source": [
10429 "tracks.find({'sentiment': {'$exists': False}, 'lyrics': {'$exists': True}}).count()"
10430 ]
10431 },
10432 {
10433 "cell_type": "code",
10434 "execution_count": 97,
10435 "metadata": {},
10436 "outputs": [
10437 {
10438 "data": {
10439 "text/html": [
10440 "<div>\n",
10441 "<style>\n",
10442 " .dataframe thead tr:only-child th {\n",
10443 " text-align: right;\n",
10444 " }\n",
10445 "\n",
10446 " .dataframe thead th {\n",
10447 " text-align: left;\n",
10448 " }\n",
10449 "\n",
10450 " .dataframe tbody tr th {\n",
10451 " vertical-align: top;\n",
10452 " }\n",
10453 "</style>\n",
10454 "<table border=\"1\" class=\"dataframe\">\n",
10455 " <thead>\n",
10456 " <tr style=\"text-align: right;\">\n",
10457 " <th></th>\n",
10458 " <th>_id</th>\n",
10459 " <th>artist_name</th>\n",
10460 " <th>lyrics</th>\n",
10461 " <th>name</th>\n",
10462 " </tr>\n",
10463 " </thead>\n",
10464 " <tbody>\n",
10465 " <tr>\n",
10466 " <th>0</th>\n",
10467 " <td>47DgFAFnhfwoSko23P7pz5</td>\n",
10468 " <td>George Martin</td>\n",
10469 " <td></td>\n",
10470 " <td>Yellow Submarine In Pepperland - Remastered 2009</td>\n",
10471 " </tr>\n",
10472 " <tr>\n",
10473 " <th>1</th>\n",
10474 " <td>2z1p43SNSbeowzy8WdYHNk</td>\n",
10475 " <td>The Beatles</td>\n",
10476 " <td></td>\n",
10477 " <td>Flying - Remastered 2009</td>\n",
10478 " </tr>\n",
10479 " <tr>\n",
10480 " <th>2</th>\n",
10481 " <td>3gKuywOm38axM8sJGq6Laq</td>\n",
10482 " <td>Radiohead</td>\n",
10483 " <td></td>\n",
10484 " <td>MK 1</td>\n",
10485 " </tr>\n",
10486 " <tr>\n",
10487 " <th>3</th>\n",
10488 " <td>2uYSbsxAMmK1awUl06T7ix</td>\n",
10489 " <td>Radiohead</td>\n",
10490 " <td></td>\n",
10491 " <td>MK 2</td>\n",
10492 " </tr>\n",
10493 " <tr>\n",
10494 " <th>4</th>\n",
10495 " <td>1q6X5sJSWQ2QnqvPghR0Kr</td>\n",
10496 " <td>Radiohead</td>\n",
10497 " <td></td>\n",
10498 " <td>I Am Citizen Insane</td>\n",
10499 " </tr>\n",
10500 " <tr>\n",
10501 " <th>5</th>\n",
10502 " <td>4blz5SBUxKbtDNwMWstGNG</td>\n",
10503 " <td>Radiohead</td>\n",
10504 " <td></td>\n",
10505 " <td>Where Bluebirds Fly</td>\n",
10506 " </tr>\n",
10507 " <tr>\n",
10508 " <th>6</th>\n",
10509 " <td>2zYrFer4QGSQkk5aUawfHB</td>\n",
10510 " <td>Radiohead</td>\n",
10511 " <td></td>\n",
10512 " <td>Hunting Bears</td>\n",
10513 " </tr>\n",
10514 " <tr>\n",
10515 " <th>7</th>\n",
10516 " <td>4DPQvbgSM0IdX4O3HOACwL</td>\n",
10517 " <td>Radiohead</td>\n",
10518 " <td></td>\n",
10519 " <td>Treefingers</td>\n",
10520 " </tr>\n",
10521 " </tbody>\n",
10522 "</table>\n",
10523 "</div>"
10524 ],
10525 "text/plain": [
10526 " _id artist_name lyrics \\\n",
10527 "0 47DgFAFnhfwoSko23P7pz5 George Martin \n",
10528 "1 2z1p43SNSbeowzy8WdYHNk The Beatles \n",
10529 "2 3gKuywOm38axM8sJGq6Laq Radiohead \n",
10530 "3 2uYSbsxAMmK1awUl06T7ix Radiohead \n",
10531 "4 1q6X5sJSWQ2QnqvPghR0Kr Radiohead \n",
10532 "5 4blz5SBUxKbtDNwMWstGNG Radiohead \n",
10533 "6 2zYrFer4QGSQkk5aUawfHB Radiohead \n",
10534 "7 4DPQvbgSM0IdX4O3HOACwL Radiohead \n",
10535 "\n",
10536 " name \n",
10537 "0 Yellow Submarine In Pepperland - Remastered 2009 \n",
10538 "1 Flying - Remastered 2009 \n",
10539 "2 MK 1 \n",
10540 "3 MK 2 \n",
10541 "4 I Am Citizen Insane \n",
10542 "5 Where Bluebirds Fly \n",
10543 "6 Hunting Bears \n",
10544 "7 Treefingers "
10545 ]
10546 },
10547 "execution_count": 97,
10548 "metadata": {},
10549 "output_type": "execute_result"
10550 }
10551 ],
10552 "source": [
10553 "pd.DataFrame(list(tracks.find({'sentiment': {'$exists': False}, \n",
10554 " 'lyrics': {'$exists': True}}, \n",
10555 " ['name', 'artist_name', 'lyrics'])))"
10556 ]
10557 },
10558 {
10559 "cell_type": "code",
10560 "execution_count": 99,
10561 "metadata": {},
10562 "outputs": [
10563 {
10564 "data": {
10565 "text/plain": [
10566 "[{'_id': '47DgFAFnhfwoSko23P7pz5',\n",
10567 " 'artist_name': 'George Martin',\n",
10568 " 'lyrics': '',\n",
10569 " 'name': 'Yellow Submarine In Pepperland - Remastered 2009',\n",
10570 " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n",
10571 " {'_id': '2z1p43SNSbeowzy8WdYHNk',\n",
10572 " 'artist_name': 'The Beatles',\n",
10573 " 'lyrics': '',\n",
10574 " 'name': 'Flying - Remastered 2009',\n",
10575 " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n",
10576 " {'_id': '3gKuywOm38axM8sJGq6Laq',\n",
10577 " 'artist_name': 'Radiohead',\n",
10578 " 'lyrics': '',\n",
10579 " 'name': 'MK 1',\n",
10580 " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n",
10581 " {'_id': '2uYSbsxAMmK1awUl06T7ix',\n",
10582 " 'artist_name': 'Radiohead',\n",
10583 " 'lyrics': '',\n",
10584 " 'name': 'MK 2',\n",
10585 " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n",
10586 " {'_id': '1q6X5sJSWQ2QnqvPghR0Kr',\n",
10587 " 'artist_name': 'Radiohead',\n",
10588 " 'lyrics': '',\n",
10589 " 'name': 'I Am Citizen Insane',\n",
10590 " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n",
10591 " {'_id': '4blz5SBUxKbtDNwMWstGNG',\n",
10592 " 'artist_name': 'Radiohead',\n",
10593 " 'lyrics': '',\n",
10594 " 'name': 'Where Bluebirds Fly',\n",
10595 " 'original_lyrics': '\\n\\n[Distorted \"Somewhere Over The Rainbow\" lyrics]\\n\\n'},\n",
10596 " {'_id': '2zYrFer4QGSQkk5aUawfHB',\n",
10597 " 'artist_name': 'Radiohead',\n",
10598 " 'lyrics': '',\n",
10599 " 'name': 'Hunting Bears',\n",
10600 " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n",
10601 " {'_id': '4DPQvbgSM0IdX4O3HOACwL',\n",
10602 " 'artist_name': 'Radiohead',\n",
10603 " 'lyrics': '',\n",
10604 " 'name': 'Treefingers',\n",
10605 " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'}]"
10606 ]
10607 },
10608 "execution_count": 99,
10609 "metadata": {},
10610 "output_type": "execute_result"
10611 }
10612 ],
10613 "source": [
10614 "list(tracks.find({'sentiment': {'$exists': False}, \n",
10615 " 'lyrics': {'$exists': True}}, \n",
10616 " ['name', 'artist_name', 'lyrics', 'original_lyrics']))"
10617 ]
10618 },
10619 {
10620 "cell_type": "code",
10621 "execution_count": 101,
10622 "metadata": {},
10623 "outputs": [
10624 {
10625 "data": {
10626 "text/plain": [
10627 "<pymongo.results.UpdateResult at 0x7f454b640bc8>"
10628 ]
10629 },
10630 "execution_count": 101,
10631 "metadata": {},
10632 "output_type": "execute_result"
10633 }
10634 ],
10635 "source": [
10636 "tracks.update_many({'lyrics': ''}, {'$unset': {'lyrics': ''}})"
10637 ]
10638 },
10639 {
10640 "cell_type": "code",
10641 "execution_count": 102,
10642 "metadata": {},
10643 "outputs": [
10644 {
10645 "data": {
10646 "text/html": [
10647 "<div>\n",
10648 "<style>\n",
10649 " .dataframe thead tr:only-child th {\n",
10650 " text-align: right;\n",
10651 " }\n",
10652 "\n",
10653 " .dataframe thead th {\n",
10654 " text-align: left;\n",
10655 " }\n",
10656 "\n",
10657 " .dataframe tbody tr th {\n",
10658 " vertical-align: top;\n",
10659 " }\n",
10660 "</style>\n",
10661 "<table border=\"1\" class=\"dataframe\">\n",
10662 " <thead>\n",
10663 " <tr style=\"text-align: right;\">\n",
10664 " <th></th>\n",
10665 " </tr>\n",
10666 " </thead>\n",
10667 " <tbody>\n",
10668 " </tbody>\n",
10669 "</table>\n",
10670 "</div>"
10671 ],
10672 "text/plain": [
10673 "Empty DataFrame\n",
10674 "Columns: []\n",
10675 "Index: []"
10676 ]
10677 },
10678 "execution_count": 102,
10679 "metadata": {},
10680 "output_type": "execute_result"
10681 }
10682 ],
10683 "source": [
10684 "pd.DataFrame(list(tracks.find({'sentiment': {'$exists': False}, \n",
10685 " 'lyrics': {'$exists': True}}, \n",
10686 " ['name', 'artist_name', 'lyrics'])))"
10687 ]
10688 },
10689 {
10690 "cell_type": "code",
10691 "execution_count": null,
10692 "metadata": {},
10693 "outputs": [],
10694 "source": []
10695 }
10696 ],
10697 "metadata": {
10698 "kernelspec": {
10699 "display_name": "Python 3",
10700 "language": "python",
10701 "name": "python3"
10702 },
10703 "language_info": {
10704 "codemirror_mode": {
10705 "name": "ipython",
10706 "version": 3
10707 },
10708 "file_extension": ".py",
10709 "mimetype": "text/x-python",
10710 "name": "python",
10711 "nbconvert_exporter": "python",
10712 "pygments_lexer": "ipython3",
10713 "version": "3.5.3"
10714 }
10715 },
10716 "nbformat": 4,
10717 "nbformat_minor": 1
10718 }