From dee3c25b9089e116d953ac2ed6342264c62e5b22 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Sun, 16 Oct 2022 17:00:45 +0500 Subject: [PATCH] Update readme file --- README.md | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ab4243e..0badca0 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,35 @@ # LESCO Bill Downloader -This project scrapes the website lesco.gov.pk to download bills either as pdf or html page (Whichever is available) +This project scrapes the website lesco.gov.pk and dbill.ptcl.net.pk to download bills either as pdf. ## Dependencies - wget +- curl - node.js - chrome/chromium installed for converting html to PDF ## Configuration Add the customer ids in the file customer_ids.json. Following will be its format: ```json -[ - {"id":YOUR_ID, format:"html/pdf"} -] +{ + "lesco": [ + {"id":"YOUR_ID", "format":"html/pdf", "tag": "TAG"} + ], + "ptcl": [ + { "phone": "PHONE_WITHOUT_AREA_CODE", "account_id": "ACCOUNT_ID", "tag":"TAG"} + ] +} ``` ### Running ```bash node index.js ``` -The downloaded bills will be placed in `downloads` folder. \ No newline at end of file +The downloaded bills will be placed in `downloads` folder in the format: +``` +downloads: + - BILL_MONTH (2022-01): + - TAG (home/office): + - ID.pdf + - PTCL_phone_num.pdf + +``` \ No newline at end of file