Skip to content

Commit

Permalink
added antifilter CE list
Browse files Browse the repository at this point in the history
  • Loading branch information
runalsh committed Mar 20, 2024
1 parent 93e0f92 commit 45231d6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/generatelists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Generate PAC

on:
workflow_dispatch:
# push:
# branches: [ "main" ]
# paths:
# - .github/**
# - src/**
# - '*.py'
push:
branches: [ "main" ]
paths-ignore:
- '*.md'
- '.github/workflows/**'
schedule:
- cron: '0 1 */3 * *'

Expand Down
9 changes: 9 additions & 0 deletions antifilter-ce.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -e

rm -rf antifilter-*.lst
wget -O antifilter-`date '+%d-%B-%Y'`.lst https://community.antifilter.download/list/domains.lst
cat antifilter-`date '+%d-%B-%Y'`.lst >> ./config/include-hosts-custom.txt
rm -rf antifilter-*.lst
awk '! a[$0]++' ./config/include-hosts-custom.txt
# sort -o ./config/include-hosts-custom.txt ./config/include-hosts-custom.txt
sed -i '/^$/d' ./config/include-hosts-custom.txt
4 changes: 1 addition & 3 deletions doall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ rm -rf ./result/proxy-host-*.pac

./requirements.sh
./parseitdog.sh # https://raw.githubusercontent.com/itdoginfo/allow-domains/main/Russia/inside-dnsmasq-ipset.lst
./antifilter-ce.sh # https://community.antifilter.download/list/domains.lst
./update.sh
./parse.sh
./process.sh

./generate-pac.sh

# clean
rm -rf itdog-*.lst
1 change: 1 addition & 0 deletions parseitdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ wget -O itdog-3-`date '+%d-%B-%Y'`.lst https://raw.githubusercontent.com/itdogin
cat itdog-1-`date '+%d-%B-%Y'`.lst >> ./config/include-hosts-custom.txt
cat itdog-2-`date '+%d-%B-%Y'`.lst >> ./config/include-hosts-custom.txt
cat itdog-3-`date '+%d-%B-%Y'`.lst >> ./config/include-hosts-custom.txt
rm -rf itdog-*.lst
awk '! a[$0]++' ./config/include-hosts-custom.txt
# sort -o ./config/include-hosts-custom.txt ./config/include-hosts-custom.txt
sed -i '/^$/d' ./config/include-hosts-custom.txt
Expand Down

0 comments on commit 45231d6

Please sign in to comment.