Skip to content

Commit

Permalink
Update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedasif1 committed Oct 16, 2022
1 parent 0227566 commit dee3c25
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
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
```

0 comments on commit dee3c25

Please sign in to comment.