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 --upgrade 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 2020 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.3.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

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

stima_scraper-1.0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file stima_scraper-1.0.3.tar.gz.

File metadata

  • Download URL: stima_scraper-1.0.3.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for stima_scraper-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c485cf14ce8da7daa7ec87b83105f7c77a447c2180e41b0160175c2dd1639c22
MD5 c427f15fdd40b162070908a92e3f71cd
BLAKE2b-256 ffa0c57a477146844c34b7ad55282899923fa36a906ab59e86db4d373e6af4aa

See more details on using hashes here.

File details

Details for the file stima_scraper-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: stima_scraper-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for stima_scraper-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9aef7662a7abfef30c7493b5351adbe6d994e9235482d356f26f1de1ce3843f6
MD5 409eae04e7e7c40e223c239e881caa08
BLAKE2b-256 fef6bf921bc958dacd77b2c3b5a10947f744e55db37a9e30ec9c812dd7a29777

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