Added window size to driver config for internal

This commit is contained in:
Jim Martens 2020-08-20 10:50:13 +02:00
vanhempi 977f554043
commit 6fd875f78d
4 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa

Näytä tiedosto

@ -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

Näytä tiedosto

@ -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:

Näytä tiedosto

@ -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'},

Näytä tiedosto

@ -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)