Okay so I deleted lines 45 to 49
Code:
keep_only_tags = [
dict(name='h1'),
dict(name='div', **classes('author')),
classes('introduction content-article')
]
I used Calibre's ereader and it worked (although it downloaded pretty much the whole web page instead of just the article, but I imagine that's the point).
The issue is that when I transfer the ePub to my Libra I can't access the articles. Going to the next page, even choosing a particular page, send me to the next article's first page (the one with links to the table of content).
The ePub is 1700 pages long (!!) when it used to be ~250.
The articles are there, it just won't let me read it
Thanks for your help !