Skip to main content

A simple kplc pdf scraper

Project description

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

# PDF storage directory you can define your own path here
PDF_FILE_PATH = Path(__file__).parent.joinpath("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

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

stima_scraper-1.0.4.tar.gz (37.8 kB view hashes)

Uploaded Source

Built Distribution

stima_scraper-1.0.4-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

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