Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I run this script?
#1
I'm trying to use this script to extract files from zbthumbnail.info:
https://github.com/ross-spencer/zbthumbnail-extractor

Ran the script, but I'm not sure what the proper syntax is to get it do what I want (never used Python).
I tried typing "--info" (without quotes) and other variations including the filename, but I get various errors. The zbthumbnail.info file is in the same folder as the Python script, FYI.

I don't know Python's syntax and I'm sure you could figure it out in a second.
Reply
#2
(Mar-30-2019, 04:58 AM)someguy Wrote: I tried typing "--info" (without quotes) and other variations including the filename, but I get various errors. The zbthumbnail.info file is in the same folder as the Python script, FYI.
What various errors?

Quick test.
E:\div_code\xy
λ git clone https://github.com/ross-spencer/zbthumbnail-extractor.git
Cloning into 'zbthumbnail-extractor'...
remote: Enumerating objects: 18, done.
remote: Total 18 (delta 0), reused 0 (delta 0), pack-reused 18
Unpacking objects: 100% (18/18), done.
Checking connectivity... done.

E:\div_code\xy
λ cd zbthumbnail-extractor\

# Did download a ZbThumbnail.info for test
E:\div_code\xy\zbthumbnail-extractor (master)
λ python zbextractor.py --info ZbThumbnail.info
0 JPEGs discovered.

# Without ZbThumbnail.info
E:\div_code\xy\zbthumbnail-extractor (master)
λ python zbextractor.py --info
usage: zbextractor.py [-h] [--info INFO]
zbextractor.py: error: argument --info: expected one argument
So it work as excepted,if i have had thumbnail files:
Quote:If zbextractor.py accurately discovers thumbnail files then it will a folder with the following name
'{filename}-{uuid4}/' under which it will put the stored images, e.g. image-0001.jpg, image-0002.jpg.
Reply
#3
When I run the script it gives me this:

usage: zbextractor.py [-h] [--info INFO]

Extract JPG from ZbThumbnail.info files. NOTE: May also be applicable to
Thumbs.db at users own risk.

optional arguments:
  -h, --help   show this help message and exit
  --info INFO  Optional: Single zbthumbnail.info file to read.
But nothing happens. It doesn't create any images or folders, even though the zbthumbnail.info file is in the same folder as the Python script. So I thought I would have to type "--info" as a command to get it to run, but I just get syntax/name/trackeback errors.
Reply
#4
Can not run it as a script,it's made to be used from command line cmd or cmder as i use.
Reply
#5
Nevermind. I thought this was the only way, but apparently you can grab any ol' JPEG extractor to get the images out.

I used MultiExtractor which lets you view and extract individual images. While ExtractJPEG will extract all of them into the folder.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020