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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Egg

File details

Details for the file lectioscraper-0.0.8.1.tar.gz.

File metadata

  • Download URL: lectioscraper-0.0.8.1.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for lectioscraper-0.0.8.1.tar.gz
Algorithm Hash digest
SHA256 f9512660c6f0cdd6687084c30f741e712c6f3ed8fdc7c8b8952fac0fc8d6240e
MD5 2bb388fb2ffbcd52e1a807a037557e52
BLAKE2b-256 3918f047f3d0d5456c565138927fc36f03a830df3c024f3c8031d1220196a5a8

See more details on using hashes here.

File details

Details for the file lectioscraper-0.0.8.1-py3.8.egg.

File metadata

  • Download URL: lectioscraper-0.0.8.1-py3.8.egg
  • Upload date:
  • Size: 36.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for lectioscraper-0.0.8.1-py3.8.egg
Algorithm Hash digest
SHA256 1964169c0d0d08076f9c21a7e28e956c4c01510148fc088ce63971ec781cc648
MD5 5fb6513703872e793875100acee2b1dd
BLAKE2b-256 28a301848df63c1f438641227bcae7286a6c63b81f545255c6687658fd5d2d5f

See more details on using hashes here.

Supported by

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