You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5.5 KiB
5.5 KiB
<html>
<head>
</head>
</html>
In [ ]:
import json
import os
import pprint
import urllib.parse
import sys
import requests
my_headers = {
"Content-Type": "application/json",
"Accept": "application/json",
}
url = "https://donavanaldrich.com/api/metrics/netdata/charts"
response = requests.get(url, headers=my_headers)
print(response.text)
In [ ]:
!curl 'https://donavanaldrich.com/api/metrics/netdata/charts'
In [1]:
!sudo apt update && sudo apt upgrade -y && sudo apt install curl -y
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcurl4 The following NEW packages will be installed: curl libcurl4 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 396 kB of archives. After this operation, 1,121 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.12 [235 kB] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.12 [161 kB] Fetched 396 kB in 0s (812 kB/s)[0m debconf: delaying package configuration, since apt-utils is not installed 78E: Can not write log (Is /dev/pts mounted?) - open (1: Operation not permitted) Selecting previously unselected package libcurl4:amd64. (Reading database ... 147435 files and directories currently installed.) Preparing to unpack .../libcurl4_7.68.0-1ubuntu2.12_amd64.deb ... 7Progress: [ 0%] [..........................................................] 87Progress: [ 11%] [######....................................................] 8Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.12) ... 7Progress: [ 22%] [############..............................................] 8Selecting previously unselected package curl. Preparing to unpack .../curl_7.68.0-1ubuntu2.12_amd64.deb ... 7Progress: [ 33%] [###################.......................................] 8Unpacking curl (7.68.0-1ubuntu2.12) ... 7Progress: [ 44%] [#########################.................................] 8E: Can not write log (Is /dev/pts mounted?) - open (1: Operation not permitted) Setting up libcurl4:amd64 (7.68.0-1ubuntu2.12) ... 7Progress: [ 56%] [################################..........................] 87Progress: [ 67%] [######################################....................] 8Setting up curl (7.68.0-1ubuntu2.12) ... 7Progress: [ 78%] [#############################################.............] 87Progress: [ 89%] [###################################################.......] 8Processing triggers for libc-bin (2.31-0ubuntu9.9) ... 78
In [ ]: