Added window size to driver config for internal
This commit is contained in:
джерело
977f554043
коміт
6fd875f78d
|
@ -3,6 +3,8 @@ Changelog
|
|||
|
||||
This changelog contains a list of versions with their respective high-level changes.
|
||||
|
||||
v0.4.1:
|
||||
- specify window size for internal scraping
|
||||
v0.4.0:
|
||||
- added public scraping support
|
||||
- added geckodriver path for internal scraping
|
||||
|
|
|
@ -6,7 +6,7 @@ ALLRIS Scraper
|
|||
.. image:: https://img.shields.io/pypi/pyversions/twomartens.allrisscraper.svg
|
||||
:alt: Python 3.7 and 3.8
|
||||
.. image:: https://img.shields.io/pypi/v/twomartens.allrisscraper.svg
|
||||
:alt: version 0.4.0
|
||||
:alt: version 0.4.1
|
||||
|
||||
This scraper offers both public and private scraping. The latter requires your username and password and performs the
|
||||
following tasks for you:
|
||||
|
|
2
setup.py
2
setup.py
|
@ -30,7 +30,7 @@ setup(
|
|||
author="Jim Martens",
|
||||
author_email="github@2martens.de",
|
||||
url="https://git.2martens.de/2martens/allris-scraper",
|
||||
version="0.4.0",
|
||||
version="0.4.1",
|
||||
namespace_packages=["twomartens"],
|
||||
packages=find_packages('src', exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
|
||||
package_dir={'': 'src'},
|
||||
|
|
|
@ -51,6 +51,7 @@ def main(_) -> None:
|
|||
options.headless = True
|
||||
binary = FirefoxBinary(firefox_binary)
|
||||
driver = webdriver.Firefox(firefox_binary=binary, options=options, executable_path=geckodriver)
|
||||
driver.set_window_size(1920, 1080)
|
||||
driver.delete_all_cookies()
|
||||
driver.implicitly_wait(5)
|
||||
driver.get(ALLRIS_LOGIN)
|
||||
|
|
Завантаження…
Посилання в новій задачі