Skip to content
Doppelganger logo

Running Your First Scrape Task

This guide shows how to create and run your first task in Doppelganger.


Step 1: Create a New Task#

  1. Open the Doppelganger dashboard
  2. Click New Task

Step 2: Set Task Type to Scraper#

  1. In the task panel, select Scraper as the mode
  2. This sets the task to run in scraping mode

Step 3: Set Wait Time#

  1. Locate the Wait input
  2. 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.

  1. Click Extraction Script
  2. Select JSON as the extraction type
  3. Paste the following example:
return {
  title: document.title,
  url: window.location.href
}

Step 7: Run the Task#

  1. Click Execute Task
  2. Check the data or screenshot to confirm the task ran successfully

Your task is now complete and extracting data as expected.