domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
966 stars 210 forks source link

Change publicsuffix2 to publicsuffixlist #406

Closed jlaundry closed 1 year ago

jlaundry commented 1 year ago

The public_suffix_list.dat included in the publicsuffix2 package is now quite out of date.

While one could use get_base_domain() with use_fresh_psl=True, this isn't done by parse_aggregate_report_xml(), and would be a big performance hit to download the PSL each time.

The publicsuffixlist package now includes a weekly updated psl.dat (https://github.com/ko-zu/psl/issues/25), and handles reserved domains sensibly out-of-the-box.

seanthegeek commented 1 year ago

Looks like some unused imports need cleaned up.

jlaundry commented 1 year ago

Oops, should be fixed now