Skip to content

Commit 8fd1d86

Browse files
committed
chore: update hosts autocomplete
1 parent f0da565 commit 8fd1d86

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

censys/cli/data/hosts_autocomplete.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11136,6 +11136,24 @@
1113611136
},
1113711137
"value": "services.labels"
1113811138
},
11139+
{
11140+
"data": {
11141+
"category": "<i class=\"fa fa-fw fa-plus-square\" aria-hidden=\"true\"></i> MISC"
11142+
},
11143+
"value": "services.parsed"
11144+
},
11145+
{
11146+
"data": {
11147+
"category": "<i class=\"fa fa-fw fa-plus-square\" aria-hidden=\"true\"></i> MISC"
11148+
},
11149+
"value": "services.parsed.type"
11150+
},
11151+
{
11152+
"data": {
11153+
"category": "<i class=\"fa fa-fw fa-plus-square\" aria-hidden=\"true\"></i> MISC"
11154+
},
11155+
"value": "services.parsed.dynamic"
11156+
},
1113911157
{
1114011158
"data": {
1114111159
"category": "<i class=\"fa fa-fw fa-plus-square\" aria-hidden=\"true\"></i> MISC"

scripts/update_autocomplete.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/usr/bin/env bash
22

3+
USER_AGENT="censys-python/$(poetry version | cut -d ' ' -f 2)"
4+
35
update_autocomplete() {
46
echo "Updating autocomplete data for $1..."
57
# Write a temporary file to avoid corrupting the original if the download fails
68
tmp_file=$(mktemp)
7-
curl "https://search.censys.io/static/data/autocomplete-$1.json" -s -o "$tmp_file" && echo "" >> "$tmp_file"
9+
wget "https://search.censys.io/static/data/autocomplete-$1.json" -U "$USER_AGENT" -O "$tmp_file" && echo "" >> "$tmp_file"
810
mv "$tmp_file" "censys/cli/data/$1_autocomplete.json"
911
}
1012

0 commit comments

Comments
 (0)