Skip to content

A package to scrape Kenya Power and Lighting Company(KPLC) power interruption pdf documents

License

Notifications You must be signed in to change notification settings

DanNduati/Stima_scraper

Repository files navigation

Stima Scraper

Project Status: WIP – Initial development is in progress.

Description

Stima scraper extracts and pulls scheduled power interruptions pdf data off KPLC's website.

Prerequisites

  • Python3

Installation

$ pip install stima-scraper

Usage

from pathlib import Path

from stimascraper.scraper import StimaScraper

# A "pdfs/" directory in the current working directory
PDF_FILE_PATH = str(Path.cwd().joinpath("pdfs"))

# You can specify your own pdf directory as well:
# PDF_FILE_PATH = "/home/daniel/Desktop/pdfs"


def main():
    scraper = StimaScraper(pdf_path=PDF_FILE_PATH)
    scraper.scrape()


if __name__ == "__main__":
    main()

Demo

asciicast

Built with

License and Copyright

license

Copyright 2022 Daniel Chege Nduati

About

A package to scrape Kenya Power and Lighting Company(KPLC) power interruption pdf documents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages