You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug/<Only element from partition is "Please enable JS and disable any ad blocker"> #2562
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
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.
Activity
scanny commentedon Jun 21, 2024
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.
rfctr(html): replace html parser (#3218)