mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-14 12:58:46 +02:00
lint: Format changes
This commit is contained in:
parent
534a9ca809
commit
de689f164a
@ -1,4 +1,5 @@
|
|||||||
"""Unternehmensregister Scraping."""
|
"""Unternehmensregister Scraping."""
|
||||||
|
# ruff: noqa: B023
|
||||||
import glob
|
import glob
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
@ -105,7 +106,9 @@ def scrape(query: str, download_dir: list[str]) -> None:
|
|||||||
driver.find_element(By.CLASS_NAME, "download-wrapper").click()
|
driver.find_element(By.CLASS_NAME, "download-wrapper").click()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
wait.until(lambda: wait_for_download_condition(download_path, num_files))
|
wait.until(
|
||||||
|
lambda: wait_for_download_condition(download_path, num_files)
|
||||||
|
)
|
||||||
file_name = "".join(e for e in company_name if e.isalnum()) + ".xml"
|
file_name = "".join(e for e in company_name if e.isalnum()) + ".xml"
|
||||||
rename_latest_file(
|
rename_latest_file(
|
||||||
download_path,
|
download_path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user