Commons talk:Imker (batch download)

Latest comment: 12 days ago by Watchduck in topic Icon

Broken? edit

Is it just me or does anybody else experience issues with downloading photos here? —DerHexer (Talk) 18:54, 6 December 2021 (UTC)Reply

Imker ist ein Java-Programm und funktioniert genauso wenig wie commonist usw. Gruss --Nightflyer (talk) 19:43, 17 December 2021 (UTC)Reply
@DerHexer: Ich habe gerade Imker v16.09.13 auf Fedora 35 mit openjdk 11.0.13 probiert und wollte SVGs herunterladen und ich bekam folgende Fehlermeldung:
java.util.zip.ZipException: Not in GZIP format
You may submit a bug report to the GitHub issue tracker:
https://github.com/MarcoFalke/wiki-java-tools/issues/new?title=%5BImker%5D+Exception&body=Version%3A+v16.09.13%0AStack+trace%3A%0A%60%60%60java%0Ajava.util.zip.ZipException%3A+Not+in+GZIP+format%0A%09at+java.base%2Fjava.util.zip.GZIPInputStream.readHeader%28GZIPInputStream.java%3A166%29%0A%09at+java.base%2Fjava.util.zip.GZIPInputStream.%3Cinit%3E%28GZIPInputStream.java%3A80%29%0A%09at+java.base%2Fjava.util.zip.GZIPInputStream.%3Cinit%3E%28GZIPInputStream.java%3A92%29%0A%09at+wiki.Wiki.fetch%28Unknown+Source%29%0A%09at+wiki.Wiki.getImage%28Unknown+Source%29%0A%09at+wiki.Wiki.getImage%28Unknown+Source%29%0A%09at+app.ImkerBase%241.fetch%28Unknown+Source%29%0A%09at+app.App.attemptFetch%28Unknown+Source%29%0A%09at+app.App.attemptFetch%28Unknown+Source%29%0A%09at+app.App.attemptFetch%28Unknown+Source%29%0A%09at+app.ImkerBase.downloadLoop%28Unknown+Source%29%0A%09at+app.ImkerGUI%244.doInBackground%28Unknown+Source%29%0A%09at+app.ImkerGUI%244.doInBackground%28Unknown+Source%29%0A%09at+java.desktop%2Fjavax.swing.SwingWorker%241.call%28SwingWorker.java%3A304%29%0A%09at+java.base%2Fjava.util.concurrent.FutureTask.run%28FutureTask.java%3A264%29%0A%09at+java.desktop%2Fjavax.swing.SwingWorker.run%28SwingWorker.java%3A343%29%0A%09at+java.base%2Fjava.util.concurrent.ThreadPoolExecutor.runWorker%28ThreadPoolExecutor.java%3A1128%29%0A%09at+java.base%2Fjava.util.concurrent.ThreadPoolExecutor%24Worker.run%28ThreadPoolExecutor.java%3A628%29%0A%09at+java.base%2Fjava.lang.Thread.run%28Thread.java%3A829%29%0A%0A%60%60%60%0A
And include the following details:
Version: v16.09.13
Stack trace:
```java
java.util.zip.ZipException: Not in GZIP format
	at java.base/java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:166)
	at java.base/java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:80)
	at java.base/java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:92)
	at wiki.Wiki.fetch(Unknown Source)
	at wiki.Wiki.getImage(Unknown Source)
	at wiki.Wiki.getImage(Unknown Source)
	at app.ImkerBase$1.fetch(Unknown Source)
	at app.App.attemptFetch(Unknown Source)
	at app.App.attemptFetch(Unknown Source)
	at app.App.attemptFetch(Unknown Source)
	at app.ImkerBase.downloadLoop(Unknown Source)
	at app.ImkerGUI$4.doInBackground(Unknown Source)
	at app.ImkerGUI$4.doInBackground(Unknown Source)
	at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

```

Diese Meldung wurde bereits auf GitHub auf https://github.com/MarcoFalke/wiki-java-tools/issues/44 (vermutlich von @Sebastian Wallroth: ?) gemeldet.

@Nightflyer: Soll man das auf phab: melden? Bzw. scheinst du mehr Details zu haben warum Java-Programme nicht mehr funktionieren.

 — Johannes Kalliauer - Talk | Contributions 17:46, 27 December 2021 (UTC)Reply

@JoKalliauer: Eine Meldung auf phab ist IMHO verschwendete Zeit. Die Java-Tools stammen von Benutzern. Wenn die nicht mehr aktiv sind, war es das. Und die Foundation unterstützt nur ihren eigenen Upload-Wizard. Vioelleicht findest du hier etwas: [1], [2], [3], [4] Gruss --Nightflyer (talk) 19:04, 27 December 2021 (UTC)Reply

I came across this from the MediaWiki, MediaWiki 1.37/Deprecation of legacy API token parameters. Makes it sound like if you can just identify the outdated code and replace them with the modern versions it might start working again. Unfortunately, I don't have the slightest clue how to even approach that.--The Navigators (talk) 05:26, 17 January 2022 (UTC)Reply

I'm absolutely certain that there are people who could fix this, or who could explain in simple terms for those of us who have tried and failed to understand what on earth Github even is HOW to fix it, in about 2 minutes. PLEASE, anyone seeing this, this has made every part of my job take around 100 times longer for the last year, and no matter how hard I try to understand git coding, I just can't. Please help to fix this. -JC — Preceding unsigned comment was added by 151.226.67.44 (talk) 09:38, 5 April 2023 (UTC)Reply

I can feel your pain. I've fixed this app by changing couple of lines in source code. GUI is working, files are downloading correctly, I can use this app, you can too. Download it here. I've added a mention at project page. But you should understand it is generally not safe to download and run random stuff from GitHub. Podbrushkin (talk) 16:09, 22 November 2023 (UTC)Reply
Incredibly, I started looking for a way to batch download Wikimedia files just a few hours ago! But the tools available are usually only for images, or are foreign to me. Thank you for this hotfix. I can confirm that Podbrushkin didn't add anything malicious — all the files have the same SHA256 sum as in the original project, except for the few lines he mentions + changing namespace from javax to jakarta. And the original project has 25 stars. That doesn't guarantee safety, but I'd say it's trustworthy :) It's a shame though that no available tool can automatically create subdirectories. K-Hoszowski (talk) 00:36, 23 November 2023 (UTC)Reply
I'm glad it was useful, thank you for confirming relative safety of my release. I thought I should post here a hash sum of an actual .jar file, but looks like this hash sum is not persistent for the same source code, so it's safeness cannot be guaranteed. What actually has been confirmed as safe can be acquired if mvn and git cmd tools are installed: Win+R -> cmd -> Enter ->
git clone https://github.com/Podbrushkin/Imker-hotfix.git && cd Imker-hotfix && git reset --hard ea8ba523d31 && mvn clean package -q && cd target && explorer .
This command will produce a demo-0.0.1-SNAPSHOT-jar-with-dependencies.jar file and will open a directory with it.
Jar file which is available in releases/assets since Nov22 has a SHA256 fcda9c27f191ee8e7160b380507f70894c3f0396702e7db89eb83505f766b955 but there is no guarantee it was built from sources which was confirmed as trustworthy by K-Hoszowski . Podbrushkin (talk) 09:44, 28 December 2023 (UTC)Reply
It's working wonderfully. I used it to download thousands of files. It is a great shame though that recursive downloads were never implemented. Maybe I will add it some day. K-Hoszowski (talk) 23:59, 25 November 2023 (UTC)Reply

Icon edit

 

I propose the icon shown on the right. It matches an icon of Pywikibot (a tool that contains a batch uploader). Watchduck (quack) 14:45, 29 April 2024 (UTC)Reply

Return to the project page "Imker (batch download)".