Skip to main content

A simple python package to scrape useful data from Lectio.dk

Project description

LectioScraper

LectioScraper is a python package for helping you scrape lectio.dk with ease. It uses requests for the actual scraping and beautifulsoup for parsing the html. Scraping lectio.dk can be a tedious task, as it requires so much different html elements to be parsed. and lectio is a big website so there are a lot of different pages to scrape. Here you have everything configured and all you need to do is to import lectioscraper and start scraping (see the whole documentation below).

Installation

Use the package manager pip to install lectioscraper.

pip install lectioscraper

Usage

import lectioscraper

# Initializes the class
client = lectioscraper.Lectio("username", "password", "schoolId")

# returns your schedule for the day in a json format
client.getTodaysSchedule(to_json=True)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Documentation

You can find the full documentation at https://lectioscraper.readthedocs.io/en/latest/? and it's strongly recommended as it's easy to read and gives you a good understanding at how to use this package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lectioscraper-0.0.8.1.tar.gz (26.2 kB view hashes)

Uploaded Source

Built Distribution

lectioscraper-0.0.8.1-py3.8.egg (36.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page