![]() |
#1 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
[GUI Plugin] Import List
This wizard-based plugin allows you to match existing or create empty books in calibre based on lists of books from external sources. For some users it may be they want to import an existing list of their own reading/books, for others it can be that they want to import lists of bestsellers, popular books, genre recommendations, award winners and so on. Once matched you can integrate with the Reading List plugin to record as a list to read, send to a device or just view on screen.
Main Features:
Special Notes:
Paypal Donations: Last edited by kiwidude; 02-17-2025 at 06:23 AM. Reason: New version |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81
Karma: 86158
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
|
Looks exciting! I can't wait to get home and try it out.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Wow, Kiwidude, this is awesome and just when I discovered Listopia on Goodreads. Great Job!!
![]() |
![]() |
![]() |
![]() |
#4 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Kiwidude:
A question: When a list is longer than 100 books, how do I get the plugin to import the entire list, not just the first 100? |
![]() |
![]() |
![]() |
#5 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Nyn - the limit is not "100 books", it is whatever is displayed on the web page you are pulling it from.
If you want further books appended, just run the wizard again with the url for the second page. You will see that if you are putting these books on a Reading List there is an option to Append to the list, rather than recreating it. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
Gadget Freak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
|
![]()
@kiwidude
How do I import my unread list from Goodreads? When I use the 'webpage' tab I get no results, though inspection of the data in the source html window finds;
Edit: 1. I reauthorized the Goodreads plugin API and get the same results. 2. Even being logged into the Goodreads site does not change the results. 3. The predefined Goodreads url 'does' return books. Spoiler:
Last edited by Gunnerp245; 08-16-2012 at 09:27 PM. Reason: Additional information. |
![]() |
![]() |
![]() |
#8 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@GunnerP - the plugin cannot utilise any cookies from your browser or authenticating sessions. The way around this is to just save the html page to disk from your authenticated browser, and then drag/drop the html file into the url field.
It is a hidden feature that I had to incorporate for testing (the proxies at my work prevent calibre from accessing the internet directly) but as it turns out it should help solve such a problem. You don't need to save the whole web page content of course, just the html file itself. My plugin looks at the URL field, and if the url starts with file:// (which it will after a drag/drop) then it loads that html file locally rather than loading via a web browser... Last edited by kiwidude; 08-17-2012 at 05:39 AM. |
![]() |
![]() |
![]() |
#9 |
Gadget Freak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
|
@kiwidude
Thanks, I shall try later today after work. How does the Goodreads plugin able to access one's shelves? |
![]() |
![]() |
![]() |
#10 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
The Goodreads plugin uses an OAUTH library and a specific Goodreads API to retrieve the shelf information (getting json/xml responses) - it doesn't scrape from the web pages.
|
![]() |
![]() |
![]() |
#11 | |
Gadget Freak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
|
![]() Quote:
![]() I created a separate 'import library' so as to not mess up my regular library while I experimented. ![]() For others the entries I used to produce the list after saving the applicable 'shelf' as a webpage as kiwidude suggested;
However, the Series and Series Index regex needs to be tweaked to remove parenthesis, pound sign and have the number in the correct column. Spoiler:
Last edited by Gunnerp245; 08-17-2012 at 07:31 PM. Reason: Put picture in spolier tags |
|
![]() |
![]() |
![]() |
#12 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Haha, glad you are having fun. Did you use the highlighting buttons etc to help you along the way? You have no idea how long it took me to get that working but when figuring out xpath expressions I found it invaluable.
So long as you don't hit Finish on the Wizard you can safely experiment without using a test library, after all it is only if you actually specifically click the buttons to create empty books and click Finish that this plugin will actually make any changes to your library. ![]() The series is indeed a problem in this situation. Of course this plugin didn't originally have series as an option, it was only when I added FF as a source and looked at the "scraping" possibilities that it came in. My thoughts were always that you could just do a metadata download to get series information populated like you would with any other import of books into your library, so in your situation I would just leave the series/series idx columns blank. *If* the strip field was allowed to be applied at the field level (allowing different regexes for title, author, series etc) then you would have a solution to both you series columns above, allowing you to strip what you don't want out in both circumstances and would be more flexible. I'm not overly against changing the plugin to support this (it always felt a bit filthy applying the same "strip" regex to both title and author) but it is a question of how/where to configure this on that screen. Maybe it would have to be a popup dialog - so where it says strip it just tells you what fields have been given regexes for stripping, and a button pops up showing a grid where for each field you can edit the regex for it... how does that sound? I can also appreciate how in the situation of scraping from goodreads (or from FF for that matter) that it would be darned useful to scrape the goodreads id as an identifier. So then when you do a metadata download you are getting data for exactly that same book edition. Hmmm... |
![]() |
![]() |
![]() |
#13 |
Gadget Freak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
|
@kiwidude
Not too sure of the 'fun' part ![]() ![]() The highlighting was invaluable in seeing exactly what was matched. I realized the test library was not needed if 'finish' was not selected, but desired to see the results in calibre. If there is no simple way to enter an expression in the plugin entries a popup dialog would be good. ![]() In the meantime, the edit bulk metadata will remove the parenthesis and pound sign. Last edited by Gunnerp245; 08-17-2012 at 07:33 PM. |
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() Posts: 39
Karma: 10
Join Date: Jan 2009
Location: South Pacific
Device: Kindle DX
|
Goodreads Awards Pages
Has anyone looked at settings for Goodreads Award pages http://www.goodreads.com/award
I'm looking at them and trying to figure out XPath notation, but not getting very far very fast. Row: //table[@class="tableList"] seems correct, but pulling a title or author is beyond me. Seems as if Title: a[@class="bookTitle"]/span/text() should do the trick... but no. I'd also like to pull the Award Name/Year as Series/Index, but needless to say I haven't managed that either. |
![]() |
![]() |
![]() |
#15 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Sidetrack - you will need the next version to properly do this, you will hit the same issue that Gunnerp245 had of not being able to separate the year from the name of the award into two separate fields.
To show you what is close: Row: //table[@class="tableList"]/tr/td[2] Title: a[@class="bookTitle"]/span/text() Author: span/a[@class="authorName"]/span/text() Series: em/text() Series Idx: text() In the next version you can apply a regex to strip at individual column level. So for series you could strip the trailing brackets, and for series index you could strip everything except the numbers. Thanks for the suggestion btw, I will make sure it is in the predefined settings when I release it. |
![]() |
![]() |
![]() |
Tags |
column types |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Reading List | kiwidude | Plugins | 1406 | 10-16-2024 08:28 PM |
[GUI Plugin] Manage Sony x50 Reader Book List | kpw | Plugins | 170 | 10-02-2014 08:23 PM |
Import List plugin idea thread | kiwidude | Development | 45 | 08-13-2012 06:05 AM |
[GUI Plugin] WebOS Kindle-Import | CranstD | Plugins | 0 | 01-24-2012 03:36 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |