Skip to content

bug/<Only element from partition is "Please enable JS and disable any ad blocker"> #2562

Closed

Description

@StatsAI

Describe the bug
Only element returned from partition is (unstructured.documents.html.HTMLTitle,
'Please enable JS and disable any ad blocker')

To Reproduce

!pip install "unstructured[all-docs]"

url = 'https://www.nytimes.com/2024/02/19/world/europe/navalny-letters-russia.html'

from unstructured.partition.auto import partition
elements = partition(url=url, strategy='hi_res', html_assemble_articles=True)

display(*[(type(element), element.text) for element in elements])

Expected behavior
Partition results (Title, Narrative Text, etc) should be returned

Environment Info
Google Colab

Activity

  1. added
    bug
    on Feb 20, 2024
  2. scanny commented on Jun 21, 2024

    @scanny
    Contributor

    Fixed by #3218.

    Note that the text extracted by the partitioner for this page is modest (about 25 elements) because most of the content is behind a paywall and generated by JavaScript.

    But the "preview" content that is actually present in the HTML is correctly partitioned and the <noscript> tag that was previously rendered (saying "Please enable JS ...") is no longer present.

    #3218 should merge within a few days.

  3. self-assigned this
    on Jun 25, 2024
  4. added a commit that references this issue on Jul 11, 2024
    c27e0d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bughtml

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions