dawsonbot.py is a Python script that uploads PNGs of an inventory table to the website XtraChef using Selenium.
- Python 3.x
- Selenium
- Google Chrome and ChromeDriver
convert_pdf.pyscript
-
Clone the repository:
git clone <repository_url> cd <repository_directory>
-
Install the required Python packages:
pip install -r requirements.txt
-
Ensure you have Google Chrome installed and the corresponding ChromeDriver in your PATH.
-
Prepare the PNGs:
- Place the original PDFs in the
original_pdfsdirectory. - Run the
convert_pdf.pyscript to convert the PDFs to PNGs:python convert_pdf.py
- Place the original PDFs in the
-
Upload the PNGs using
dawsonbot.py:python dawsonbot.py
The convert_pdf.py script handles the formatting of the original PDFs to get the tables in PNG format. It performs the following steps:
- Takes the original PDFs from the
original_pdfsfolder. - Scales them up and converts them to PNGs.
- Saves the temporary PDFs in the
temp_pdfsfolder. - Stores the final PNGs in the
fixed_pngsfolder.