Running Your First Scrape Task
This guide shows how to create and run your first task in Doppelganger.
Step 1: Create a New Task#
- Open the Doppelganger dashboard
- Click New Task
Step 2: Set Task Type to Scraper#
- In the task panel, select Scraper as the mode
- This sets the task to run in scraping mode
Step 3: Set Wait Time#
- Locate the Wait input
- Set it to
1
This tells Doppelganger to wait 1 second after the page loads.
Step 4: Set the URL#
In the URL field, enter:
https://example.com
Step 5: (Optional) Verify Settings#
Before running the task, confirm the following:
- Task type is set to Scraper
- Wait is set to
1 - The URL is correct
This ensures the task runs correctly on the first attempt.
Step 6: Add Extraction Script#
After the page loads, you can extract data using an extraction script.
- Click Extraction Script
- Select JSON as the extraction type
- Paste the following example:
return {
title: document.title,
url: window.location.href
}
Step 7: Run the Task#
- Click Execute Task
- Check the data or screenshot to confirm the task ran successfully
Your task is now complete and extracting data as expected.