Path: news.nzbot.com!not-for-mail
From: symm <symm@nowhere.org>
Newsgroups: alt.binaries.pictures.comics
Message-ID: <2018122120310864325-symm@nowhereorg>
References: <2018112810060898626-js@yoyodynecom> <2018122114242343807-symm@nowhereorg> <2018122115554165405-js@yoyodynecom>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: Symm -- So tell me about this Python script
User-Agent: Unison/2.1.10
Lines: 60
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Sat, 22 Dec 2018 03:31:09 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Fri, 21 Dec 2018 20:31:08 -0700
X-Received-Bytes: 3306
X-Received-Body-CRC: 1582284227
Xref: news.nzbot.com alt.binaries.pictures.comics:5500
On 2018-12-21 22:55:41 +0000, John Smallberries said:
> On 2018-12-21 21:24:23 +0000, symm said:
>
>> On 2018-11-28 17:06:08 +0000, John Smallberries said:
>>
>>> ...
>>
>> I hacked a few different versions together a few months ago.
>>
>> The simpliest just spits out the missing issues without condensing
>> sequential missing issues (e.g. "101, 102, 103" instead of "101-103")
>> from #1 to the last issue found (so it doesn't list missing issues
>> after the last number found. The simple version uses Python 2.x with
>> the exeption of importing the 3.x print function. This version is the
>> most likely to compatible on different platforms and not need imported
>> packages IIRC. Basically used as a command line tool but could be
>> encapsulated in an Automator service, etc. It doesn't process minus/-1,
>> 1b, 1,000,000 promotional issues, etc. It assumes issues are named
>> identically prior to issue number.
>>
>> I had been working on versions to condense sequential missing issues,
>> copy results to the clipboard (on Macs) and allow an optional
>> parameters for last published issue, search for c2c/ctc status, print #
>> pages for non-c2c issues, etc.as well as play with Python 3.x and
>> various imported packages.
>>
>> I even invesrtigated APIs to the comicbook info sites to automatically
>> pull published issues info, but didn't get very far as I recall.
>>
>> If there's interest I'll dig it up and brush it off.
>
> I would be interested in giving it a whirl.
OK, did a little more hacking on it for distribution. Now supports
optional last issue number and not published issue ranges. I've tried
to make it platform agnostic but no guarantees.
I checked my pip list and it doesn't appear that any of the imports
require external packages. Again no guarantees.
Here's the help response:
python ~/scripts/python/list_missing_issues_v0.2.py -h
usage: list_missing_issues_v0.2.py [-h] [-l LASTISSUE] [-n NOTPUBLISHED]
archivePath
positional arguments:
archivePath list the missing issues based on archivePath and copy
missing issues to clipboard on Macs
optional arguments:
-h, --help show this help message and exit
-l LASTISSUE, --lastissue LASTISSUE
last issue number of series (if missing)
-n NOTPUBLISHED, --notpublished NOTPUBLISHED
list of issues not published e.g. "7,100-120"
|
|