Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tlds.json from the latest PSL #38

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

groundcat
Copy link

Task/Issue URL:
Tech Design URL:
CC:

Description:

This PR is to update the copy of the Public Suffix List to the latest version which is sourced from https://publicsuffix.org/list/public_suffix_list.dat

Steps to test this PR:

Reproduction

import requests
import json

url = "https://publicsuffix.org/list/public_suffix_list.dat"

response = requests.get(url)
response.raise_for_status()
data = response.text

lines = data.splitlines()
entries = [line.strip() for line in lines if line.strip() and not line.strip().startswith('//')]

with open('public_suffix_list.json', 'w', encoding='utf-8') as f:
    json.dump(entries, f, indent=4, ensure_ascii=False)


Internal references:

Software Engineering Expectations
Technical Design Template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant