ArmindoFlores / ao3_api

An unofficial archiveofourown.org (AO3) API for python
MIT License
166 stars 64 forks source link

Cannot get text when text not in 'p' label & Paragraphs' layout fail to maintain when content uses <br> instead of '\n' #72

Open AC-Dawn opened 2 years ago

AC-Dawn commented 2 years ago
  1. Cannot get text when text not in 'p' label import AO3 work = AO3.Work(25693009) work.chapters[5].text chapters[4].text returns empty due to the 'table' label I am not sure why the text is not in the 'p' label. Like the pic below. chapters[5].text works well. 1654188970896

2.same code as (1) searching words : 如何迅速 I want to download the book into '.txt' type. But chapters[5].text uses ‘< br >’ instead of '\n'. Thus when I write chapters[5].text into file, the sentences are linked tightly,not in original paragraphs. 2

Sorry for my poor English. Thks for your reading anyway:)