mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
workaround for #207
This commit is contained in:
@@ -8,14 +8,15 @@ from collections.abc import Iterable
|
||||
from datetime import datetime
|
||||
from logging.handlers import RotatingFileHandler
|
||||
from typing import Any, Final
|
||||
from wcmatch import glob
|
||||
|
||||
import certifi
|
||||
from overrides import overrides
|
||||
from ruamel.yaml import YAML
|
||||
from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException, TimeoutException, WebDriverException
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.remote.webelement import WebElement
|
||||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from wcmatch import glob
|
||||
|
||||
from . import utils, resources, extract # pylint: disable=W0406
|
||||
from .utils import abspath, apply_defaults, ensure, is_frozen, pause, pluralize, safe_get, parse_datetime
|
||||
@@ -31,6 +32,11 @@ LOG.setLevel(logging.INFO)
|
||||
class KleinanzeigenBot(SeleniumMixin):
|
||||
|
||||
def __init__(self) -> None:
|
||||
|
||||
# workaround for https://github.com/Second-Hand-Friends/kleinanzeigen-bot/issues/207
|
||||
# see https://github.com/pyinstaller/pyinstaller/issues/7229#issuecomment-1309383026
|
||||
os.environ["SSL_CERT_FILE"] = certifi.where()
|
||||
|
||||
super().__init__()
|
||||
|
||||
self.root_url = "https://www.kleinanzeigen.de"
|
||||
|
||||
Reference in New Issue
Block a user