pygetcomics 1.3.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/PKG-INFO +3 -2
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/garfield/__init__.py +1 -2
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/gen_pdf/__init__.py +1 -3
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/gocomics/__init__.py +1 -6
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/peanuts/gen_book.py +2 -2
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/pyproject.toml +2 -2
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/LICENSE +0 -0
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/README.rst +0 -0
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/__init__.py +0 -0
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/__init__.py +0 -0
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/gen_pdf/template/book.tex +0 -0
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/peanuts/__init__.py +0 -0
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/peanuts/clean_up.py +0 -0
- {pygetcomics-1.3.0 → pygetcomics-1.3.1}/berhoel/get_comics/tests/test_get_comics.py +0 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pygetcomics
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Download various daily comics.
|
|
5
5
|
Home-page: https://gitlab.com/berhoel/python/pyGetComics.git
|
|
6
6
|
License: BSD-2-Clause
|
|
7
7
|
Author: Berthold Höllmann
|
|
8
8
|
Author-email: berhoel@gmail.com
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9,<4.0
|
|
10
10
|
Classifier: Development Status :: 4 - Beta
|
|
11
11
|
Classifier: License :: OSI Approved :: BSD License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
18
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
@@ -12,7 +12,7 @@ from pathlib import Path
|
|
|
12
12
|
# Local library imports.
|
|
13
13
|
from ..gocomics import GoComics
|
|
14
14
|
|
|
15
|
-
__date__ = "
|
|
15
|
+
__date__ = "2023/03/19 19:35:26 hoel"
|
|
16
16
|
__author__ = "Berthold Höllmann"
|
|
17
17
|
__copyright__ = "Copyright © 2017, 2022 by Berthold Höllmann"
|
|
18
18
|
__credits__ = ["Berthold Höllmann"]
|
|
@@ -21,7 +21,6 @@ __email__ = "berhoel@gmail.com"
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class Garfield(GoComics):
|
|
24
|
-
|
|
25
24
|
"Download daily Garfield comcs fromGoComics."
|
|
26
25
|
|
|
27
26
|
# June 19, 1978
|
|
@@ -12,7 +12,7 @@ from pathlib import Path
|
|
|
12
12
|
# Third party library imports.
|
|
13
13
|
import jinja2
|
|
14
14
|
|
|
15
|
-
__date__ = "
|
|
15
|
+
__date__ = "2023/03/19 19:37:25 hoel"
|
|
16
16
|
__author__ = "Berthold Höllmann"
|
|
17
17
|
__copyright__ = "Copyright © 2017, 2022 by Berthold Höllmann"
|
|
18
18
|
__credits__ = ["Berthold Höllmann"]
|
|
@@ -30,7 +30,6 @@ class Keep(object):
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
class GenPDF(object):
|
|
33
|
-
|
|
34
33
|
latex_jinja_env = jinja2.Environment(
|
|
35
34
|
block_start_string=r"\BLOCK{",
|
|
36
35
|
block_end_string="}",
|
|
@@ -64,7 +63,6 @@ class GenPDF(object):
|
|
|
64
63
|
now += one_day
|
|
65
64
|
|
|
66
65
|
def __call__(self, start_date=None, end_date=None):
|
|
67
|
-
|
|
68
66
|
template = self.latex_jinja_env.get_template("book.tex")
|
|
69
67
|
gen_dates = self.gen_dates(start_date, end_date)
|
|
70
68
|
return template.render(
|
|
@@ -27,7 +27,7 @@ from selenium.webdriver.common import action_chains
|
|
|
27
27
|
from selenium.webdriver.common.keys import Keys
|
|
28
28
|
from selenium.webdriver.chrome.options import Options
|
|
29
29
|
|
|
30
|
-
__date__ = "
|
|
30
|
+
__date__ = "2023/03/19 19:37:43 hoel"
|
|
31
31
|
__author__ = "Berthold Höllmann"
|
|
32
32
|
__copyright__ = "Copyright © 2011-2017 by Berthold Höllmann"
|
|
33
33
|
__credits__ = ["Berthold Höllmann"]
|
|
@@ -39,13 +39,11 @@ TOUCH_FMT = "%Y%m%d0300"
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
class SeleniumSingleton(object):
|
|
42
|
-
|
|
43
42
|
__instance = None
|
|
44
43
|
|
|
45
44
|
def __init__(self):
|
|
46
45
|
"""Virtually private constructor."""
|
|
47
46
|
if SeleniumSingleton.__instance is None:
|
|
48
|
-
|
|
49
47
|
driverpath = None
|
|
50
48
|
for path in [
|
|
51
49
|
Path(i)
|
|
@@ -107,7 +105,6 @@ class SeleniumSingleton(object):
|
|
|
107
105
|
|
|
108
106
|
|
|
109
107
|
class SaveState(object):
|
|
110
|
-
|
|
111
108
|
"Save state information on already downloaded files and dates tried"
|
|
112
109
|
|
|
113
110
|
def __init__(self):
|
|
@@ -155,7 +152,6 @@ class GoComics(object):
|
|
|
155
152
|
statefile_name = Path("")
|
|
156
153
|
|
|
157
154
|
def __init__(self):
|
|
158
|
-
|
|
159
155
|
self.start_date = datetime.date(
|
|
160
156
|
self.start_year, self.start_month, self.start_day
|
|
161
157
|
)
|
|
@@ -202,7 +198,6 @@ class GoComics(object):
|
|
|
202
198
|
png_path = Path(f"{cur_date:{self.png_path_fmt}}")
|
|
203
199
|
pic_id = None
|
|
204
200
|
if not png_path.is_file():
|
|
205
|
-
|
|
206
201
|
state.tried[f"{cur_date}"] = (
|
|
207
202
|
state.tried.get(f"{cur_date}", -1) + 1
|
|
208
203
|
) % devidor
|
|
@@ -9,7 +9,7 @@ from __future__ import annotations, generator_stop
|
|
|
9
9
|
import datetime
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
|
|
12
|
-
__date__ = "
|
|
12
|
+
__date__ = "2023/03/19 19:38:06 hoel"
|
|
13
13
|
__author__ = "Berthold Höllmann"
|
|
14
14
|
__copyright__ = "Copyright © 2017, 2022 by Berthold Höllmann"
|
|
15
15
|
__credits__ = ["Berthold Höllmann"]
|
|
@@ -54,7 +54,7 @@ class PeanutsBook(object):
|
|
|
54
54
|
if self.side_weekd == 2 and self.with_sund:
|
|
55
55
|
out.write("\\clearpage\n")
|
|
56
56
|
self.side_weekd = 1
|
|
57
|
-
for
|
|
57
|
+
for func, path, date in self.days:
|
|
58
58
|
self.graphicspath(out, path)
|
|
59
59
|
func(out, path.name, date)
|
|
60
60
|
if self.with_sund or side_weekd == 2:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pyGetComics"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.1"
|
|
4
4
|
|
|
5
5
|
description = "Download various daily comics."
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ classifiers =[
|
|
|
24
24
|
]
|
|
25
25
|
|
|
26
26
|
[tool.poetry.dependencies]
|
|
27
|
-
python = "^3.
|
|
27
|
+
python = "^3.9"
|
|
28
28
|
Pillow = ">8.0.0"
|
|
29
29
|
lxml = ">4.5.0"
|
|
30
30
|
requests = ">2.23.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|