How do I run this script? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How do I run this script? (/thread-17138.html) |
How do I run this script? - someguy - Mar-30-2019 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. RE: How do I run this script? - snippsat - Mar-30-2019 (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 argumentSo 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 RE: How do I run this script? - someguy - Mar-30-2019 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. RE: How do I run this script? - snippsat - Mar-30-2019 Can not run it as a script,it's made to be used from command line cmd or cmder as i use.
RE: How do I run this script? - someguy - Mar-30-2019 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. |