Save dupplicates too
Maybe I won't publish them but this will help me for tracking trackers.
This commit is contained in:
parent
ea0855bd00
commit
d65107f849
6 changed files with 33 additions and 164 deletions
|
@ -25,6 +25,9 @@ if __name__ == '__main__':
|
|||
parser.add_argument(
|
||||
'-r', '--rules', action='store_true',
|
||||
help="TODO")
|
||||
parser.add_argument(
|
||||
'-d', '--no-dupplicates', action='store_true',
|
||||
help="TODO")
|
||||
parser.add_argument(
|
||||
'-c', '--count', action='store_true',
|
||||
help="TODO")
|
||||
|
@ -35,7 +38,9 @@ if __name__ == '__main__':
|
|||
if args.count:
|
||||
print(DB.count_records(
|
||||
first_party_only=args.first_party,
|
||||
rules_only=args.rules))
|
||||
rules_only=args.rules,
|
||||
no_dupplicates=args.no_dupplicates,
|
||||
))
|
||||
else:
|
||||
if args.rules:
|
||||
for line in DB.list_rules():
|
||||
|
@ -43,6 +48,7 @@ if __name__ == '__main__':
|
|||
for domain in DB.export(
|
||||
first_party_only=args.first_party,
|
||||
end_chain_only=args.end_chain,
|
||||
no_dupplicates=args.no_dupplicates,
|
||||
explain=args.explain,
|
||||
):
|
||||
print(domain, file=args.output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue