Skip to content

Summary is fooled by a modal popup #180

Description

@rpdelaney
>>> r = fetch_url('https://www.democracynow.org/2023/9/5/headlines/biden_administration_to_supply_ukraine_with_depleted_uranium_munitions')
>>> type(r)
<class 'requests_html.HTMLResponse'>
>>> doc = Document(r.content)
>>> doc.summary()
'<html><body><div><div class="daily_digest_modal_content"><a href="" id="continue_to_site"><img src="https://assets.democracynow.org/assets/icons/modal-close-5ec5cd072a7d7752e6073e5c8761274c67b9287aecead27a7e72cc2f30753d1f.png"></a><div><h1>Independent news has never been so important.</h1>\r\n<p><span class="plea">Get Democracy Now! delivered to your inbox every day!</span> Don\'t worry, we won\'t share or sell your information.</p></div></div></div></body></html>'
>>>

Am I doing something wrong, or should readability be removing this also?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions