Closed hugolpz closed 2 years ago
Well, I need full codes to debug...
Done, added above. There isn't much more really.
It connects well, gets the category, gets the list of files, visibly reads the titles as expected, but doesn't recognize .download
.
I suspected my dependencies are broken or outdated, but I checked everywhere locally (.//node_modules/wikiapi/wikiapi.js
line 1781, 1411-1425) and all seems as expected. The function download
/Wikiapi_download
is there and spelling is correct.
I think it's related to wikiapi.js#1414.
I just release cejs v4.4.2. Maybe this will solve this problem?
Working !
yug@yug-k401ub:~/Documents/WikiapiJS-Eggs$ node wiki-download-many.js
get_API_parameters: Cache commonswiki: path=query+siteinfo
Username ShufaBot is connected !
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q33093_(bas)-Bile_rene-Bonjour.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q56668_(mcn)-Bile_rene-Bonjour.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q33093_(bas)-Bile_rene-Bonne_nuit.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q56668_(mcn)-Bile_rene-Bonne_nuit.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q33093_(bas)-Bile_rene-C'est_comment?.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q56668_(mcn)-Bile_rene-C'est_comment?.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q33093_(bas)-Bile_rene-Comment_vas-tu?.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q56668_(mcn)-Bile_rene-Comment_vas-tu?.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q56668_(mcn)-Bile_rene-guten_tag.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q56668_(mcn)-Bile_rene-Kal_nga'a?(Comment_allez-vous?).wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q33093_(bas)-Bile_rene-Que_se_passe_t-il?.wav].
get_URL_cache_node.cache: Write data to cache file [./downloads/LL-Q56668_(mcn)-Bile_rene-Que_se_passe_t-il?.wav].
A second run do not re-download.
Seems good.
Hello Kanasimi, Hope you are going well. Given a Commons category name, I want to download all its (12) files.
I updated wikiapi :
Following the quite elegant doc, I "coded" the following:
I get the following error message:
Given JSdoc3 generates the documentation from the code, and I do find
download
at line 1781 in both your github and my local file... I'am quite confused. Any idea ?