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

Fix malformed HTML for TheNation #385

Merged
merged 2 commits into from
Mar 8, 2024
Merged

Fix malformed HTML for TheNation #385

merged 2 commits into from
Mar 8, 2024

Conversation

MaxDall
Copy link
Collaborator

@MaxDall MaxDall commented Mar 7, 2024

This fixes parsing for the nation once again 🎉

  • Fixes malformed HTML with missing closing tag
  • Fixes new version couldn't parse older articles

@MaxDall MaxDall mentioned this pull request Mar 7, 2024
39 tasks
Copy link
Collaborator

@addie9800 addie9800 left a comment

Choose a reason for hiding this comment

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

Thanks for updating this 👍

@@ -63,8 +83,13 @@ def topics(self) -> List[str]:
class V2(V1):
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems they (mostly) updated the way they assign topics. It seems to me that they stopped using the keywords tag, and switched to sailthru.tags. For this article for example, no topics were parsed: https://www.thenation.com/article/archive/gop-threatens-pepfar-hiv-aids-africa/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for catching this 👍 i altered topic extraction for V2 accordingly

@MaxDall MaxDall merged commit 3f83910 into master Mar 8, 2024
5 checks passed
@MaxDall MaxDall deleted the fix-nation branch March 8, 2024 15:06
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.

2 participants