-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner-11.sh
executable file
·26 lines (19 loc) · 804 Bytes
/
runner-11.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
NEOCITIES_IP="198.51.233.100"
USER_AGENT="Neocities Unblocker [11] by KINI/1.5"
concurrent_requests=5
max_page=2750
min_page=2500
for ((current_page = 2500; current_page < max_page; current_page++)); do
output=$(curl -s -H "Connection: keep-alive" -A "$USER_AGENT" "https://neocities.org/browse?sort_by=last_updated&tag=&page=$current_page" | grep -Eo "https://[a-zA-Z0-9.-]+\.neocities\.org" | grep -vE "www\.neocities\.org|blog\.neocities\.org")
if [ -z "$output" ]; then
break
fi
echo -ne "[11].................($current_page)\r"
echo "$output" | sed "s|^https://|$NEOCITIES_IP |" | sort -u >> temphosts11 &
if ((current_page % concurrent_requests == 0)); then
wait
fi
done
wait
echo "[11]Done fetching pages from $min_page to $max_page."