Skip to content
Snippets Groups Projects
Verified Commit 03cdb561 authored by Alexander Dunkel's avatar Alexander Dunkel
Browse files

fix: Instagram API change

parent 857e4fd3
No related branches found
No related tags found
No related merge requests found
......@@ -263,7 +263,7 @@ Load Instagram data for a specific Location ID. Get the location ID from a searc
```python
location_id = "1893214" # "Großer Garten" Location
query_url = f'https://www.instagram.com/explore/locations/{location_id}/?__a=1&__d=dis'
query_url = f'https://i.instagram.com/api/v1/locations/web_info/?location_id={location_id}&show_nearby=false'
```
<div class="alert alert-warning" role="alert" style="color: black;">
......@@ -282,20 +282,6 @@ query_url = f'https://www.instagram.com/explore/locations/{location_id}/?__a=1&_
This is called an f-string, <a href="https://realpython.com/python-f-strings/">a convenient python convention</a> to concat strings and variables.
</details>
```python
from IPython.core.display import HTML
display(HTML(tools.print_link(query_url, location_id)))
```
<div style="width:500px">
<ul>
<li><strong>If you're not signed in:</strong> Chances are high that you're seeing a "Login" page. Since we are working in a workshop, only very few
requests to Instagram non-login API are allowed.</li>
<li>otherwise, you'll see a <strong>json object</strong> with the latest feed content</li>
<li>In the following, we will try to <strong>retrieve this json object</strong> and display it.</li>
</ul>
</div>
<div class="alert alert-info" role="alert" style="color: black;">
<details><summary><strong>Use your own json, in case automatic download did not work.</strong></summary>
......@@ -303,9 +289,9 @@ display(HTML(tools.print_link(query_url, location_id)))
<ul>
<li>Since it is likely that access without login will not be possible for all in the workshop,
we have provided <strong>a sample json</strong>, that will be retrieved if no access is possible</li>
<li><strong>If automatic download didn't work above</strong>, you can use your own json below, by saving the result from the link above (e.g. park.json) and moving
<li><strong>If automatic download does not work below</strong>, the code will automatically retrieve the archive json </li>
<li>you can use your own json below, by saving a (e.g. park.json) and moving
it, via drag-and-drop, to the <strong>out</strong> folder on the left.</li>
<li>This is optional, we also provide a sample download link that will automatically request alternate data</li>
</ul>
</div>
</details>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment