From e4db81206f8f572fc5355b11c20dc51b5b69ffbc Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 29 Jun 2025 03:49:42 +0900 Subject: treewide: remove unused scripts --- indexnow | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 indexnow (limited to 'indexnow') diff --git a/indexnow b/indexnow deleted file mode 100755 index dbd98b4c..00000000 --- a/indexnow +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env python3 - -import sys - -import requests -import validators - -if len(sys.argv) > 1: - urls = sys.argv[1:] -else: - urls = sys.stdin.read().splitlines() - -if not urls: - sys.exit(2) - -for url in urls: - if not validators.url(url): - sys.exit(3) - -host = "grapheneos.org" -api_url = "https://api.indexnow.org/indexnow" - -with open("indexnow-key.txt") as keyfile: - key = keyfile.read().strip() - -def submit(urls): - print(urls) - data = { - "host": host, - "key": key, - "urlList": urls - } - r = requests.post(api_url, json=data) - print(r.status_code) - -submit(urls) -- cgit v1.3.1