Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2015, 03:00 PM   #1
bhagerty
Junior Member
bhagerty began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: Kindle + Android-based
Can you export a list of tags?

It seems like it should be trivial to export a list of tags, or at least copy and paste them from Calibre to something else, but I can't figure out how to do it. Right-clicking on "Tags - Manage Tags" gives you a spreadsheet-style list of the tags, but I couldn't copy and paste more than one at a time, no matter how many rows I highlighted.

Any way to export such a list? It would be helpful to me as I try to rationalize them again, having stepped away from the project for a while.

Thanks!
bhagerty is offline   Reply With Quote
Old 08-20-2015, 03:51 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,916
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by bhagerty View Post
It seems like it should be trivial to export a list of tags, or at least copy and paste them from Calibre to something else, but I can't figure out how to do it. Right-clicking on "Tags - Manage Tags" gives you a spreadsheet-style list of the tags, but I couldn't copy and paste more than one at a time, no matter how many rows I highlighted.

Any way to export such a list? It would be helpful to me as I try to rationalize them again, having stepped away from the project for a while.

Thanks!
You might brush off your SQL skills and download a SQLite database browser

Tags exist in the ... wait for it.... Tags table in the metadata.db

File:Export: Table as a CSV file
theducks is offline   Reply With Quote
Advert
Old 08-20-2015, 04:31 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Rough hack:

create a new (empty) book.
Edit Metadata ==> Tags manager ==> Add all tags to the book record.
Copy the tags from the tags field.
Delete pointless book record.


I don't know of any way from within calibre to copy the list.
eschwartz is offline   Reply With Quote
Old 08-20-2015, 05:39 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@bhagerty

The SQLite database browser tool referred by theducks is very easy to use in this instance, no sql needed - just point and click

In the Browse Tab, select the Tags table, then File->Export->Table(s) as CSV , here you need specify file name and location.

The CSV File View utility from nirsoft is a handy tool for looking at CSV files - simpler than spreadsheets, word processors etc.

This request comes up from time to time. Maybe the Manage Categories (authors, tags, publishers etc) function could be furnished with a Save list as a csv button. Use list_categories command

BR

Last edited by BetterRed; 08-22-2015 at 09:45 PM.
BetterRed is offline   Reply With Quote
Old 08-22-2015, 09:20 PM   #5
bhagerty
Junior Member
bhagerty began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: Kindle + Android-based
Thanks for the suggestions

Thanks to everyone for the suggestions. I didn't know that Calibre's database was in a SQL-compatible database called "metadata.db." Now I do.

So I opened "metadata.db" it in a SQL tool (I used Sqliteman Portable, but DB Browser for SQLite Portable would work too, I'm sure - both are at Portableapps.com) and exported the tag list in CSV format.

But this is a workaround, not exactly a solution. It seems to me it would be nice to have this capability in Calibre itself, rather than having to use a separate tool to open the Calibre database. Even though I basically know what I'm doing, I was worried that I might alter the Calibre metadata database inadvertently when I opened it in my SQL tool.

Thanks again for the advice!
bhagerty is offline   Reply With Quote
Advert
Old 08-22-2015, 09:42 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by bhagerty View Post
It seems to me it would be nice to have this capability in Calibre itself, rather than having to use a separate tool to open the Calibre database
@bhagerty sorry we completely forgot the list_categories command

BR
BetterRed is offline   Reply With Quote
Old 08-22-2015, 10:09 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,916
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BetterRed View Post
@bhagerty sorry we completely forgot the list_categories command

BR
theducks is offline   Reply With Quote
Old 08-22-2015, 11:06 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by BetterRed View Post
@bhagerty sorry we completely forgot the list_categories command

BR
eschwartz is offline   Reply With Quote
Old 08-22-2015, 11:24 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
@bhagerty sorry we completely forgot the list_categories command
Quote:
Originally Posted by theducks View Post
Quote:
Originally Posted by eschwartz View Post
So, what do we blame, collective amnesia or follow the leader
BetterRed is offline   Reply With Quote
Old 08-31-2015, 10:16 AM   #10
bhagerty
Junior Member
bhagerty began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: Kindle + Android-based
@BetterRed:

(1) Sarcasm is unfriendly. And in this case, totally uncalled for. I asked a good-faith question, followed some advice, thanked folks for their advice, and followed up with a good-faith suggestion.

(2) On top of which, it seems that you are being willfully obtuse, just to create an occasion for your sarcasm. I'm glad there's a command-line option for listing categories, and I appreciate your pointing it out. But it's quite obvious that I was talking about having an option to create a list of tags from within Calibre's GUI. (Indeed, I almost wrote "from within Calibre's GUI" in place of "in Calibre itself" in my last post, but I thought, "No need for that; surely it's obvious what I'm talking about.") Command-line tools are not perfect substitutes for GUI implementations, even if some folks (you—and, in fact, me) are comfortable with command-line tools.

So I will clarify my suggestion and stand by it: It would be nice if, within Calibre's GUI, there were a simple means to export a list of tags.
bhagerty is offline   Reply With Quote
Old 08-31-2015, 10:50 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,916
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by bhagerty View Post
@BetterRed:

(1) Sarcasm is unfriendly. And in this case, totally uncalled for. I asked a good-faith question, followed some advice, thanked folks for their advice, and followed up with a good-faith suggestion.

(2) On top of which, it seems that you are being willfully obtuse, just to create an occasion for your sarcasm. I'm glad there's a command-line option for listing categories, and I appreciate your pointing it out. But it's quite obvious that I was talking about having an option to create a list of tags from within Calibre's GUI. (Indeed, I almost wrote "from within Calibre's GUI" in place of "in Calibre itself" in my last post, but I thought, "No need for that; surely it's obvious what I'm talking about.") Command-line tools are not perfect substitutes for GUI implementations, even if some folks (you—and, in fact, me) are comfortable with command-line tools.

So I will clarify my suggestion and stand by it: It would be nice if, within Calibre's GUI, there were a simple means to export a list of tags.
3 MR posts new and you rant (You might want to look at some of the handles on this list https://www.mobileread.com/forums/showgroups.php )

Your original request had merit.
Calibre often has many ways to get from point B to point L

Your original request has ultra low (known to these forum) usage.
Adding low usage Bloat to an already Overly Rich GUI does not. There are multi-millions of Calibre installations.

The CLI is not that difficult when you need to do an odd job (There are folk here that do REGULAR Calibre jobs with the CLI. I assume that their rigs are headless) The online Help documents almost all the possible commands.

BTW Just because you read the list today... We were poking fun at each other because we did not keep current. Calibre has grown (features) a Huge amount in the 5 years I have been using it. Do not be surprised that we don't use all of the Calibre power available.
theducks is offline   Reply With Quote
Old 08-31-2015, 11:18 AM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by bhagerty View Post
@BetterRed:

(1) Sarcasm is unfriendly. And in this case, totally uncalled for. I asked a good-faith question, followed some advice, thanked folks for their advice, and followed up with a good-faith suggestion.
Would it be sarcastic of me to admire your skill at taking offense over comments not directed at you?

No one has been sarcastic at you, we were laughing at ourselves, the supposed experts, for missing a feature that we, of all people should have known about.

Quote:
(2) On top of which, it seems that you are being willfully obtuse, just to create an occasion for your sarcasm. I'm glad there's a command-line option for listing categories, and I appreciate your pointing it out. But it's quite obvious that I was talking about having an option to create a list of tags from within Calibre's GUI. (Indeed, I almost wrote "from within Calibre's GUI" in place of "in Calibre itself" in my last post, but I thought, "No need for that; surely it's obvious what I'm talking about.") Command-line tools are not perfect substitutes for GUI implementations, even if some folks (you—and, in fact, me) are comfortable with command-line tools.

So I will clarify my suggestion and stand by it: It would be nice if, within Calibre's GUI, there were a simple means to export a list of tags.
Good of you to clarify your question. It's a shame you couldn't do that before attacking people for providing an answer that did not meet your unstated qualifications.

We deal with solutions here, not philosophies.



Attitude matters a lot here. Willfully antagonistic behavior does not encourage members and users to volunteer their time to try to help you. Nor does it encourage the developer (should he see this thread, which he probably will) to respect your input and add a new feature.



Goodbye.

Last edited by eschwartz; 08-31-2015 at 11:27 AM.
eschwartz is offline   Reply With Quote
Old 08-31-2015, 05:37 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by bhagerty View Post
So I will clarify my suggestion and stand by it: It would be nice if, within Calibre's GUI, there were a simple means to export a list of tags.
@bhagerty <sarcasm> . . . Ψ². . . . . . <\sarcasm>

Request for enhancements can be made here ==>> Bugs : calibre

BR
BetterRed is offline   Reply With Quote
Old 01-20-2020, 05:51 PM   #14
bhagerty
Junior Member
bhagerty began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: Kindle + Android-based
I apologize - I was a touchy jerk

@theducks @eschwartz @BetterRed - I apologize. I found this post again when I had the exact same question and couldn't remember the solution, and rereading it, I am embarrassed by myself. I was a touchy jerk. You were all patient and helpful. I don't know what I was thinking.
bhagerty is offline   Reply With Quote
Old 12-14-2022, 08:32 AM   #15
TSR!
Junior Member
TSR! began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2022
Device: none
A related question

I would like a way to simply edit my existing tags to correct spelling, capitalization, etc. I don't know how to do this and I can't fathom how the tag editor works nor find any instructions for it.
TSR! is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export job list antk Calibre 2 07-11-2015 11:43 AM
Export list to excel? Belle2Be Library Management 7 01-15-2014 06:14 AM
How-to Question: Export list Mixx Library Management 7 05-28-2013 08:51 PM
Export tags Daedalus.p1 Calibre 4 02-25-2013 04:15 PM
deleting tags from available tags list BeccaPrice Calibre 8 10-15-2011 11:39 AM


All times are GMT -4. The time now is 01:03 PM.


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