From 00a7844d86ad9c64a1888640935093e19ef01a61 Mon Sep 17 00:00:00 2001 From: Varsha Kumar Date: Tue, 9 Jul 2024 13:28:55 +0200 Subject: [PATCH 1/2] feat: instagram get comments from post --- .../Instagram_Get_comments_from_post.ipynb | 510 ++++++++++++++++++ 1 file changed, 510 insertions(+) create mode 100644 Instagram/Instagram_Get_comments_from_post.ipynb diff --git a/Instagram/Instagram_Get_comments_from_post.ipynb b/Instagram/Instagram_Get_comments_from_post.ipynb new file mode 100644 index 0000000000..89257ec454 --- /dev/null +++ b/Instagram/Instagram_Get_comments_from_post.ipynb @@ -0,0 +1,510 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "rocky-cardiff", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "\"Instagram.png\"" + ] + }, + { + "cell_type": "markdown", + "id": "judicial-headline", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "# Instagram - Get comments from post\n", + "Give Feedback | Bug report" + ] + }, + { + "cell_type": "markdown", + "id": "1cef8cab-e783-4589-b2c4-c21ee380c773", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "**Tags:** #instagram #comments #snippet #content" + ] + }, + { + "cell_type": "markdown", + "id": "naas-author", + "metadata": { + "papermill": {}, + "tags": [ + "naas" + ] + }, + "source": [ + "**Author:** [Varsha Kumar](https://www.linkedin.com/in/varsha-kumar-590466305/)" + ] + }, + { + "cell_type": "markdown", + "id": "8edddd04-a2af-47f7-82aa-a9108cdcd3d4", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "**Last update:** 2024-07-09 (Created: 2024-07-09)" + ] + }, + { + "cell_type": "markdown", + "id": "naas-description", + "metadata": { + "papermill": {}, + "tags": [ + "description" + ] + }, + "source": [ + "**Description:** This notebook allows users to extract comments from an Instagram post." + ] + }, + { + "cell_type": "markdown", + "id": "88ed8bb2-2694-4848-a3ef-afc0f4e65e07", + "metadata": {}, + "source": [ + "### How to retrive API key with apify" + ] + }, + { + "cell_type": "markdown", + "id": "0fca1344-877b-417d-94f0-1f024a029523", + "metadata": {}, + "source": [ + "1. Go to https://apify.com.\n", + "2. Click \"Sign up for free\" and use your google account to sign up.\n", + "3. Once your account has been created, navigate to \"Settings\" on the left panel of the screen.\n", + "4. Here you will click on the tab labeled \"Integrations\" where your personal API token that was automatically generated with sign up will be.\n", + "5. Copy that token and use it to extract data!" + ] + }, + { + "cell_type": "markdown", + "id": "input_cell", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "## Input" + ] + }, + { + "cell_type": "markdown", + "id": "import_cell", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "### Import libraries" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "d40e70c0-a388-417b-a50f-c50bb82cc0b3", + "metadata": { + "execution": { + "iopub.execute_input": "2024-07-09T11:24:56.287151Z", + "iopub.status.busy": "2024-07-09T11:24:56.286708Z", + "iopub.status.idle": "2024-07-09T11:24:57.009265Z", + "shell.execute_reply": "2024-07-09T11:24:57.008625Z", + "shell.execute_reply.started": "2024-07-09T11:24:56.287072Z" + }, + "papermill": {}, + "tags": [] + }, + "outputs": [], + "source": [ + "import requests\n", + "import pandas as pd\n", + "import json\n", + "import time" + ] + }, + { + "cell_type": "markdown", + "id": "5c3c12ca-5f3e-411a-aa54-c2b4b612a91d", + "metadata": { + "execution": { + "iopub.execute_input": "2022-03-17T10:12:43.371273Z", + "iopub.status.busy": "2022-03-17T10:12:43.371011Z", + "iopub.status.idle": "2022-03-17T10:12:43.374551Z", + "shell.execute_reply": "2022-03-17T10:12:43.373882Z", + "shell.execute_reply.started": "2022-03-17T10:12:43.371208Z" + }, + "papermill": {}, + "tags": [] + }, + "source": [ + "### Setup variables\n", + "- `apify_token`: personal token apify creates to access data\n", + "- `post_url`: link to the instagram post\n", + "- `output_csv`: excel file" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "ce903236-60d1-4087-a31e-9321f2df6112", + "metadata": { + "execution": { + "iopub.execute_input": "2024-07-09T11:27:08.990532Z", + "iopub.status.busy": "2024-07-09T11:27:08.990077Z", + "iopub.status.idle": "2024-07-09T11:27:08.996063Z", + "shell.execute_reply": "2024-07-09T11:27:08.995332Z", + "shell.execute_reply.started": "2024-07-09T11:27:08.990491Z" + }, + "papermill": {}, + "tags": [] + }, + "outputs": [], + "source": [ + "apify_token = \"apify_api_gXWnLEPiE7wC8ALUwQkJ0QcdbuQzU8xxxxxx\"\n", + "post_url = \"https://www.instagram.com/p/Cn0cUc7KelU/\"\n", + "output_csv = f\"{post_url.split('https://www.instagram.com/')[1].replace('/', '_')}instagram_post_comments.csv\"" + ] + }, + { + "cell_type": "markdown", + "id": "model_cell", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "## Model" + ] + }, + { + "cell_type": "markdown", + "id": "5e04b21e-8ae9-4081-acc4-73f01fc39f3b", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "### Scrape post comments" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "legislative-taiwan", + "metadata": { + "execution": { + "iopub.execute_input": "2024-07-09T11:24:57.016559Z", + "iopub.status.busy": "2024-07-09T11:24:57.016149Z", + "iopub.status.idle": "2024-07-09T11:25:14.526775Z", + "shell.execute_reply": "2024-07-09T11:25:14.524819Z", + "shell.execute_reply.started": "2024-07-09T11:24:57.016528Z" + }, + "papermill": {}, + "tags": [] + }, + "outputs": [], + "source": [ + "# Define the input for the Instagram Comment Scraper actor\n", + "input_data = {\n", + " \"directUrls\": [post_url],\n", + " \"resultsType\": \"comments\",\n", + "}\n", + "\n", + "# Make a request to start the actor\n", + "start_actor_url = f\"https://api.apify.com/v2/acts/apify~instagram-comment-scraper/runs?token={apify_token}\"\n", + "response = requests.post(start_actor_url, json=input_data)\n", + "run_details = response.json()\n", + "\n", + "# Extract the run ID\n", + "run_id = run_details['data']['id']\n", + "\n", + "# Define the URL to fetch the actor run status\n", + "run_status_url = f\"https://api.apify.com/v2/acts/apify~instagram-comment-scraper/runs/{run_id}?token={apify_token}\"\n", + "\n", + "# Wait for the actor to finish\n", + "while True:\n", + " status_response = requests.get(run_status_url)\n", + " status_data = status_response.json()\n", + " if status_data['data']['status'] in ['SUCCEEDED', 'FAILED', 'ABORTED']:\n", + " break\n", + " time.sleep(5) # Wait for 5 seconds before checking again\n", + "\n", + "if status_data['data']['status'] == 'SUCCEEDED':\n", + " # Define the URL to fetch the results\n", + " dataset_id = status_data['data']['defaultDatasetId']\n", + " dataset_url = f\"https://api.apify.com/v2/datasets/{dataset_id}/items?token={apify_token}&format=json\"\n", + "\n", + " # Fetch the comments\n", + " comments_response = requests.get(dataset_url)\n", + " comments_data = comments_response.json()\n", + "\n", + "else:\n", + " print(f\"Actor run did not succeed. Status: {status_data['data']['status']}\")" + ] + }, + { + "cell_type": "markdown", + "id": "3d771a70-1245-4702-9014-324ae540d8ec", + "metadata": {}, + "source": [ + "### Dataframe structure function" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "01deb84d-abd7-4975-ab77-973fe84acf0f", + "metadata": { + "execution": { + "iopub.execute_input": "2024-07-09T11:25:14.527895Z", + "iopub.status.busy": "2024-07-09T11:25:14.527683Z", + "iopub.status.idle": "2024-07-09T11:25:14.536296Z", + "shell.execute_reply": "2024-07-09T11:25:14.535520Z", + "shell.execute_reply.started": "2024-07-09T11:25:14.527870Z" + } + }, + "outputs": [], + "source": [ + "def get_comments(\n", + " cid,\n", + " text,\n", + " username,\n", + " profile_picture,\n", + " timestamp,\n", + " likes_count\n", + "):\n", + " return {\n", + " \"ID\": cid,\n", + " \"TEXT\": text,\n", + " \"USERNAME\": username,\n", + " \"PROFILE_PICTURE\": profile_picture,\n", + " \"TIMESTAMP\": timestamp,\n", + " \"LIKES_COUNT\": likes_count\n", + " }" + ] + }, + { + "cell_type": "markdown", + "id": "output_cell", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "## Output" + ] + }, + { + "cell_type": "markdown", + "id": "display_cell", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "### Display output" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "c7ac65a4-dd93-43c4-8090-c86a2aa28898", + "metadata": { + "execution": { + "iopub.execute_input": "2024-07-09T11:26:04.217728Z", + "iopub.status.busy": "2024-07-09T11:26:04.217462Z", + "iopub.status.idle": "2024-07-09T11:26:04.239367Z", + "shell.execute_reply": "2024-07-09T11:26:04.238673Z", + "shell.execute_reply.started": "2024-07-09T11:26:04.217689Z" + }, + "tags": [] + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
IDTEXTUSERNAMEPROFILE_PICTURETIMESTAMPLIKES_COUNT
017858772584879006Promote it on @writing._.skilladitya__.7443https://instagram.fkul21-2.fna.fbcdn.net/v/t51...2023-01-25T01:20:12.000Z0
117842757270932646Promote at @Thewriters_heavenskylarsrwriterhttps://instagram.fkul21-2.fna.fbcdn.net/v/t51...2023-01-25T01:22:15.000Z0
217945160482350602@Its_chetram_4444skylarsrwriterhttps://instagram.fkul21-2.fna.fbcdn.net/v/t51...2023-01-25T01:22:22.000Z0
318007951324553277Promote at @TheAuthors.World 💫author__mack16https://instagram.fkul21-2.fna.fbcdn.net/v/t51...2023-01-25T01:24:59.000Z0
\n", + "
" + ], + "text/plain": [ + " ID TEXT USERNAME \\\n", + "0 17858772584879006 Promote it on @writing._.skill aditya__.7443 \n", + "1 17842757270932646 Promote at @Thewriters_heaven skylarsrwriter \n", + "2 17945160482350602 @Its_chetram_4444 skylarsrwriter \n", + "3 18007951324553277 Promote at @TheAuthors.World 💫 author__mack16 \n", + "\n", + " PROFILE_PICTURE \\\n", + "0 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", + "1 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", + "2 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", + "3 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", + "\n", + " TIMESTAMP LIKES_COUNT \n", + "0 2023-01-25T01:20:12.000Z 0 \n", + "1 2023-01-25T01:22:15.000Z 0 \n", + "2 2023-01-25T01:22:22.000Z 0 \n", + "3 2023-01-25T01:24:59.000Z 0 " + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "data = []\n", + "\n", + "for comment in comments_data:\n", + " data_comment = get_comments(\n", + " comment[\"id\"],\n", + " comment[\"text\"],\n", + " comment[\"ownerUsername\"],\n", + " comment[\"ownerProfilePicUrl\"],\n", + " comment[\"timestamp\"],\n", + " comment[\"likesCount\"]\n", + " )\n", + " data.append(data_comment)\n", + " \n", + "df = pd.DataFrame(data)\n", + "df" + ] + }, + { + "cell_type": "markdown", + "id": "636d22d3-beac-4de3-9ea8-6232e9cdcc6c", + "metadata": {}, + "source": [ + "### Save dataframe to csv" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "be26e796-6c38-4152-a0b8-49f51b617a6f", + "metadata": { + "execution": { + "iopub.execute_input": "2024-07-09T11:25:14.714352Z", + "iopub.status.busy": "2024-07-09T11:25:14.714084Z", + "iopub.status.idle": "2024-07-09T11:25:14.937278Z", + "shell.execute_reply": "2024-07-09T11:25:14.936639Z", + "shell.execute_reply.started": "2024-07-09T11:25:14.714319Z" + }, + "tags": [] + }, + "outputs": [], + "source": [ + "df.to_csv(output_csv, index=False)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.6" + }, + "naas": { + "notebook_id": "38c44121d518d242dcfd1209fca1b300a11475f5836b8ae8f214c0b4524816a9", + "notebook_path": "Instagram/Instagram_Post_image_and_caption.ipynb" + }, + "papermill": { + "default_parameters": {}, + "environment_variables": {}, + "parameters": {}, + "version": "2.3.3" + }, + "toc-autonumbering": false + }, + "nbformat": 4, + "nbformat_minor": 5 +} From f1a92ae2af136addd4418f34f77d69c8f97b96ed Mon Sep 17 00:00:00 2001 From: Varsha Kumar Date: Wed, 10 Jul 2024 18:10:06 +0200 Subject: [PATCH 2/2] fix: seperated actor instructions --- .../Instagram_Get_comments_from_post.ipynb | 124 +++++++++++------- 1 file changed, 74 insertions(+), 50 deletions(-) diff --git a/Instagram/Instagram_Get_comments_from_post.ipynb b/Instagram/Instagram_Get_comments_from_post.ipynb index 89257ec454..d5ad5c389c 100644 --- a/Instagram/Instagram_Get_comments_from_post.ipynb +++ b/Instagram/Instagram_Get_comments_from_post.ipynb @@ -119,11 +119,11 @@ "id": "d40e70c0-a388-417b-a50f-c50bb82cc0b3", "metadata": { "execution": { - "iopub.execute_input": "2024-07-09T11:24:56.287151Z", - "iopub.status.busy": "2024-07-09T11:24:56.286708Z", - "iopub.status.idle": "2024-07-09T11:24:57.009265Z", - "shell.execute_reply": "2024-07-09T11:24:57.008625Z", - "shell.execute_reply.started": "2024-07-09T11:24:56.287072Z" + "iopub.execute_input": "2024-07-10T10:19:03.311545Z", + "iopub.status.busy": "2024-07-10T10:19:03.311176Z", + "iopub.status.idle": "2024-07-10T10:19:03.780108Z", + "shell.execute_reply": "2024-07-10T10:19:03.779578Z", + "shell.execute_reply.started": "2024-07-10T10:19:03.311479Z" }, "papermill": {}, "tags": [] @@ -163,18 +163,18 @@ "id": "ce903236-60d1-4087-a31e-9321f2df6112", "metadata": { "execution": { - "iopub.execute_input": "2024-07-09T11:27:08.990532Z", - "iopub.status.busy": "2024-07-09T11:27:08.990077Z", - "iopub.status.idle": "2024-07-09T11:27:08.996063Z", - "shell.execute_reply": "2024-07-09T11:27:08.995332Z", - "shell.execute_reply.started": "2024-07-09T11:27:08.990491Z" + "iopub.execute_input": "2024-07-10T10:19:39.097039Z", + "iopub.status.busy": "2024-07-10T10:19:39.096822Z", + "iopub.status.idle": "2024-07-10T10:19:39.102435Z", + "shell.execute_reply": "2024-07-10T10:19:39.101844Z", + "shell.execute_reply.started": "2024-07-10T10:19:39.097018Z" }, "papermill": {}, "tags": [] }, "outputs": [], "source": [ - "apify_token = \"apify_api_gXWnLEPiE7wC8ALUwQkJ0QcdbuQzU8xxxxxx\"\n", + "apify_token = \"apify_api_gXWnLEPiE7wC8ALUwQkJ0QcdbuQzU84xxxxx\"\n", "post_url = \"https://www.instagram.com/p/Cn0cUc7KelU/\"\n", "output_csv = f\"{post_url.split('https://www.instagram.com/')[1].replace('/', '_')}instagram_post_comments.csv\"" ] @@ -198,23 +198,21 @@ "tags": [] }, "source": [ - "### Scrape post comments" + "### Use the actor created for task" ] }, { "cell_type": "code", "execution_count": 3, - "id": "legislative-taiwan", + "id": "9cf46b24-455a-404e-8d1a-b89ef33c36ea", "metadata": { "execution": { - "iopub.execute_input": "2024-07-09T11:24:57.016559Z", - "iopub.status.busy": "2024-07-09T11:24:57.016149Z", - "iopub.status.idle": "2024-07-09T11:25:14.526775Z", - "shell.execute_reply": "2024-07-09T11:25:14.524819Z", - "shell.execute_reply.started": "2024-07-09T11:24:57.016528Z" - }, - "papermill": {}, - "tags": [] + "iopub.execute_input": "2024-07-10T10:19:03.789096Z", + "iopub.status.busy": "2024-07-10T10:19:03.788898Z", + "iopub.status.idle": "2024-07-10T10:19:04.494104Z", + "shell.execute_reply": "2024-07-10T10:19:04.493498Z", + "shell.execute_reply.started": "2024-07-10T10:19:03.789076Z" + } }, "outputs": [], "source": [ @@ -230,8 +228,34 @@ "run_details = response.json()\n", "\n", "# Extract the run ID\n", - "run_id = run_details['data']['id']\n", - "\n", + "run_id = run_details['data']['id']" + ] + }, + { + "cell_type": "markdown", + "id": "d7ca1899-b92b-4314-9025-975fdab2eb78", + "metadata": {}, + "source": [ + "### Scrape post comments" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "legislative-taiwan", + "metadata": { + "execution": { + "iopub.execute_input": "2024-07-10T10:19:04.495336Z", + "iopub.status.busy": "2024-07-10T10:19:04.495101Z", + "iopub.status.idle": "2024-07-10T10:19:15.967458Z", + "shell.execute_reply": "2024-07-10T10:19:15.966790Z", + "shell.execute_reply.started": "2024-07-10T10:19:04.495306Z" + }, + "papermill": {}, + "tags": [] + }, + "outputs": [], + "source": [ "# Define the URL to fetch the actor run status\n", "run_status_url = f\"https://api.apify.com/v2/acts/apify~instagram-comment-scraper/runs/{run_id}?token={apify_token}\"\n", "\n", @@ -266,15 +290,15 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "id": "01deb84d-abd7-4975-ab77-973fe84acf0f", "metadata": { "execution": { - "iopub.execute_input": "2024-07-09T11:25:14.527895Z", - "iopub.status.busy": "2024-07-09T11:25:14.527683Z", - "iopub.status.idle": "2024-07-09T11:25:14.536296Z", - "shell.execute_reply": "2024-07-09T11:25:14.535520Z", - "shell.execute_reply.started": "2024-07-09T11:25:14.527870Z" + "iopub.execute_input": "2024-07-10T10:19:15.968698Z", + "iopub.status.busy": "2024-07-10T10:19:15.968360Z", + "iopub.status.idle": "2024-07-10T10:19:15.972479Z", + "shell.execute_reply": "2024-07-10T10:19:15.971913Z", + "shell.execute_reply.started": "2024-07-10T10:19:15.968671Z" } }, "outputs": [], @@ -321,15 +345,15 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 6, "id": "c7ac65a4-dd93-43c4-8090-c86a2aa28898", "metadata": { "execution": { - "iopub.execute_input": "2024-07-09T11:26:04.217728Z", - "iopub.status.busy": "2024-07-09T11:26:04.217462Z", - "iopub.status.idle": "2024-07-09T11:26:04.239367Z", - "shell.execute_reply": "2024-07-09T11:26:04.238673Z", - "shell.execute_reply.started": "2024-07-09T11:26:04.217689Z" + "iopub.execute_input": "2024-07-10T10:19:15.973674Z", + "iopub.status.busy": "2024-07-10T10:19:15.973347Z", + "iopub.status.idle": "2024-07-10T10:19:16.091984Z", + "shell.execute_reply": "2024-07-10T10:19:16.091477Z", + "shell.execute_reply.started": "2024-07-10T10:19:15.973645Z" }, "tags": [] }, @@ -369,7 +393,7 @@ " 17858772584879006\n", " Promote it on @writing._.skill\n", " aditya__.7443\n", - " https://instagram.fkul21-2.fna.fbcdn.net/v/t51...\n", + " https://scontent-lhr8-2.cdninstagram.com/v/t51...\n", " 2023-01-25T01:20:12.000Z\n", " 0\n", " \n", @@ -378,7 +402,7 @@ " 17842757270932646\n", " Promote at @Thewriters_heaven\n", " skylarsrwriter\n", - " https://instagram.fkul21-2.fna.fbcdn.net/v/t51...\n", + " https://scontent-lhr8-2.cdninstagram.com/v/t51...\n", " 2023-01-25T01:22:15.000Z\n", " 0\n", " \n", @@ -387,7 +411,7 @@ " 17945160482350602\n", " @Its_chetram_4444\n", " skylarsrwriter\n", - " https://instagram.fkul21-2.fna.fbcdn.net/v/t51...\n", + " https://scontent-lhr8-2.cdninstagram.com/v/t51...\n", " 2023-01-25T01:22:22.000Z\n", " 0\n", " \n", @@ -396,7 +420,7 @@ " 18007951324553277\n", " Promote at @TheAuthors.World 💫\n", " author__mack16\n", - " https://instagram.fkul21-2.fna.fbcdn.net/v/t51...\n", + " https://scontent-lhr6-2.cdninstagram.com/v/t51...\n", " 2023-01-25T01:24:59.000Z\n", " 0\n", " \n", @@ -412,10 +436,10 @@ "3 18007951324553277 Promote at @TheAuthors.World 💫 author__mack16 \n", "\n", " PROFILE_PICTURE \\\n", - "0 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", - "1 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", - "2 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", - "3 https://instagram.fkul21-2.fna.fbcdn.net/v/t51... \n", + "0 https://scontent-lhr8-2.cdninstagram.com/v/t51... \n", + "1 https://scontent-lhr8-2.cdninstagram.com/v/t51... \n", + "2 https://scontent-lhr8-2.cdninstagram.com/v/t51... \n", + "3 https://scontent-lhr6-2.cdninstagram.com/v/t51... \n", "\n", " TIMESTAMP LIKES_COUNT \n", "0 2023-01-25T01:20:12.000Z 0 \n", @@ -424,7 +448,7 @@ "3 2023-01-25T01:24:59.000Z 0 " ] }, - "execution_count": 7, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -457,15 +481,15 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "id": "be26e796-6c38-4152-a0b8-49f51b617a6f", "metadata": { "execution": { - "iopub.execute_input": "2024-07-09T11:25:14.714352Z", - "iopub.status.busy": "2024-07-09T11:25:14.714084Z", - "iopub.status.idle": "2024-07-09T11:25:14.937278Z", - "shell.execute_reply": "2024-07-09T11:25:14.936639Z", - "shell.execute_reply.started": "2024-07-09T11:25:14.714319Z" + "iopub.execute_input": "2024-07-10T10:19:16.093061Z", + "iopub.status.busy": "2024-07-10T10:19:16.092841Z", + "iopub.status.idle": "2024-07-10T10:19:16.219821Z", + "shell.execute_reply": "2024-07-10T10:19:16.219349Z", + "shell.execute_reply.started": "2024-07-10T10:19:16.093031Z" }, "tags": [] },