Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[psp, steno] vypnout ssl verifikaci #291

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/partial.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
pip install -r requirements.txt
- name: Run partial processing
id: main
if: matrix.module != 'eufondy' && matrix.module != 'psp' && matrix.module != 'steno'
if: matrix.module != 'eufondy' && matrix.module != 'psp'
run: |
python3 main.py --connstring sqlite:///data.db --partial ${{ matrix.module }}
- name: Run partial processing (broken jobs)
Expand Down
3 changes: 3 additions & 0 deletions data/psp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
import multiprocessing
import os
import shutil
import ssl
import zipfile
from contextlib import contextmanager
from datetime import datetime
from io import TextIOWrapper
from tempfile import TemporaryDirectory
from urllib.request import urlopen

ssl._create_default_https_context = ssl._create_unverified_context

NULL_DATE = datetime(1900, 1, 1, 0, 0)
HTTP_TIMEOUT = 90

Expand Down
3 changes: 3 additions & 0 deletions data/steno/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import re
import shutil
import ssl
import tempfile
import zipfile
from collections import Counter
Expand All @@ -16,6 +17,8 @@
import lxml.html
from tqdm import tqdm

ssl._create_default_https_context = ssl._create_unverified_context

HTTP_TIMEOUT = 90


Expand Down
Loading