Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2012, 05:53 AM   #1
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 2162064
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.
  • Import from Clipboard - paste in a list of book title/authors copied to your clipboard, such as from a website forum post of favourite books.
  • Import from CSV File - many users have lists of books stored in applications like Excel which can export to CSV, or use websites like Goodreads/Library Thing which also have export to CSV capability.
  • Import from Web Page - over 100 predefined websites are configured (including Goodreads, Amazon etc) or you can add your own. Included in the predefined websites is Fantastic Fiction, which can be an easy way to scrape title, author, series and pubdate metadata for all books by an author. Note that for this and any of the predefined websites that you are not limited to the specific URL configured. You can navigate to the website page of interest in your browser, then drag/drop or copy the URL into the Website tab of this plugin. most websites use the same layout for their webpages so no other configuration needs to be changed.

Main Features:
  • Import lists of books from Clipboard, CSV files or websites.
  • Choose from over 100 predefined websites and/or add your own configurations.
  • Import into standardfields, identifiers or custom columns
  • Option to update metadata of existing books
  • Predefined websites can be viewed as a list or grouped by category
  • Websites can be directly opened in a web browser
  • Supports importing title, author, series, series index and pubdate (all but title are optional)
  • Customise clipboard imports with regular expressions (common examples available on a dropdown)
  • Customise CSV imports to define the numbered column and other options such as delimiters.
  • Customise website imports using XPath expressions, with highlighting available to show matches.
  • Website URLs support template expressions to allow automatic substitution of values such as dates. For an example look at the Goodreads Popular This Month/Year settings.
  • Automatically match books in your library using a progression of identical/similar/fuzzy matching algorithms
  • User can manually search/refine matches, create empty books, remove books from the list etc.
  • Optionally put the resulting matched books into a list for use with the Reading List plugin, or just display on screen
  • Configurations can be exported/imported for sharing with other users.

Special Notes:
Paypal Donations:
  • If you find this or any of my other plugins useful please feel free to show your appreciation. I have spent many thousands of unpaid hours in their development and support so any encouragement for me to continue is appreciated!
Attached Files
File Type: zip Import List.zip (542.1 KB, 666 views)

Last edited by kiwidude; 04-01-2024 at 08:36 AM. Reason: New version
kiwidude is offline   Reply With Quote
Old 08-13-2012, 08:04 AM   #2
loximuthal
Connoisseur
loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.loximuthal has not lost his or her sense of wonder.
 
loximuthal's Avatar
 
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.
loximuthal is offline   Reply With Quote
Advert
Old 08-14-2012, 09:24 AM   #3
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
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!!
nynaevelan is offline   Reply With Quote
Old 08-14-2012, 09:36 AM   #4
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
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?
nynaevelan is offline   Reply With Quote
Old 08-14-2012, 11:06 AM   #5
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 2162064
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.
kiwidude is offline   Reply With Quote
Advert
Old 08-14-2012, 06:13 PM   #6
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by kiwidude View Post
@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.
Thanks
nynaevelan is offline   Reply With Quote
Old 08-16-2012, 09:21 PM   #7
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
Question Authorization needed?

@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;
  • "Sorry, that person's shelf is private"
  • "sign in"
  • "This Profile Is Restricted to Goodreads Users."
* I added the bold and red entries in the spoiler to highlight the areas listed above. *

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:
<html><head><title>Rich (GunnerP245) - (305 Books, 3.93 Average Rating)</title></head><body><div class="content">
<div class="uitext" id="siteheader">
<div class="mainContent">
<ul class="nav" id="usernav"><li>
<strong>
<a href="/user/new" class="navlink" rel="nofollow">register</a>
</strong>
</li>
<li>
<a href="/about/how_it_works" class="navlink" rel="nofollow">tour</a>
</li>
<li>
<a href="/user/sign_in?returnurl=%2Fuser%2Fshow%2F4051996-rich" class="navlink" rel="nofollow">sign in</a>
</li>
</ul><div id="logo">
<a href="/">
<img alt="Goodreads: Book reviews, recommendations, and discussion" border="0" src="http://www.goodreads.com/assets/layout/goodreads_logo_140-a9873c579d01dd64752423bdba10276c.png"></a>
</div>
<div id="sitesearch">

<div>
</div>
<div class="auto_complete_field_wrapper">
<div id="sitesearch_autocomplete">
</div>
<img alt="Loading-trans" class="loading" id="sitesearch_field_loading" src="http://www.goodreads.com/assets/loading-trans-3e04cd6ed6ad31063972e688820d7866.gif"></div>
<a class="submitLink" href="#">
<img alt="search" src="http://www.goodreads.com/assets/layout/magnifying_glass-d9f211c02aa67acf63fa5f27a1876619.png" title="Title / Author / ISBN" width="16"></a>

</div>
<ul class="nav" id="sitenav"><li>
<a href="/" class="navlink">Home</a>
</li>
<li>
<a href="/review/list" class="navlink" rel="nofollow">My Books</a>
</li>
<li>
<a href="/friend" class="navlink" rel="nofollow">Friends</a>
</li>
<li>
<a href="/recommendations" class="navlink" rel="nofollow">Recommendations</a>
</li>
<li class="withsubnav">
<div class="subnav">
<ul class="content"><li>
<a href="/list" title="Popular lists of books">listopia</a>
</li>
<li>
<a href="/giveaway" title="Free book giveaways">giveaways</a>
</li>
<li>
<a href="/book/popular_by_date/2012/8" title="Popular New Releases">popular</a>
</li>
<li>
<a href="/voice">goodreads voice</a>
</li>
<li>
<a href="/ebooks">ebooks</a>
</li>
</ul><ul class="content"><li>
<b>fun</b>
</li>
<li>
<a href="/trivia">trivia</a>
</li>
<li>
<a href="/quizzes">quizzes</a>
</li>
<li>
<a href="/quotes">quotes</a>
</li>
</ul><ul class="content"><li>
<b>community</b>
</li>
<li>
<a href="/group">groups</a>
</li>
<li>
<a href="/story">creative writing</a>
</li>
<li>
<a href="/user/online_now" rel="nofollow">people</a>
</li>
<li>
<a href="/event">events</a>
</li>
</ul></div>
<a href="/book" class="navlink" title="Explore books">Explore</a>
<a class="subnavlink inlineblock" href="#">*</a>
</li>
</ul></div>
</div>
<div class="mainContentContainer ">
<div class="mainContent">
<div class="mainContentFloat">
<div id="flashContainer">
<div id="header_error_container">
<div class="box noticeBox errorBox">
<a class="greyText" href="#">[x]</a>
Sorry, that person's shelf is private.
</div>
<br></div>
</div>
<h1>Rich (GunnerP245)'s profile</h1>
<table width="100%" cellspacing="3" border="0"><tr valign="top"><td width="120px">
<img alt="Rich" src="http://photo.goodreads.com/users/1336826458p3/4051996.jpg" title="Rich"><br><div class="smallText">
171 ratings |
28 reviews
<br><a href="#">avg rating: 3.93</a>
<div class="floatingBox" id="ratingDistribution4051996">
</div>
</div>
</td>
<td>
<div class="bigGreyBox">
<div class="bigGreyBoxBody">
<div class="bigGreyBoxContent">
<div id="privateProfile" class="mediumText">
This Profile Is Restricted to Goodreads Users.
<br><br>
Sign in to Goodreads to Learn More About Rich.
<br><br><div>
<a href="/user/new?remember=true" class="button" rel="nofollow">sign up »</a>
</div>
</div>
</div>
</div>
<div class="bigGreyBoxBottom">
</div>
</div>
<br class="clear"><br><span id="userActions">
<a href="/friend/add_as_friend/4051996?return_url=%2Fuser%2Fshow%2F4051996-rich" class="button" rel="nofollow">add as a friend</a>
</span>
*
<a href="/message/new/4051996-rich" rel="nofollow">send message</a>
</td>
</tr></table><br><br><br><br><br><br><br><br><br><br><a href="/user/flag_photo/4051996" class="smallText greyText" rel="nofollow">flag photo as inappropriate</a>
<a class="greyText smallText" href="#">?</a>
<div id="flagExplanation4051996" class="floatingBox">Flagging an image will send it to the Goodreads Customer Care team for review. We take great care to make Goodreads a place that everyone can visit. Only flag photos that clearly need our attention. We will only consider removing photos that are extremely offensive in nature (pornographic, pro-Nazi, etc). Our policy on nudity is if you can walk down the street in it without getting a ticket we'll let it stand.</div>
|
</div>
<div class="clear">
</div>
</div>
<div class="clear">
</div>
</div>
<div class="clear">
</div>
<div class="footerContainer">
<div class="footer">
<div class="copyright">© 2012 Goodreads Inc</div>
<div class="adminLinksContainer">
<ul class="adminLinks"><li>
<a href="/about/us" class="first" rel="nofollow">about us</a>
</li>
<li>
<a href="/advertisers" rel="nofollow">advertise</a>
</li>
<li>
<a href="/author/program" rel="nofollow">author program</a>
</li>
<li>
<a href="/jobs" rel="nofollow">jobs</a>
</li>
<li>
<a href="/api" rel="nofollow">api</a>
</li>
<li>
<a href="/blog">our blog</a>
</li>
<li>
<a href="/about/terms" rel="nofollow">terms</a>
</li>
<li>
<a href="/about/privacy" rel="nofollow">privacy</a>
</li>
<li>
<a href="/help" class="last" rel="nofollow">help</a>
</li>
</ul><br><br></div>
</div>
</div>
</div><div id="overlay">
</div><div id="box">
<img id="close" src="/assets/close.gif" alt="Close" title="Close this window"><div id="boxContents">
</div>
<div id="boxContentsLeftovers">
</div>
<a class="right actionLinkLite smallText greyText" href="#" id="lightBoxRightClose">close</a>
<div class="clear">
</div>
</div><div id="fbSigninNotification">
<p>Welcome back. Just a moment while we sign you in to your Goodreads account.</p>
<img alt="Login_animation" src="http://www.goodreads.com/assets/facebook/login_animation-e6b8fb8dad5d9614794b0d13e31aa9ba.gif"></div><div id="fb-root">
</div><noscript>
<img src="http://pixel.quantserve.com/pixel/p-0dUe_kJAjvkoY.gif" border="0" height="1" width="1" alt="Quantcast"></noscript><noscript>
<img src="http://b.scorecardresearch.com/b?c1=2&amp;c2=6035830&amp;c3=&amp;c4=&amp;c5=&amp; c6=&amp;c15=&amp;cv=1.3&amp;cj=1" width="0" height="0" alt=""></noscript></body></html>

Last edited by Gunnerp245; 08-16-2012 at 09:27 PM. Reason: Additional information.
Gunnerp245 is offline   Reply With Quote
Old 08-17-2012, 02:56 AM   #8
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 2162064
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.
kiwidude is offline   Reply With Quote
Old 08-17-2012, 08:09 AM   #9
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
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?
Gunnerp245 is offline   Reply With Quote
Old 08-17-2012, 09:40 AM   #10
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 2162064
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.
kiwidude is offline   Reply With Quote
Old 08-17-2012, 02:55 PM   #11
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
Lightbulb Personal GoodReads Shelf Import

Quote:
Originally Posted by kiwidude View Post
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.
Okay. I got it to work.
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;
  • Row: //table/tbody/tr
  • Title: td[@class="field title"]/div[@class="value"]/a/text()
  • Author: td[@class="field author"]/div[@class="value"]/a/text()
  • Series: td[@class="field title"]/div[@class="value"]/a/span[@class="darkGreyText"]/text()
  • Series Idx: text()
  • Pubdate: td[@class="field date_pub"]/div[@class="value"]/text()

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
Gunnerp245 is offline   Reply With Quote
Old 08-17-2012, 03:18 PM   #12
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 2162064
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...
kiwidude is offline   Reply With Quote
Old 08-17-2012, 07:30 PM   #13
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
@kiwidude

Not too sure of the 'fun' part but it was enlightening. In reality, I had not notion of xpath, other than the small area in calibre when converting books. But I reviewed the expressions in the pre-defined webpages and to see what was matched to determine why. With alot of trial and error I got one to work and just kept plugging from there.

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.
Gunnerp245 is offline   Reply With Quote
Old 09-13-2012, 12:42 AM   #14
Sidetrack
Enthusiast
Sidetrack began at the beginning.
 
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.
Sidetrack is offline   Reply With Quote
Old 09-13-2012, 03:28 AM   #15
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 2162064
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.
kiwidude is offline   Reply With Quote
Reply

Tags
column types

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1315 04-11-2024 12:37 AM
[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


All times are GMT -4. The time now is 05:31 PM.


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