|
5 | 5 | "id": "cbad6136-196d-4e69-8958-cbe821e94f52", |
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | | - "## Sandbox for setlist repo" |
| 8 | + "# Sandbox for the [setlists repo](https://github.com/programming-concert-programming/setlists/)" |
| 9 | + ] |
| 10 | + }, |
| 11 | + { |
| 12 | + "cell_type": "markdown", |
| 13 | + "id": "c491b2ef-04b6-4263-b6d3-1ced43e68c89", |
| 14 | + "metadata": {}, |
| 15 | + "source": [ |
| 16 | + "[See this `index.md` file for a list of tasks](https://github.com/programming-concert-programming/setlists/blob/main/index.md).\n", |
| 17 | + "\n", |
| 18 | + "Minimally:\n", |
| 19 | + "- get an setlist.fm API key\n", |
| 20 | + "- use it and this code repo to find out what the concert the event_id `2bd1d8ce` refers to." |
9 | 21 | ] |
10 | 22 | }, |
11 | 23 | { |
|
16 | 28 | "## Workspace" |
17 | 29 | ] |
18 | 30 | }, |
| 31 | + { |
| 32 | + "cell_type": "code", |
| 33 | + "execution_count": null, |
| 34 | + "id": "fa2ad838-3309-433f-909a-03a3cb388150", |
| 35 | + "metadata": {}, |
| 36 | + "outputs": [], |
| 37 | + "source": [ |
| 38 | + "# To get started:\n", |
| 39 | + "import setlistfm_events_api" |
| 40 | + ] |
| 41 | + }, |
19 | 42 | { |
20 | 43 | "cell_type": "code", |
21 | 44 | "execution_count": null, |
|
41 | 64 | ] |
42 | 65 | }, |
43 | 66 | { |
44 | | - "cell_type": "code", |
45 | | - "execution_count": null, |
46 | | - "id": "fa2ad838-3309-433f-909a-03a3cb388150", |
| 67 | + "cell_type": "markdown", |
| 68 | + "id": "56c0280b-f1c1-495d-8580-22bf7afc5424", |
47 | 69 | "metadata": {}, |
48 | | - "outputs": [], |
49 | 70 | "source": [ |
50 | | - "# To get started:\n", |
51 | | - "import setlistfm_events_api" |
| 71 | + "Preferably put your key in `utils`; failing that, create a variable here and use it as an argument in `setlistfm_events_api.get_event_data(event_id, api_key=XYZ)`" |
52 | 72 | ] |
53 | 73 | }, |
54 | 74 | { |
|
58 | 78 | "metadata": {}, |
59 | 79 | "outputs": [], |
60 | 80 | "source": [ |
61 | | - "event_id = \"138955b1\"\n", |
62 | | - "api_key = \"preferably put your key in `utils`; failing that, put it here and add it as an argument in the next line\"\n", |
63 | | - "a = setlistfm_events_api.get_event_data(event_id)" |
| 81 | + "event_id = \"2bd1d8ce\"\n", |
| 82 | + "setlistfm_events_api.get_event_data(event_id)" |
| 83 | + ] |
| 84 | + }, |
| 85 | + { |
| 86 | + "cell_type": "markdown", |
| 87 | + "id": "bcf959ec-9547-40ff-b52f-d5c38622bb75", |
| 88 | + "metadata": {}, |
| 89 | + "source": [ |
| 90 | + "So the task is an \"easter egg\" especially for Swifties and students at KCL ;)" |
64 | 91 | ] |
| 92 | + }, |
| 93 | + { |
| 94 | + "cell_type": "code", |
| 95 | + "execution_count": null, |
| 96 | + "id": "6b651d66-dc32-4035-b028-c6005fb3e891", |
| 97 | + "metadata": {}, |
| 98 | + "outputs": [], |
| 99 | + "source": [] |
65 | 100 | } |
66 | 101 | ], |
67 | 102 | "metadata": { |
|
80 | 115 | "name": "python", |
81 | 116 | "nbconvert_exporter": "python", |
82 | 117 | "pygments_lexer": "ipython3", |
83 | | - "version": "3.12.7" |
| 118 | + "version": "3.13.7" |
84 | 119 | } |
85 | 120 | }, |
86 | 121 | "nbformat": 4, |
|
0 commit comments