Compare commits

..

2 Commits

Author SHA1 Message Date
da602366f8 Bump version to 1.1.2 2019-05-17 07:43:32 +00:00
2016f61bf8 Crawl more of the TI page 2019-05-09 11:04:24 +00:00
3 changed files with 10 additions and 16 deletions

View File

@ -37,21 +37,12 @@ class Ti:
available = self._find_available(urlpart) available = self._find_available(urlpart)
if "Folien" in available: for name, address in sorted(available.items()):
path = pathlib.PurePath("Folien") path = pathlib.PurePath(name)
if filter(path): if filter(path):
self._crawl(urlpart + available["Folien"], path, orga, self._crawl(urlpart + address, path, orga, transform)
transform)
else: else:
logger.info("Skipping Folien/") loggwe.info(f"Skipping {name}/")
if "Blätter" in available:
path = pathlib.PurePath("Blätter")
if filter(path):
self._crawl(urlpart + available["Blätter"], path, orga,
transform)
else:
logger.info("Skipping Blätter/")
orga.clean_sync_dir() orga.clean_sync_dir()
orga.clean_temp_dir() orga.clean_temp_dir()
@ -71,6 +62,9 @@ class Ti:
if soup.find(href="./Uebungen/Uebungen.php"): if soup.find(href="./Uebungen/Uebungen.php"):
logger.info("Found Blätter/") logger.info("Found Blätter/")
available["Blätter"] = "/Uebungen/" available["Blätter"] = "/Uebungen/"
if soup.find(href="./Tutorien/Tutorien.php"):
logger.info("Found Tutorien/")
available["Tutorien"] = "/Tutorien/"
return available return available

View File

@ -10,7 +10,7 @@ test it though).
To install PFERD or update your installation to the latest version, run this To install PFERD or update your installation to the latest version, run this
wherever you want to install/have installed PFERD: wherever you want to install/have installed PFERD:
``` ```
$ pip install git+https://github.com/Garmelon/PFERD@v1.1.1 $ pip install git+https://github.com/Garmelon/PFERD@v1.1.2
``` ```
The use of [venv](https://docs.python.org/3/library/venv.html) is recommended. The use of [venv](https://docs.python.org/3/library/venv.html) is recommended.
@ -25,7 +25,7 @@ $ mkdir Vorlesungen
$ cd Vorlesungen $ cd Vorlesungen
$ python3 -m venv . $ python3 -m venv .
$ . bin/activate $ . bin/activate
$ pip install git+https://github.com/Garmelon/PFERD@v1.1.1 $ pip install git+https://github.com/Garmelon/PFERD@v1.1.2
$ curl -O https://raw.githubusercontent.com/Garmelon/PFERD/master/example_config.py $ curl -O https://raw.githubusercontent.com/Garmelon/PFERD/master/example_config.py
$ python3 example_config.py $ python3 example_config.py
$ deactivate $ deactivate

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup( setup(
name="PFERD", name="PFERD",
version="1.1.1", version="1.1.2",
packages=["PFERD"], packages=["PFERD"],
install_requires=[ install_requires=[
"requests>=2.21.0", "requests>=2.21.0",