summaryrefslogtreecommitdiff
path: root/indexnow
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-06-29 03:49:42 +0900
committerOphestra <cat@gensokyo.uk>2025-06-29 03:49:42 +0900
commite4db81206f8f572fc5355b11c20dc51b5b69ffbc (patch)
treee9bd52769693862b4213f5a50db3138876f783da /indexnow
parent34b55506fe58760262d685ad8565c1ef7f2dadf2 (diff)
treewide: remove unused scripts
Diffstat (limited to 'indexnow')
-rwxr-xr-xindexnow36
1 files changed, 0 insertions, 36 deletions
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)