Quick Start
In the next 10 minutes you'll have two fully-working desktop tools:
1. Stock-Price Scraper β Enter a ticker (e.g. AAPL) and get the live price from Yahoo Finance.
2. Amazon PDF-Invoice Extractor β Drag-and-drop an invoice PDF and extract GST No, Document No, Date and Place of Supply, etc.
Both extractors share the same desktop shell, so once you build one, you already know how to build the otherβand the next one you have in mind.
π¨βπ» Project Setup β Clone, Install, Runβ
1οΈβ£ Clone the Magic π§ββοΈ:
git clone https://github.com/omkarcloud/botasaurus-desktop-starter my-botasaurus-app
cd my-botasaurus-app
2οΈβ£ Install Packages π¦:
npm install
3οΈβ£ Launch the Desktop App π:
npm run dev
A window opens with a heading scraper ready to test. Let's explore what you just launched.
π Touring the Starter Appβ
The starter app demonstrates all the core features through a simple heading scraper:
1. Home (Input)
- Enter any URL and click Run β the demo scraper grabs the pageβs first
<h1>
.
2. Results
- See the data returned by the task.
- Export to CSV / XLSX / JSON.
3. Tasks
- This Page shows all tasks you've started.
- Abort or delete any task.
4. About
- Renders your projectβs README.md, servers as app docs.
π Project Structure at a Glanceβ
Before we build our extractors, here's a simplified view of the key files you'll work with:
my-botasaurus-app/
ββ assets/ β Icons for the installers
ββ inputs/
β ββ scrapeHeadingTask.js β Renders UI controls (one file per extractor)
ββ src/
β ββ scraper/
β ββ backend/
β β ββ server.ts β Central registry β add your scrapers here
β ββ src/
β ββ scraper.ts β Extraction logic (e.g., grab <h1> with Playwright)
ββ release/ β Installers (.exe, .dmg, .deb) after "npm run package"
ββ package.json β Scripts + build settings
Mental model:
inputs/
= UI controlssrc/scraper/src/
= extraction logicsrc/scraper/backend/server.ts
= add scraper here
Now that you understand the structure, let's build your first Stock-Price Scraper!