mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
c8ee456d33 | |||
2752e98621 | |||
1572e11da8 | |||
ea01dc7cb2 | |||
aba8d46d26 | |||
77056e6f8d | |||
064f12c14c |
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ pyvenv.cfg
|
||||
|
||||
.tmp/
|
||||
pip-selfcheck.json
|
||||
.mypy_cache/
|
||||
|
@ -28,8 +28,12 @@ class ShibbolethAuthenticator:
|
||||
"application/zip",
|
||||
"application/msword",
|
||||
"application/vnd.wolfram.nb",
|
||||
"application/octet-stream",
|
||||
"application/excel",
|
||||
"text/xml",
|
||||
"text/xml;charset=UTF-8",
|
||||
"text/plain",
|
||||
"text/plain;charset=UTF-8",
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
]
|
||||
|
@ -4,6 +4,7 @@ import getpass
|
||||
import logging
|
||||
import pathlib
|
||||
import re
|
||||
from urllib.parse import urljoin
|
||||
|
||||
import bs4
|
||||
import requests
|
||||
@ -43,7 +44,7 @@ class Ti:
|
||||
if filter(path):
|
||||
self._crawl(urlpart + address, path, orga, transform)
|
||||
else:
|
||||
loggwe.info(f"Skipping {name}/")
|
||||
logger.info(f"Skipping {name}/")
|
||||
|
||||
orga.clean_sync_dir()
|
||||
orga.clean_temp_dir()
|
||||
@ -76,7 +77,7 @@ class Ti:
|
||||
|
||||
for filelink in soup.find_all("a", href=self.FILE_RE):
|
||||
filepath = path / filelink["href"]
|
||||
fileurl = url + "/" + filelink["href"]
|
||||
fileurl = urljoin(url, filelink["href"])
|
||||
|
||||
new_path = transform(filepath)
|
||||
if new_path is None:
|
||||
|
@ -10,7 +10,7 @@ test it though).
|
||||
To install PFERD or update your installation to the latest version, run this
|
||||
wherever you want to install/have installed PFERD:
|
||||
```
|
||||
$ pip install git+https://github.com/Garmelon/PFERD@v1.1.4
|
||||
$ pip install git+https://github.com/Garmelon/PFERD@v1.1.7
|
||||
```
|
||||
|
||||
The use of [venv](https://docs.python.org/3/library/venv.html) is recommended.
|
||||
@ -25,7 +25,7 @@ $ mkdir Vorlesungen
|
||||
$ cd Vorlesungen
|
||||
$ python3 -m venv .
|
||||
$ . bin/activate
|
||||
$ pip install git+https://github.com/Garmelon/PFERD@v1.1.4
|
||||
$ pip install git+https://github.com/Garmelon/PFERD@v1.1.7
|
||||
$ curl -O https://raw.githubusercontent.com/Garmelon/PFERD/master/example_config.py
|
||||
$ python3 example_config.py
|
||||
$ deactivate
|
||||
|
Reference in New Issue
Block a user