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

Issues in htmlparse Metro and Telegraaf #486

Open
mariekevh opened this issue May 21, 2019 · 0 comments
Open

Issues in htmlparse Metro and Telegraaf #486

mariekevh opened this issue May 21, 2019 · 0 comments
Assignees

Comments

@mariekevh
Copy link
Collaborator

Issues to be fixed in htmlparse in Telegraaf and Metro rss scrapers:

  • Metro htmlparser for text also catches some 'invisible' HTML that is not part of the main article text. (Likely they have CSS display: none applied?)
  • Telegraaf htmlparser is unable to parse some texts, because they are not included in the HTML, but only load after a script is run on the website. Possible solution... htmlsource is a string that has the text included in the script: "articleBody": "HERE IS THE TEXT.","author":
if text.strip() == "":
    logger.warning("Trying alternative method....")
    #parse the text from htmlsource```
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

No branches or pull requests

2 participants