Export cards/notes from browser with metadata to csv or xlsx [Official thread]

If you have a problem with this add-on post in this thread. This way I get notified. If you make a new thread I will likely miss it.

2 Likes

Hello. I am getting this error when attempting to use this add-on:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-07-08 12:20:04

Caught exception:
Traceback (most recent call last):
File “C:\Users\Scott\AppData\Roaming\Anki2\addons21\1967530655\export.py”, line 248, in
u.triggered.connect(lambda _, b=browser: onExportSelected(b, “csv”, False, False))
File “C:\Users\Scott\AppData\Roaming\Anki2\addons21\1967530655\export.py”, line 189, in onExportSelected
rows = info_for_cids_to_list_of_lists(browser, sorted(cids), keephtml)
File “C:\Users\Scott\AppData\Roaming\Anki2\addons21\1967530655\export.py”, line 95, in info_for_cids_to_list_of_lists
rows.append(make_row_list_for_card(c, columns_to_export, keephtml))
File “C:\Users\Scott\AppData\Roaming\Anki2\addons21\1967530655\export.py”, line 49, in make_row_list_for_card
props = current_card_deck_properties(card)
File “C:\Users\Scott\AppData\Roaming\Anki2\addons21\1967530655\card_properties.py”, line 97, in current_card_deck_properties
p[“d_new_sep”] = conf[‘new’][“separate”] # unused
KeyError: ‘separate’

Thanks for this report. I just updated the add-on on ankiweb. Could you update, restart, and try again.

I haven’t used this add-on in a while so there might still be some problem. So if you run into another problem please let me know.

1 Like

Yes, it fixed it. Thank you very much!

1 Like

A post was split to a new topic: Downloading an older Anki version

I’m sorry, I must have misunderstood before. What I mean is that I need the version of “export cards/notes from browser with metadata to csv or xlsx” compatible with Anki 2.1.19 (which is the version I have installed and cannot change right now for various reasons).

I’m sorry, my English is very bad, I hope I’ve explained myself better. Thank you.

@Pip: I have it in my backups. Somewhere. When I’m back home in some days I can check my external drive.

In the meantime you could check your backups. I don’t mean what Anki labels as “backup” but your proper backup (that you do with Apple’s TimeMachine or whatever you use on Windows).

Hi.

Any chance you will update this to version 2.1.45?

I tried to install it, but it says it is not supported

Best regards

I’ll update it at some point but at the moment I don’t have time for it (and since I’m still on older version I don’t need it yet for myself).

1 Like

Dumb question, but where in the UI can we find the option to export? It doesn’t show up in the File → Export… (ctrl+E) window

@Muu9 : it should be in the browser menu under “files” as “export selected …” have you restarted anki? Do you know: When problems occur - Frequently Asked Questions which anki version do you use?

I’m in 2.1.33.
Under Browse->Notes->Export selected notes (Ctrl+Shift+E), the export menu only gives the options of Anki Collection Package, Anki Deck Package, Notes in Plain text, and Cards in plain text. The problem persists after disabling other export addons.

@Muu9 in the browser it’s not in “notes”. it’s in the menu “edit”. (and not “files” as i accidently wrote in my first replay)

what you refer to are built-in options that were added to anki after I made my add-on. I do not use the official export dialog.

Hi there I loved this add-on but it stopped working after I updated my Anki. I’m looking for a different add-on but I’m most familiar with yours and would love it if you could update it. Thanks!

@Alemonade : Thanks for notifying me about this problem. I uploaded a new version that contains a fix. I took the opportunity to remove old code that was only relevant to older versions. But when you are in a hurry you might also introduce new problems … So let me know if you find another bug.

In the mean time, you might try one of the two following add-ons. Once added, they appear at the bottom of the Tools menu in Anki.

Thank you for replying so quickly! I tried but it didn’t work. I deleted and re-added the add-on and tried to use it to export again but it gave me an error again. I copied the error and it says

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):
File “C:\Users\alema\AppData\Roaming\Anki2\addons21\1967530655\export.py”, line 340, in
u.triggered.connect(lambda _, b=browser: exp(b, ftype=“csv”, keephtml=True, notesonly=True))
File “C:\Users\alema\AppData\Roaming\Anki2\addons21\1967530655\export.py”, line 186, in exp
save_path = save_helper(browser, ftype, notesonly)
File “C:\Users\alema\AppData\Roaming\Anki2\addons21\1967530655\export.py”, line 152, in save_helper
out = getSaveDir(parent=browser,
File “C:\Users\alema\AppData\Roaming\Anki2\addons21\1967530655\helper_functions.py”, line 92, in getSaveDir
defaultPath = QStandardPaths.writableLocation(QStandardPaths.DocumentsLocation.DocumentsLocation)
AttributeError: type object ‘QStandardPaths’ has no attribute ‘DocumentsLocation’

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Japanese [‘1344485230’, 2024-03-25T11:10, ‘None’, mod]
AnkiConnect [‘2055492159’, 2024-02-26T20:37, ‘None’, ‘’]
Batch Editing [‘291119185’, 2023-10-25T17:38, ‘None’, ‘’]
Beautify-Anki 20 mizmu [‘1116770498’, 2023-10-31T11:51, ‘None’, ‘’]
Forvo Pronunciation Downloader fully automatic - Fixed for Anki 23 by Shige [‘1784714388’, 2024-02-29T20:04, ‘None’, ‘’]
Japanese Pitch Accent [‘148002038’, 2023-05-07T06:01, ‘None’, ‘’]
Quick Colour Changing [‘2491935955’, 2023-10-18T20:15, ‘None’, mod]
Review Heatmap [‘1771074083’, 2022-06-29T18:43, ‘None’, ‘’]
Yomichan Forvo Server [‘580654285’, 2023-08-30T13:53, ‘None’, ‘’]
export cardsnotes from browser with metadata to csv or xlsx [‘1967530655’, 2024-03-27T14:50, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1116770498 1344485230 148002038 1771074083 1784714388 1967530655 2055492159 2491935955 291119185 580654285

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Let me know when you can fix it! dw about taking your time.

ok, that was embarrasing. I didn’t have that kind of newly introduced bug in mind … I uploaded a new version and now I actually tested exporting different note types to one folder. Again, thanks for your reports.

Thank you so much! It works perfectly.