11 6
Contact Author Sign in to rate

Cambridge Dictionary

0.15MB. Updated 2021-03-04.

Description

Anki Add-on for download definition and sound from Cambridge Dictionary website. What it's done (so far): Creating notes from link to a word (word title, definition, gramar, IPA, sound, meanings, examples) Fetching words from your wordlists - if you supply cookie for you account and wordlist IDs Please, follow these links for quick visual how-to guide. https://ibb.co/94cq40m https://ibb.co/WBzw37R Anyone willing to improve my idea and contribute is welcome on addon's git: https://github.com/am-silex/anki_cambridge

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1875288089

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1650629838
Does not work properly. Too complicated even for me, a developer.
on 1648584715
Hi everyone!
Who can make video instructions?
on 1638076736
Works perfectly, no problems encountered.
on 1625498837
Took a minute to figure out how to use this, but works great once you figure it out.

WARNING: it will delete your word-list from Cambridge after it pulls it into Anki! Luckily my list was quite short.
on 1616932394
Fetching failed:
Traceback (most recent call last):
File "C:\Users\mcat7\AppData\Roaming\Anki2\addons21\1875288089\gui.py", line 547, in run
self._fetch_wrods()
File "C:\Users\mcat7\AppData\Roaming\Anki2\addons21\1875288089\gui.py", line 586, in _fetch_wrods
self.downloader.delete_word_from_wordlist(wl_entry)
File "C:\Users\mcat7\AppData\Roaming\Anki2\addons21\1875288089\Cambridge.py", line 375, in delete_word_from_wordlist
r = urlopen(self.req, data)
File "urllib\request.py", line 222, in urlopen
File "urllib\request.py", line 531, in open
File "urllib\request.py", line 640, in http_response
File "urllib\request.py", line 569, in error
File "urllib\request.py", line 502, in _call_chain
File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
on 1597775104
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.30 (06a69c25) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 7
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-08-18 12:06:18

Caught exception:
Traceback (most recent call last):
File "C:\Users\Ruth\AppData\Roaming\Anki2\addons21\1875288089\main.py", line 25, in ask_user_for_link
sd = WordDefDialogue(downloader.word_data,downloader.word)
File "C:\Users\Ruth\AppData\Roaming\Anki2\addons21\1875288089\gui.py", line 100, in __init__
self.set_model()
File "C:\Users\Ruth\AppData\Roaming\Anki2\addons21\1875288089\gui.py", line 216, in set_model
self.model = prepare_model(mw.col, fields, styles.model_css)
File "C:\Users\Ruth\AppData\Roaming\Anki2\addons21\1875288089\utils.py", line 142, in prepare_model
model = create_new_model(collection, fields, model_css)
File "C:\Users\Ruth\AppData\Roaming\Anki2\addons21\1875288089\utils.py", line 113, in create_new_model
model['tags'].append("Cambridge")
KeyError: 'tags'
on 1595766566
It always gives error:
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, repeat 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-ons section of our support site.
Debug info:
Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.14.6
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-07-26 14:54:16
Add-ons possibly involved: ⁨Cambridge Dictionary⁩

Error in sys.excepthook:
Traceback (most recent call last):
File "aqt/errors.py", line 19, in excepthook
File "aqt/errors.py", line 48, in write
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 449: ordinal not in range(128)

Original exception was:
Traceback (most recent call last):
File "/Users/mac/Library/Application Support/Anki2/addons21/1875288089/main.py", line 20, in ask_user_for_link
window = LinkDialogue()
File "/Users/mac/Library/Application Support/Anki2/addons21/1875288089/gui.py", line 45, in __init__
self.initUI()
File "/Users/mac/Library/Application Support/Anki2/addons21/1875288089/gui.py", line 50, in initUI
File "aqt/__init__.py", line 185, in fn__
addon_id = utility.misc.get_addon_id()
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 134: ordinal not in range(128)
Comment from author
Culprit is found - 2 missing headers
- User-Agent
- Host
Apparently, some restrictions from Cambridge website.
Added. Now addon works as before
on 1594458818
Hands down, fantastic add-ons.Thanks.

To getting cookies is easier in Mozilla.
on 1594059173
It doesn't work! Without authentification this thing is useless
on 1593078313
good
on 1590159974
It is not working on Mac for me

Debug info:
Anki 2.1.23 (de9543ff) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.14.6
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-05-22 17:05:28
Add-ons possibly involved: ⁨Cambridge Dictionary⁩

Error in sys.excepthook:
Traceback (most recent call last):
File "aqt/errors.py", line 19, in excepthook
File "aqt/errors.py", line 48, in write
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 464: ordinal not in range(128)

Original exception was:
Traceback (most recent call last):
File "/Users/eghazawy/Library/Application Support/Anki2/addons21/1875288089/main.py", line 20, in ask_user_for_link
window = LinkDialogue()
File "/Users/eghazawy/Library/Application Support/Anki2/addons21/1875288089/gui.py", line 44, in __init__
self.initUI()
File "/Users/eghazawy/Library/Application Support/Anki2/addons21/1875288089/gui.py", line 49, in initUI
File "aqt/__init__.py", line 183, in fn__
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 139: ordinal not in range(128)
on 1589304916
Thank you. Great add-on. I hope it will be developed still further.

To get cookies in Firefox: log in to your Cambridge account, search for word, press F12, tab Network, click on dictionary Cambridge line, on the right you will see cookies. Copy the entire line and paste to add-on.
https://i.imgur.com/sOByVAZ.png

I think if log out your cookies will no longer work. But to see your list you need to be logged in anyway.
on 1588841175
How to use?
on 1587799688
Can anyone explain how to use it?
on 1586183505
How to use it?
on 1584643536
Promising but some crazy bug appears when I enter the same link to word. It extend window with previous results. I'm using Anki 2.1.15 (442df9d6).
And you probably should tell people how to copy cookie.
on 1583513332
Great idea but how does it work?