# How to scrape content and email the results to yourself on an automated schedule

**URL:** <https://forum.seocontentmachine.com/t/how-to-scrape-content-and-email-the-results-to-yourself-on-an-automated-schedule/136>\
**Category:** questions\
**Tags:** dynamic-scraper\
**Created:** [March 28, 2024, 2:01pm UTC](https://forum.seocontentmachine.com/t/how-to-scrape-content-and-email-the-results-to-yourself-on-an-automated-schedule/136 "2024-03-28T14:01:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://forum.seocontentmachine.com/user_avatar/forum.seocontentmachine.com/tim/32/486_2.png) [@Tim](https://forum.seocontentmachine.com/u/Tim)\
**Post date:** [March 28, 2024, 2:01pm UTC](https://forum.seocontentmachine.com/t/how-to-scrape-content-and-email-the-results-to-yourself-on-an-automated-schedule/136/1 "2024-03-28T14:01:19Z")

</div>

## Use case

Scrape content using Dynamic scraper (or any tool really) then send (or post) the results when the task completes.

Fully automate this task so it runs once a day.

## Setup Dynamic scraper

This can be applied to any task as they all support ‘chain task’ ie after done run.

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/4f1393348bd886d8a9350a958111836097741319.png)

We will use the dynamic scraper as the example and scrape Wikipedia for content.

1. Scrape the Historical table data.
2. In the example we are using **#mw-content-text table** as the selector.
3. Add item

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/bd397e9268e1a40c6da75188ca1ab60ecb680901.png)

Set up the output

1. Add new item to macro code
2. Add current page as url target

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/d41dd03d17bfef7ff7164f7e3fea358922aba885.png)

Create schedule to run task once a day

1. Find and hover over the schedule textbox
2. A popup appears, select every hour and 0

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/1f36940f4569dc96fba7f97aa36f5c7c6c79255e.png)

This will run our task automatically every day at hour 0, ie midnight 12:00am

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/1cb93c916c6bf37c03defe98a23b20f51fd5fbf8.png)

Click **run** to verify the scraper is saving content

![image](https://forum.seocontentmachine.com/uploads/default/original/1X/4cbb89361211b9d674ddd162cfade9e43ac7d123.png)

## Setup Post emailer

We want to email the results to ourselves. (We could also choose to post it on WP blog etc)

Create post emailer task

1. Set article folder as Dynamic scraper output folder

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/a98d7a682774610856d7db9c92b4422706088e40.png)

An easy shortcut to find the output folder of the Dynamic scraper is to use ‘ **copy path** ’ from the preview article dropdown menu

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/91750fe5285db8d219985ebae0db850c7fc7c53c.png)

Because we chain task, no need to send emails on a schedule

**Clear** the default 15min send email schedule.

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/984cee49644a7b2b032bd393b2acd1981b3f1340.png)

Set email start to a date in the past. This will make emails send immediately.

1. Set date in past
2. Schedule 1 email for each article created  
ie 1 article for dynamic scraper example
3. Select email to send to
4. Check send list shows our email as send now

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/cb3ed2e6a1c99d0bf91f0e305fb85e77cd1a4952.png)

If there is no subject, change it to **‘Subject: filename’**

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/5b0e0d3530821505a5c1088558c1b3fa2a5bb7cf.png)

This task setting is complete

Click **run** to test the email is being sent

## Automate the workflow using chain task

Lets automate the 2 tasks

1. Dynamic scraper runs once a day at midnight
2. Chain it to start post emailer
3. Post emailer runs and sends content to inbox

**Edit** the Dynamic scraper task

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/20578d2c1f839f7452a74851bf577499f13d0f98.png)

Find ‘ **After done. run** ’ box.

It is under the schedule text box.

Click **get tasks**

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/42a398691515cff6ad42bfe05414f669b4c2f555.png)

This loads all tasks into the dropdown

**Find** the post emailer task to start from the list

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/4423bc8a061121f52ce16ff5684900d3abf8c337.png)

Completed settings should look like this.

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/f74cd045d38532344c3112713854d6ffc63f6b2e.png)

Now click **run**

## Output

Our Dynamic page task runs immediately

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/f70715dfbe4dcc42bce94badafb4c55599683d42.png)

When it finishes it starts the Post emailer

 ![image](https://forum.seocontentmachine.com/uploads/default/original/1X/2e94ed43de77004b12bfea73e46c4457141de2a2.png)

Time stamps verifies it working

Double check the Dynamic scraper and verify its been scheduled to run again at midnight

![image](https://forum.seocontentmachine.com/uploads/default/original/1X/683108c3442a0f988a060e5258598bafa2d6d68a.png)

**Done**

These 2 tasks are automated and will run endlessly.
