From 3a48c9860b5b199e84bd3b582e2080dc94998301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 13 Jul 2021 21:00:33 +0200 Subject: [PATCH] feat(.bin): proxies scripts --- .bin/proxies.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .bin/proxies.sh diff --git a/.bin/proxies.sh b/.bin/proxies.sh new file mode 100644 index 0000000..7b9d700 --- /dev/null +++ b/.bin/proxies.sh @@ -0,0 +1,17 @@ +#!/bin/sh +curl -sSL https://www.netzwelt.de/proxy/index.html \ + | pup ".tblc" \ + | xml-to-json /dev/stdin \ + | jq ' + .div.table.tbody.tr + | map( + .td + | { + ip: .[0].a.value, + port: .[1], + country: .[2] | (if type == "string" then . else .a.value end), + security: .[3], + protocol: .[4] + } + ) + '