pygetcomics 1.4.0__tar.gz → 1.4.2__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.4.0 → pygetcomics-1.4.2}/PKG-INFO +3 -2
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/gocomics/__init__.py +12 -3
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/pyproject.toml +11 -15
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/LICENSE +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/README.rst +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/__init__.py +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/__init__.py +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/garfield/__init__.py +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/gen_pdf/__init__.py +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/gen_pdf/template/book.tex +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/peanuts/__init__.py +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/peanuts/clean_up.py +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/peanuts/gen_book.py +0 -0
- {pygetcomics-1.4.0 → pygetcomics-1.4.2}/berhoel/get_comics/tests/test_get_comics.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 1.4.
|
|
2
|
+
Name: pyGetComics
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: Download various daily comics.
|
|
5
5
|
Home-page: https://gitlab.com/berhoel/python/pyGetComics.git
|
|
6
6
|
License: BSD-2-Clause
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
19
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
19
20
|
Requires-Dist: Pillow (>8.0.0)
|
|
20
21
|
Requires-Dist: jinja2 (>3.0.0)
|
|
@@ -25,7 +25,10 @@ from selenium import webdriver
|
|
|
25
25
|
from lxml.html import fromstring
|
|
26
26
|
from selenium.webdriver.common import action_chains
|
|
27
27
|
from selenium.webdriver.common.keys import Keys
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
# from selenium.webdriver.chrome.options import Options
|
|
30
|
+
from selenium.webdriver.firefox.options import Options
|
|
31
|
+
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
|
|
29
32
|
|
|
30
33
|
__date__ = "2023/06/20 21:57:10 hoel"
|
|
31
34
|
__author__ = "Berthold Höllmann"
|
|
@@ -45,7 +48,7 @@ class SeleniumSingleton:
|
|
|
45
48
|
"""Virtually private constructor."""
|
|
46
49
|
self.driver = None
|
|
47
50
|
if SeleniumSingleton.__instance is None:
|
|
48
|
-
# https://stackoverflow.com/questions/46920243/how-to-configure-chromedriver-to-initiate-chrome-browser-in-headless-mode-
|
|
51
|
+
# https://stackoverflow.com/questions/46920243/how-to-configure-chromedriver-to-initiate-chrome-browser-in-headless-mode-thr<oug
|
|
49
52
|
options = Options()
|
|
50
53
|
options.add_argument("--headless")
|
|
51
54
|
options.binary_location = "/usr/bin/google-chrome-stable"
|
|
@@ -53,7 +56,13 @@ class SeleniumSingleton:
|
|
|
53
56
|
options.add_argument(
|
|
54
57
|
"--disable-gpu"
|
|
55
58
|
) # Last I checked this was necessary.
|
|
56
|
-
|
|
59
|
+
options.add_argument("--headless")
|
|
60
|
+
firefox_profile = FirefoxProfile()
|
|
61
|
+
firefox_profile.set_preference("javascript.enabled", True)
|
|
62
|
+
options.profile = firefox_profile
|
|
63
|
+
self._driver = webdriver.Firefox(options=options)
|
|
64
|
+
|
|
65
|
+
# self.driver = webdriver.Chrome(options)
|
|
57
66
|
self.driver.get("http://www.gocomics.com/")
|
|
58
67
|
if self.driver.current_url.startswith("https://login.microsoftonline.com/"):
|
|
59
68
|
self.ms_login()
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pyGetComics"
|
|
3
|
-
version = "1.4.
|
|
3
|
+
version = "1.4.2"
|
|
4
4
|
|
|
5
5
|
description = "Download various daily comics."
|
|
6
6
|
|
|
7
|
-
packages = [
|
|
8
|
-
{ include = "berhoel" },
|
|
9
|
-
]
|
|
7
|
+
packages = [{ include = "berhoel" }]
|
|
10
8
|
|
|
11
9
|
authors = ["Berthold Höllmann <berhoel@gmail.com>"]
|
|
12
10
|
license = "BSD-2-Clause"
|
|
@@ -15,12 +13,12 @@ repository = "https://gitlab.com/berhoel/python/pyGetComics.git"
|
|
|
15
13
|
|
|
16
14
|
readme = "README.rst"
|
|
17
15
|
|
|
18
|
-
classifiers =[
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"License :: OSI Approved :: BSD License",
|
|
19
|
+
"Programming Language :: Python",
|
|
20
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
24
22
|
]
|
|
25
23
|
|
|
26
24
|
[tool.poetry.dependencies]
|
|
@@ -38,7 +36,7 @@ pdbpp = "*"
|
|
|
38
36
|
tox = "*"
|
|
39
37
|
pytest = "*"
|
|
40
38
|
pytest-benchmark = "*"
|
|
41
|
-
pytest-black = "*"
|
|
39
|
+
pytest-black-ng = "*"
|
|
42
40
|
pytest-cache = "*"
|
|
43
41
|
pytest-cov = "*"
|
|
44
42
|
pytest-env = "*"
|
|
@@ -53,7 +51,7 @@ pylint = "*"
|
|
|
53
51
|
pylint-common = "*"
|
|
54
52
|
pylint-plugin-utils = "*"
|
|
55
53
|
bhoelhelper = ">=1.3.0"
|
|
56
|
-
berhoel-sphinx-settings = {git = "https://gitlab.com/berhoel/python/berhoel-sphinx-settings.git", rev = "main"}
|
|
54
|
+
berhoel-sphinx-settings = { git = "https://gitlab.com/berhoel/python/berhoel-sphinx-settings.git", rev = "main" }
|
|
57
55
|
tomli = "*"
|
|
58
56
|
sphinx-argparse-cli = "*"
|
|
59
57
|
|
|
@@ -85,9 +83,7 @@ import_heading_firstparty = 'First party library imports.'
|
|
|
85
83
|
import_heading_localfolder = 'Local library imports.'
|
|
86
84
|
default_section = "THIRDPARTY"
|
|
87
85
|
known_first_party = ["berhoel"]
|
|
88
|
-
known_third_party = [
|
|
89
|
-
"pytest",
|
|
90
|
-
]
|
|
86
|
+
known_third_party = ["pytest"]
|
|
91
87
|
|
|
92
88
|
[tool.pytest.ini_options]
|
|
93
89
|
minversion = "7.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|