Created
May 15, 2017 15:04
-
-
Save pddg/72c013fd0eb23152a7f7aae3759220f5 to your computer and use it in GitHub Desktop.
iTunesAPI sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.request import urlopen | |
import json | |
res = urlopen("https://itunes.apple.com/search?term=beatles&media=music&entity=album&country=jp") | |
j = json.loads(res.read().decode("utf-8")) | |
for i, result in enumerate(j["results"]): | |
print(i, result["collectionName"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 The Beatles Box Set | |
1 The Beatles 1967-1970 (The Blue Album) | |
2 The Beatles 1962-1966 (The Red Album) | |
3 Abbey Road | |
4 The Beatles (White Album) | |
5 Let It Be | |
6 Sgt. Pepper's Lonely Hearts Club Band (Deluxe Edition) | |
7 Rubber Soul | |
8 1 (2015 Version) | |
9 Love | |
10 Revolver | |
11 Sgt. Pepper's Lonely Hearts Club Band | |
12 Past Masters, Vols. 1 & 2 | |
13 Thank You, Beatles - EP | |
14 On Air - Live at the BBC, Vol. 2 | |
15 Help! | |
16 A Hard Day's Night | |
17 Live at the BBC | |
18 Magical Mystery Tour | |
19 Live at the Hollywood Bowl | |
20 Please Please Me | |
21 With The Beatles | |
22 Beatles For Sale | |
23 Tomorrow Never Knows | |
24 Anthology Highlights | |
25 In Bossa: Bossa Nova Covers of the Greatest Hits from Beatles | |
26 Glee Sings the Beatles | |
27 Let It Be... Naked | |
28 Anthology 3 | |
29 Yellow Submarine | |
30 Anthology 1 | |
31 Anthology 2 | |
32 Yellow Submarine Songtrack | |
33 ベスト・カヴァーズ!ソングス・オブ・ザ・ビートルズ 1967-1970 | |
34 The Beatles In Bossa | |
35 ベスト・カヴァーズ!ソングス・オブ・ザ・ビートルズ 1962-1966 | |
36 Anthology Box Set | |
37 ウクレレ ビートルズ 2 | |
38 And I Love Her ~ビートルズの調べ~ | |
39 Skankin' Beatles (Red) - All You Need Is Ska | |
40 KIDS BOSSA presents Beatles Covers | |
41 Plays The Beatles Bossanova cover | |
42 The U.S. Albums | |
43 Keiko Lee sings THE BEATLES | |
44 From Yesterday to Penny Lane - Göran Söllscher Plays the Beatles | |
45 Go Go Bossa - Cafe Beatles | |
46 YESTERDAY~ビートルズ・コレクション | |
47 Butchering the Beatles - A Headbashing Tribute | |
48 Blackbird - The Beatles Album | |
49 サーフ・ギター・ビートルズ (Surf Guitar Style Covers of the Beatles Songs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment