https://github.com/brand07/hp-printer-metrics-scraper
Python script that scrapes the internal web pages of HP Printers for data.
https://github.com/brand07/hp-printer-metrics-scraper
Last synced: 8 months ago
JSON representation
Python script that scrapes the internal web pages of HP Printers for data.
- Host: GitHub
- URL: https://github.com/brand07/hp-printer-metrics-scraper
- Owner: Brand07
- Archived: true
- Created: 2023-07-20T13:23:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T18:48:02.000Z (about 2 years ago)
- Last Synced: 2025-02-12T04:58:59.412Z (8 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python---HP-Printer Web Scraper
Python script that scrapes the internal web pages of HP Printers for data.Prerequisites:
- Python installed on your machine : https://www.python.org/downloads/
- Requires the Pandas and BeautifulSoup library to be installed.
- Pandas can be installed by running **pip install pandas** from command prompt or terminal window.
- BeautifulSoup can be installed by running **pip install beautifulsoup4** from a command prompt or terminal window.
- This script requires that you disable **Encrypt All Web Communication (not including IPP)** on the printer. This can be done from the internal webpage under the Networking Tab >> Mgmt. Protocals.
- This allows the script to request the webpage, otherwise the script would fail to reach the webpage.
**Do this at your own risk as you are disabling a security feature on your printer**
What the script does:
This script specifically scrapes the internal webpages of HP printers (that are defined in the script) and pulls the following info:
- The Date
- Printer Name (as defined)
- Page Count
- Toner Level
- Maintenance Kit LevelThe script will look for a .xlsx file named (AllPrinters.xlsx). If if doesn't find the .xlsx, it will create one in the directory in which you run the script from. The script will append the data everytime it is executed.