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

Add Tranco top domains feed #1015

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Add Tranco top domains feed #1015

merged 1 commit into from
Feb 13, 2024

Conversation

udgover
Copy link
Collaborator

@udgover udgover commented Feb 11, 2024

No description provided.

@udgover udgover requested a review from tomchop February 11, 2024 21:24
Copy link
Collaborator

@tomchop tomchop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minuscule nit, otherwise lgtm

context = {
"name": self.name,
}
feed = io.BytesIO(response.content)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably do io.StringIO and decode right there instead of decoding line by line?

Maybe something like

Suggested change
feed = io.BytesIO(response.content)
feed = io.StringsIO(response.content, encoding='utf-8')

?

@tomchop tomchop merged commit b72a636 into main Feb 13, 2024
2 checks passed
@tomchop tomchop deleted the tranco_top_domains branch February 13, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants