This repository contains the final code for the Botasaurus Desktop Tutorial. It contains the 2 extractors:
-
Yahoo Finance Stock Scraper This tool scrapes real-time stock prices from Yahoo Finance, demonstrating how you can use web scraping tools like Playwright in a desktop app.
-
Amazon Invoice PDF Extractor This tool automates the extraction of key invoice data from Amazon PDF invoices, saving hours of manual work for accountants. It extracts the following information:
- Document Number
- Document Date
- Place of Supply
- GST Identification Number
To run locally, follow these steps:
1️⃣ Clone the Magic 🧙♀️:
git clone https://github.com/omkarcloud/botasaurus-starter my-botasaurus-desktop-app
cd my-botasaurus-desktop-app
2️⃣ Install Packages 📦:
npm install
3️⃣ Launch the App 🚀:
npm run dev
This will launch your Botasaurus desktop application in development mode.
To understand how to develop desktop apps using Botasaurus, please refer to the Botasaurus Desktop Documentation.
To create an installer for your operating system, run the following command:
npm run package
After executing the command, you can find the installer for your OS in the release/build
folder.
Note
On Windows, if you face the "resource busy or locked" error:
Please follow these steps to resolve the issue:
- Run the Command Prompt as an administrator.
- Use the 'cd' command to navigate to your project directory.
- Run the command
npm run package
again to create the installer.
This will resolve the error and allow the installer to be created successfully.
To automatically create installers for all operating systems whenever you push changes to GitHub, you can set up GitHub Actions. For step-by-step instructions, please follow the guide here.
This is the recommended method for creating installers.