From ba0644d5ae92e001e2f040eab11506c904cf3e1c Mon Sep 17 00:00:00 2001 From: dominip89 <dominip89@mi.fu-berlin.de> Date: Sun, 23 May 2021 17:58:28 +0000 Subject: [PATCH] Update course_scraper.py --- unisportomat/course_scraper/course_scraper.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/unisportomat/course_scraper/course_scraper.py b/unisportomat/course_scraper/course_scraper.py index 2d51c7f..e0671be 100644 --- a/unisportomat/course_scraper/course_scraper.py +++ b/unisportomat/course_scraper/course_scraper.py @@ -1,12 +1,11 @@ """ -Implementation of a rudementary scraping tool +Implementation of a rudementary scraping tool for http://www.buchsys.de for SWP UniSport-O-Mat. """ import requests from bs4 import BeautifulSoup - def fetch_website(url): """ Helper function to fetch the content of a website. @@ -29,9 +28,9 @@ def fetch_website(url): def scraping(site=None) -> dict: """ - Returns a dictionary of the form {name: link}, - containing the scraped content of - https://www.buchsys.de/fu-berlin/angebote/aktueller_zeitraum/index.html, + Returns a dictionary of the form {name: link}, + containing the scraped content of + https://www.buchsys.de/fu-berlin/angebote/aktueller_zeitraum/index.html, unless another URL is given as an argument. """ courses = {} -- GitLab