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 Frankfurter Rundschau #652

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Fix Frankfurter Rundschau #652

merged 3 commits into from
Nov 5, 2024

Conversation

addie9800
Copy link
Collaborator

_paragraph_selector = XPath(
"//p[@class='id-StoryElement-paragraph'] | "
"//p[contains(@class,'id-Article-content-item-paragraph') and text()] |"
"//div[@class='id-Article-body']//ul/li[not(@class='id-AuthorList-item ')]"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one differs from the original article > ul > li is there a reason for that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, they added another list item in some articles called "Meine News". You can see an example here: https://www.fr.de/politik/ampel-regierung-koalition-news-lindner-fdp-habeck-gruene-spd-wirtschaft-plan-papier-zr-93394586.html

"//div[@class='id-Article-body']//ul/li[not(@class='id-AuthorList-item ')]"
)
_summary_selector = CSSSelector(
"p.id-StoryElement-leadText, " "p[class='id-Article-content-item id-Article-content-item-summary']"
Copy link
Collaborator

Choose a reason for hiding this comment

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

There are unnecessary quotation marks

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, seems to be left-over from formatting.

@addie9800 addie9800 merged commit db2d4c5 into master Nov 5, 2024
5 checks passed
@addie9800 addie9800 deleted the fix-fr branch November 5, 2024 16:10
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