Skip to content
Snippets Groups Projects
Commit ba0644d5 authored by dominip89's avatar dominip89
Browse files

Update course_scraper.py

parent 739fcb5f
No related branches found
No related tags found
No related merge requests found
"""
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 = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment