Skip to content

Simple web scraper to login to energy supplier account and retrieve live balance

Notifications You must be signed in to change notification settings

martapanc/Zebra-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦓 🦓 🦓 Zebra Scraper 🦓 🦓 🦓

Requisites

  • Python 3
  • pip

Dependencies

Setup

  • Rename config.properties.local to config.properties
  • Replace your ZebraPower credentials in file (the email address needs double quotes, e.g. "example@mail.com", the other fields don't)
  • The api url and token can be found by logging into your account, then right click and choose "Inspect", go to "Network" tab, refresh the page and find the request named liveBalances. Under the "Headers" tab, the URL is the value of Request URL and the auth token is the value of Authorization
  • Download the Chromedriver executable above and place its absolute path in the config.properties file as well

config.properties should look like:

[Login]
site.username="example@mail.com"
site.password=Pa5sW0rD

[Api]
api.url=https://www.zebrapower.co.uk/api/Accounts/12345/liveBalances
api.auth=Bearer 54tBoPtBNlwSrCYuFFjO...

[Chromedriver]
chromedriver.path=/Users/pancaldim/PersonalProjects/ZebraScraper/chromedriver
  • Run with
python3 zebra_scraper.py

About

Simple web scraper to login to energy supplier account and retrieve live balance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages