Fix Threads post text extraction
This commit is contained in:
parent
bedeb8495d
commit
ece11a8352
4 changed files with 52 additions and 2 deletions
15
tests/fixtures/threads-feed.html
vendored
Normal file
15
tests/fixtures/threads-feed.html
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<main>
|
||||
<div data-pressable-container="true">
|
||||
<a href="/@alice"><span dir="auto">alice</span></a>
|
||||
<a href="/@alice/post/ABC123"><time><span dir="auto">12h</span></time></a>
|
||||
<span dir="auto">First Threads post with <span>visible text</span></span>
|
||||
<button><span dir="auto">Like</span></button>
|
||||
<time><span dir="auto">1h</span></time>
|
||||
</div>
|
||||
<div role="article">
|
||||
<a href="/@bob"><span dir="auto">bob</span></a>
|
||||
<a href="/@bob/post/DEF456"><time><span dir="auto">1d</span></time></a>
|
||||
<span dir="auto">A reply in the conversation</span>
|
||||
<div aria-hidden="true">Decorative content</div>
|
||||
</div>
|
||||
</main>
|
||||
Loading…
Reference in a new issue