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 EveningStandard parser #549

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Update EveningStandard parser #549

merged 1 commit into from
Jul 2, 2024

Conversation

MaxDall
Copy link
Collaborator

@MaxDall MaxDall commented Jul 1, 2024

This adjusts the EveniingStandard parser to the latest version.

@MaxDall MaxDall requested a review from addie9800 July 1, 2024 14:32
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 the update 👍

class V1_1(V1):
VALID_UNTIL = datetime.date.today()
_summary_selector = CSSSelector("div.sc-jgyXzG")
_subheadline_selector = CSSSelector("div#main div.sc-dFfFtc > h3")
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 like not all articles use this new layout. This article was published today and follows the old layout (which would also miss the subheadlines)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, I would refrain from supporting both layouts. For now, I think it's best to drop support for lifestyle articles.

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.

Sounds good

@MaxDall MaxDall merged commit d42bbfe into master Jul 2, 2024
5 checks passed
@MaxDall MaxDall deleted the fix-evening-standard branch July 2, 2024 16:24
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