{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "2b593a01", "metadata": {}, "outputs": [], "source": [ "import json\n", "import os\n", "import pprint\n", "import urllib.parse\n", "import sys\n", "import requests\n", "\n", "my_headers = {\n", " \"Content-Type\": \"application/json\",\n", " \"Accept\": \"application/json\",\n", "}\n", "\n", "\n", "url = \"https://donavanaldrich.com/api/metrics/netdata/charts\"\n", "\n", "response = requests.get(url, headers=my_headers)\n", "\n", "print(response.text)" ] }, { "cell_type": "code", "execution_count": 8, "id": "61edf606", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/bin/bash: curl: command not found\r\n" ] } ], "source": [ "!curl 'https://donavanaldrich.com/api/metrics/netdata/charts'\n", " " ] }, { "cell_type": "code", "execution_count": 10, "id": "5b29fb25", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]\n", "Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease \u001b[0m\n", "Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]\n", "Get:4 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1,472 kB]\n", "Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB][33m\u001b[33m\n", "Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,099 kB]\n", "Get:7 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [889 kB]m\u001b[33m\n", "Get:8 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,183 kB]\n", "Get:9 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1,583 kB]\n", "Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,555 kB]\n", "Get:11 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [27.4 kB]\n", "Get:12 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.1 kB]\n", "Fetched 10.2 MB in 2s (5,367 kB/s)3m \u001b[0m\u001b[33m\u001b[33m\n", "Reading package lists... Done\n", "Building dependency tree \n", "Reading state information... Done\n", "7 packages can be upgraded. Run 'apt list --upgradable' to see them.\n", "/bin/bash: suo: command not found\n" ] } ], "source": [ "!sudo apt update && sudo apt upgrade -y" ] }, { "cell_type": "code", "execution_count": null, "id": "1f7c6a9d", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.10.5" } }, "nbformat": 4, "nbformat_minor": 5 }