The HPScanCLI is a command-line interface for interacting with HP scanners through their web interfaces. It allows to search for available printers in the local network, print out printer capabilities, and initiate scans with various parameters.
- Search for Printers: Discover HP printers available in the local network.
- Print Capabilities: Retrieve and display the capabilities of a printer.
- Scan Documents: Initiate scanning operations with customizable parameters like DPI, height, width, color mode, and output format.
- Python 3.x
- Required Python packages (
bs4,requests)
-
Clone the repository:
git clone https://github.com/prasannareddych/HPScanCLI.git -
Install the required packages:
pip install -r requirements.txt
Run the script from the command line with appropriate options:
hpscancli [options]
-i, --ip: IP address of the HP Wireless scanner / InkTank / LaserJet.-s, --searchprinter: search for available printers in the network.-c, --capabilities: show capabilities of the printer.--height: set scan height.--width: Set scan width.--dpi: set scan DPI.--colormode: set scan color mode.--pdf: set output format to PDF.-o, --output: set output filename.-b, --bulkscan: scan in bulk mode.
-
Search for available printers:
hpscancli -s -
Print capabilities of a specific printer:
hpscancli -i <printer-ip> -c -
Perform a scan with custom parameters:
hpscancli -i <printer-ip> --height 1200 --width 800 --dpi 300 --colormode RGB24 --pdf -o scan1
Prasanna Reddy. Ch
This project is licensed under the MIT License - see the LICENSE file for details.