Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| lehrkraefte:blc:informatik:social-media-export [2026/02/10 07:22] – [Social Media Meta-Daten] Ivo Blöchliger | lehrkraefte:blc:informatik:social-media-export [2026/02/10 10:55] (current) – [Andere Formate] Ivo Blöchliger | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| import json | import json | ||
| - | with open(' | + | with open(' |
| data = json.load(f) | data = json.load(f) | ||
| </ | </ | ||
| Line 41: | Line 41: | ||
| <code python> | <code python> | ||
| # Daten in der Variable data eingelesen | # Daten in der Variable data eingelesen | ||
| - | print(f" | + | print(f" |
| print(f" | print(f" | ||
| </ | </ | ||
| Line 66: | Line 66: | ||
| ==== Andere Formate ==== | ==== Andere Formate ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code python> | ||
| + | zeit = " | ||
| + | time = datetime.strptime(zeit, | ||
| + | </ | ||
| + | |||
| + | Instagramm liefert einen Timestamp. Versuchen Sie '' | ||
| + | |||
| Eventuell gibt es für das vorliegende Format bereits einen Parser, sonst Format selbst beschreiben und mit | Eventuell gibt es für das vorliegende Format bereits einen Parser, sonst Format selbst beschreiben und mit | ||
| [[https:// | [[https:// | ||
| ====== Beispielcodes und -Daten ====== | ====== Beispielcodes und -Daten ====== | ||
| - | * YouTube Watch history im JSON-Format: {{lehrkraefte:blc: | + | * [[https:// |
| - | * Beispiel-Codes und Daten für JSON und CSV: {{lehrkraefte: | + | |