Browse Source

Added window size to driver config for internal

master
Jim Martens 2 months ago
parent
commit
6fd875f78d
4 changed files with 5 additions and 2 deletions
  1. +2
    -0
      CHANGELOG.rst
  2. +1
    -1
      README.rst
  3. +1
    -1
      setup.py
  4. +1
    -0
      src/twomartens/allrisscraper/internal.py

+ 2
- 0
CHANGELOG.rst View File

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


+ 1
- 1
README.rst View File

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


+ 1
- 1
setup.py View File

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


+ 1
- 0
src/twomartens/allrisscraper/internal.py View File

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


Loading…
Cancel
Save