Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 01-14-2024, 11:10 AM   #1
yiranzhimo
Junior Member
yiranzhimo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2023
Device: kindle
Problems of my Recipe

Hi all, I'm having some problems using Calibre to generate website content into books.

I have generated feeds with such format, [(year, [title, url])].

one url's example: http://mp.weixin.qq.com/s?__biz=Mzg5...echat_redirect

I have attached a picture to show my code.
Attached Thumbnails
Click image for larger version

Name:	shot.png
Views:	49
Size:	83.8 KB
ID:	205805  
yiranzhimo is offline   Reply With Quote
Old 01-14-2024, 11:05 PM   #2
unkn0wn
Evangelist
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 448
Karma: 82686
Join Date: May 2021
Device: kindle
feeds.append needs to be out of the for loop.
unkn0wn is offline   Reply With Quote
Advert
Old 01-15-2024, 01:26 AM   #3
yiranzhimo
Junior Member
yiranzhimo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2023
Device: kindle
Quote:
Originally Posted by unkn0wn View Post
feeds.append needs to be out of the for loop.
If feeds.append is out of the loop, there will only be one article in feeds, like this picture.

There are 16 links in file articles.txt.

Strangely, generated books have no content, like the picture below.

I wonder what the reason is but I have no idea.
Attached Thumbnails
Click image for larger version

Name:	shot2.png
Views:	20
Size:	28.9 KB
ID:	205816   Click image for larger version

Name:	shot3.png
Views:	24
Size:	33.6 KB
ID:	205818  
Attached Files
File Type: txt articles.txt (9.2 KB, 22 views)
yiranzhimo is offline   Reply With Quote
Old 01-15-2024, 01:34 AM   #4
unkn0wn
Evangelist
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 448
Karma: 82686
Join Date: May 2021
Device: kindle
wait even articles = [] nned to be out, put it above for loop.
unkn0wn is offline   Reply With Quote
Old 01-15-2024, 01:52 AM   #5
yiranzhimo
Junior Member
yiranzhimo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2023
Device: kindle
Quote:
Originally Posted by unkn0wn View Post
wait even articles = [] nned to be out, put it above for loop.
I have change my code as show in below picture.

And generated book is still blank.
Attached Thumbnails
Click image for larger version

Name:	截屏2024-01-15 14.48.45.png
Views:	25
Size:	90.0 KB
ID:	205819   Click image for larger version

Name:	截屏2024-01-15 14.50.14.png
Views:	21
Size:	56.2 KB
ID:	205820  
yiranzhimo is offline   Reply With Quote
Advert
Old 01-15-2024, 03:44 AM   #6
unkn0wn
Evangelist
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 448
Karma: 82686
Join Date: May 2021
Device: kindle
I checked the attached articles text now.
You cannot do it like this, both the file and code don't match.
You can check whether articles are added by logging them self.log(line, title, url) and change code accordingly.

Last edited by unkn0wn; 01-16-2024 at 05:21 AM.
unkn0wn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with own recipe mgrmgrde Recipes 2 08-26-2018 06:03 AM
Recipe problems aessedai44 Recipes 0 10-27-2010 12:17 AM
Problems with economist recipe lady kay Calibre 1 08-06-2010 07:49 AM
Problems with Economist recipe 0.5.1 MTBSJC Calibre 7 03-23-2009 01:54 PM


All times are GMT -4. The time now is 08:44 AM.


MobileRead.com is a privately owned, operated and funded community.