diff --git a/notebooks/make_df.ipynb b/notebooks/make_df.ipynb index 9af3968..4b579a4 100644 --- a/notebooks/make_df.ipynb +++ b/notebooks/make_df.ipynb @@ -2,221 +2,42 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "ffcab11d", "metadata": {}, "outputs": [], "source": [ - "import pandas as pd" + "import pandas as pd\n", + "import re\n", + "import pytz\n", + "import os\n", + "from timezonefinder import TimezoneFinder\n", + "from datetime import datetime\n", + "import subprocess" ] }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "a4cda272", "metadata": {}, "outputs": [], "source": [ - "df: pd.DataFrame = pd.read_json(\"../temp/file_info.json\", orient='records')" + "df: pd.DataFrame = pd.read_json(\"../temp/file_info.json\", orient='records')\n", + "df.head(5)" ] }, { "cell_type": "code", - "execution_count": 3, - "id": "09ee7182", - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
| \n", - " | Date | \n", - "Media Type | \n", - "Location | \n", - "Download Link | \n", - "Media Download Url | \n", - "
|---|---|---|---|---|---|
| 0 | \n", - "2025-11-29 04:50:47+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 44.110836, -94.217804 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 1 | \n", - "2025-11-29 04:49:56+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 44.110767, -94.217705 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 2 | \n", - "2025-11-26 14:23:27+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 44.354908, -93.96698 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 3 | \n", - "2025-11-26 14:18:45+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 44.355003, -93.96696 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 4 | \n", - "2025-11-16 17:58:59+00:00 | \n", - "Image | \n", - "Latitude, Longitude: 46.184643, -94.363495 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 5 | \n", - "2025-11-12 02:10:34+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 44.354897, -93.96707 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 6 | \n", - "2025-11-07 04:43:52+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 44.354797, -93.96702 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 7 | \n", - "2025-10-27 21:50:11+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 44.354794, -93.967026 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 8 | \n", - "2025-10-16 06:39:29+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 40.4103, -104.70806 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "
| 9 | \n", - "2025-10-14 20:46:28+00:00 | \n", - "Video | \n", - "Latitude, Longitude: 40.432137, -104.76975 | \n", - "https://app.snapchat.com/dmd/memories?uid=098c... | \n", - "https://us-east1-aws.api.snapchat.com/dmd/mm?u... | \n", - "