![]() |
|
scanki: new smart.fm downloader - Printable Version +- kanji koohii FORUM (http://forum.koohii.com) +-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html) +--- Forum: Learning resources (http://forum.koohii.com/forum-9.html) +--- Thread: scanki: new smart.fm downloader (/thread-5093.html) |
scanki: new smart.fm downloader - cangy - 2010-02-25 compared with the smart.fm import plugin: * multiple lists can be downloaded in a single operation * vocab items and sentences are together in the same fact * kana reading is preserved * includes sentence <b> tags, vocab parts-of-speech, remote sound links, list id and per-list and overall indices * doesn't exclude entries with non-unique kanji fields but with unique combinations of other fields if none of that matters to you then you don't need this and you can continue to use Joe's great plugin please note that this is a unix shell script not an anki plugin, so you'll need a unix-like environment to run it. linux is good, OSX should be fine, but for windows you'll probably need cygwin http://sites.google.com/site/ankinihongo/home/scanki scanki: new smart.fm downloader - bodhisamaya - 2010-02-26 Cranki and scanki. Hmmmm.... I... err, well..... Those are two very scary adjectives. scanki: new smart.fm downloader - shirokuro - 2010-02-26 I think they're clever. scanki: new smart.fm downloader - Burritolingus - 2010-02-26 OK, n00b question time! Admittedly, I'm a 'tard with Unix (and allergic to Apple products) so I'm having some trouble getting this badboy to cooperate in Windows. Specifically, the error I get in cygwin is: Code: warning: failed to load external entity "http://api.smart.fm/lists/19053/items.xml?per_page=100&page=1"scanki: new smart.fm downloader - cangy - 2010-02-27 bodhisamaya Wrote:Cranki and scanki. shirokuro Wrote:I think they're clever.thanks, they were my favourites, not sure which should be next though: franki, hanki (panki), yanki, clanki, lanki, spanki, swanki, manki, wanki? Burritolingus Wrote:xmlstarlet doesn't seem to want to play niceI haven't tried it under cygwin but xmlstarlet claims to work there, so it should be ok... is cygwin networking ok? can you wget the same url? you could also try the native windows version instead btw, if you just want the core series, here's one I prepared earlier scanki: new smart.fm downloader - Burritolingus - 2010-02-27 cangy Wrote:Hmm, wget works fine... Ahh well, was mostly just curious and felt the need to tinker. I'll just grab the kore text files for now. Thanks a bunch for all of these goodies, cangy!Burritolingus Wrote:xmlstarlet doesn't seem to want to play niceI haven't tried it under cygwin but xmlstarlet claims to work there, so it should be ok... is cygwin networking ok? can you wget the same url? you could also try the native windows version instead Also, I vote for clanki. scanki: new smart.fm downloader - cangy - 2010-02-28 Burritolingus Wrote:Hmm, wget works fine...in that case it's a trivial change to use wget for the download -- here you go scanki: new smart.fm downloader - fluxcapacitor - 2010-03-04 When I try to download audio with this, it gives me the following error: Code: ../scanki-1.22.sh -s < ../core-lists.txtAlso, is it supposed to download the sentence audio? It only downloaded the vocab audio. I didn't use the -v option. Thanks. scanki: new smart.fm downloader - kriskelvin - 2010-03-04 @fluxcapacitor: change the first line of the script to: Code: #!/bin/bashAnd the script has not been working correctly. It should download ~12,000 files as there's two audio files for each item: one for the vocabulary and one for the example sentence. scanki: new smart.fm downloader - Burritolingus - 2010-03-04 cangy Wrote:I had missed this post! Thanks a bunch, broheim.Burritolingus Wrote:Hmm, wget works fine...in that case it's a trivial change to use wget for the download -- here you go scanki: new smart.fm downloader - fluxcapacitor - 2010-03-04 Thank you kriskelvin.
scanki: new smart.fm downloader - cangy - 2010-03-04 kriskelvin Wrote:Note: bash is *not* the default shell on every system, so if you write a script for /bin/sh, don't use bash-specific syntax.actually, due to a previous life as a sysadmin, I never write bash scripts -- those == must have snuck in from some other language... fixed in the current version scanki: new smart.fm downloader - mistamark - 2011-01-29 cangy Wrote:edit: I'm a tard!Burritolingus Wrote:Hmm, wget works fine...in that case it's a trivial change to use wget for the download -- here you go FYI - how to get this to work on Windows: o Download Cygwin from here http://cygwin.com/setup.exe o When your at the stage in the installer when it asks you what packages to install, search for wget and click the box to say 'install' o let the installer run (it takes a while) o Next you need to get xmlstarlet from here: http://sourceforge.net/projects/xmlstar/ o it comes as a zip. open the zip and drag and drop the xml.exe to your cygwin bin folder eg: c:\cygwin\bin o rename the xml.exe to xmlstarlet.exe as that's what the scanki script is expecting (or you can rename it in the script) that should be that. the rest of the info in on the scanki dl page scanki: new smart.fm downloader - Shakunatz - 2011-02-05 mistamark Wrote:edit: I'm a tard!Once I've done all that, how I am supposed to make the plugin work? I have no computering skills at all :/ As the plugin is not an anki-plugin-file (.pyt or something like that if I recall well) I suppose I should run in through xmlstarter.exe or through cgwin.bat. However I tryed both with no results (I'm pretty sure I'm doing something wrong or missing some passage). Do you mind explaining me the how to make it run? I've alrady done all the passages in the quote
scanki: new smart.fm downloader - astendra - 2011-02-05 Make sure you put all the scanki files in the cygwin folder. You then need to start Cygwin to gain access to the 'bash' shell which is the environment the script is written for. There should be a terminal window reminiscent of DOS (cmd.exe). All you have to do to run the script is use the syntax described on the scanki page. For example, Code: ./scanki.sh [-v] < ./core2k-lists.txt > ./core2k.txtscanki: new smart.fm downloader - mistamark - 2011-02-05 Shakunatz Wrote:< snip >The rest of the instructions are at the scanki site. but for completeness: TheSite Wrote:Usage: scanki [OPTION] < LISTSFILEWhat does this mean? o Make a textfile (in notepad) with one smart.fm goal id per line.ie NOT the http://smart.fm/goals/ bit. eg: 73351 73438 73450 and save it as eg: c:\DownloadThese.txt o next click on 'Cygwin' -> 'Cygwin Bash Shell' in the Start Menu in Windows. o wait a few seconds while it loads up. You should see some green text and then a $ o [-1-] Now, I want to save the audio that's downloaded from smart.fm to my C: drive in 'Deckname.media' folder, so first make the directory by typing this (change the name to suit) Code: mkdir /cygdrive/c/Deckname.mediao [-2-] next, you need to set it as the current directory, so type: Code: cd /cygdrive/c/Deckname.mediao next we need to run scanki.sh (I have copied the scanki.sh file to my C: drive) and feed it the textfile with the list of smart.fm goal IDs in, so type : Code: /cygdrive/c/scanki.sh -s < /cygdrive/c/DownloadThese.txt > /cygdrive/c/FromScanki.txto that should do the trick. o after you've done this, you'll have a text file called 'FromScanki.txt' in your C drive and you can now import that into Anki like normal. ------- The '-s' means download the sound files. If you don't want to download the soundfiles then don't make the folders (ie, don't do steps [-1-] and [-2-] ) and don't put the '-s' in. If you only want to download the vocab (Smart.fm won't let you download the vocab audio anymore) put a '-v' instead of the '-s' Good luck. scanki: new smart.fm downloader - Shakunatz - 2011-02-05 Thank you a lot, you wrote a very detailed guide! You couldn't have been more clear ^.^ I'll test that this evening. Thank you again
|