Support LinguaLeo API 1.0.1
troggy opened this issue ยท 6 comments
Today or yesterday Lingualeo changed the API they use. Old one still partially works, but paging is broken now leading to issues like #39.
newer API doesn't look solid (e.g. mess with translations
and combinedTranslation
attributes). I expect it to break again soon :(
New API returns more words than shown on the page ๐๐คฆโโ๏ธ
$ cat ~/Downloads/lingualeo.csv | awk -F ';' '{print $1}' | sed s/\"//g | wc -l
2140
Without duplicates:
$ cat ~/Downloads/lingualeo.csv | awk -F ';' '{print $1}' | sed s/\"//g | uniq | wc -l
2140
On the page it is just 2111
Given that Linguleo is not capable to show all the words itself (see below), I would not trust the 2111 number and consider mine (2140) is correct
May you push develop (not stable) branch to GitHub? ๐
yeah, sure.. sorry, I'm out of capacity to finish this up as of now
Here is the branch: https://github.com/troggy/anki-leo/fix/api101