Open mart-e opened 5 years ago
Checking the debug log tab on f43.me and it seems content are truncated during the cleanupHtml
but it's weird the content is really small in that log line ... :thinking:
Thanks for looking into it. I was playing around with the xpath and using the id to grab the text seems to work better
title: //head/title
body: //div[@id='et_builder_outer_content']
It is strange has the class is only present once so it should be similar right?
Should be, yep.
So, comparing both xpath, I get:
Using hasclass
:
//div[hasclass('et_builder_outer_content')]
for body (content length: 133808)Using @id=
:
//div[@id='et_builder_outer_content']
for body (content length: 133808)//div[@id='et_builder_outer_content']
So I guess the following code is executed and Readability is used as a fallback (and has a bad parser)
But why did the XPath returned 1
for the second expression but not the first one?
Are you sure about the quoted code?
Hello,
I am trying to grab a very long text: The birth and death of a bike company: What happened to SpeedX? | CyclingTips
While trying to fetch it on wallabag or f43.me,
I get only the first 20 sections of the content.The end of the grabbed content is:
Or, if you check the page source, is in the class
et_pb_section_19
(starting a 0), soI assume the parser stops after 20 block of content (but maybe it is unrelated).EDIT: Not really 20 sections, just that only the 20th is actually grabbed, investigating a bit more
I tried using a custom siteconfig but got the same result
Screenshot of result
Any idea?