View Single Post
Old 01-17-2019, 12:29 AM   #3
nikkumba
Junior Member
nikkumba began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2019
Device: Kindle Paperwhite 10th
Quote:
Originally Posted by kovidgoyal View Post
Thanks Kovid! You are awesome!

The only hiccup is that the file is over 60 MB (too big to automatically email to my kindle)

I figured all the images were probably the issue. I wasn't sure how to reduce the number of articles it downloaded so I just deleted what I thought is the image part:

Quote:
def preprocess_html(self, soup):
for img in soup.findAll('img', attrs={'data-baseurl': True}):
img['src'] = img['data-baseurl']
return soup
It is now under 2 MBs and it transferred to my kindle just fine. Thanks again for your help!

nikkumba is offline   Reply With Quote