Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rahil1202/license-data-scraper-python
https://github.com/rahil1202/license-data-scraper-python
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/rahil1202/license-data-scraper-python
- Owner: rahil1202
- Created: 2024-02-20T08:18:25.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T08:19:39.000Z (11 months ago)
- Last Synced: 2024-04-24T07:15:24.406Z (9 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# License Data Scraper
🚗 Scrapes Driving License data from government websites
## How to Run
### 1. Install Required Packages
```bash
pip install -r requirements.txt
```### 2. Run the Python CLI Application
For example, with a License number "DL0420110149646" and DOB "09-02-1976":
```bash
python main.py -dl DL-0420110149646 -dob 09-02-1976
```It takes 2 arguments `-dl` and `-dob`. Run `python main.py --help` for more information.
### 3. Output
The output is displayed on the screen and saved as `driver_data.json` in the project root directory.
## Sample Output
```bash
random data
$ python main.py -dl DL-0420110149646 -dob 09-02-1976
``````json
Data received ->{
"Class Of Vehicle": [
{
"COV Category": "NT",
"COV Issue Date": "01-Mar-2011",
"Class Of Vehicle": "ADPVEH"
}
],
"Driver Details": {
"Current Status": "ACTIVE",
"Date Of Issue": "01-Mar-2011",
"Holder's Name": "ANURAG BREJA",
"Last Transaction At": "ZONAL OFFICE, WEST DELHI, JANAKPURI",
"Old / New DL No.": "DL-0420110149646"
},
"Validity": {
"Hazardous Valid Till": "NA",
"Hill Valid Till": "NA",
"Non-Transport": {
"from": "01-Mar-2011",
"to": "08-Feb-2026"
},
"Transport": {
"from": "NA",
"to": "NA"
}
}
}Driver Details Successfully stored in driver_data.json
```## Project File Structure
```
- License-Data-Scraper/
- main.py
- scraper/
- __init__.py
- getDetails.py
- getTableData.py
- requirements.txt
- README.md
```