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