Skip to content

Step-by-step guide for building powerful desktop extractors for web scraping and data extraction.

License

Notifications You must be signed in to change notification settings

omkarcloud/botasaurus-desktop-tutorial

Repository files navigation

botasaurus

✨ Botasaurus Desktop Tutorial ✨

(Programming Language - TypeScript)

botasaurus-desktop-tutorial forks Repo stars botasaurus-desktop-tutorial License issues

View

Open in Gitpod

Botasaurus Desktop Tutorial

This repository contains the final code for the Botasaurus Desktop Tutorial. It contains the 2 extractors:

  1. 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.

    Stock Scraper Demo

  2. 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

    PDF Extraction Demo

🚀 Project Setup

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.

💡 Learn to Develop Scraping Apps

To understand how to develop desktop apps using Botasaurus, please refer to the Botasaurus Desktop Documentation.

📦 Create Installers for Your OS

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.

Screenshot of release/build folder with OS-specific installer

Note
On Windows, if you face the "resource busy or locked" error:

Resource Busy

Please follow these steps to resolve the issue:

  1. Run the Command Prompt as an administrator.
  2. Use the 'cd' command to navigate to your project directory.
  3. Run the command npm run package again to create the installer.

This will resolve the error and allow the installer to be created successfully.

📦 Creating Installers for All Operating Systems (Recommended Method)

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.

About

Step-by-step guide for building powerful desktop extractors for web scraping and data extraction.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published