Output schema demo avatar

Output schema demo

Under maintenance

Pricing

Pay per usage

Go to Apify Store
Output schema demo

Output schema demo

Under maintenance

Demonstrates all output schema options

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Jaroslav Hejlek

Jaroslav Hejlek

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

5 days ago

Last modified

Categories

Share

Empty TypeScript template

Start a new web scraping project quickly and easily in TypeScript (Node.js) with our empty project template. It provides a basic structure for the Actor with Apify SDK and allows you to easily add your own functionality.

Included features

How it works

Insert your own code between await Actor.init() and await Actor.exit(). If you would like to use the Crawlee library simply uncomment its import import { CheerioCrawler } from '@crawlee/cheerio';.

Input

The Actor produces its output (key-value files and datasets) immediately, then keeps running so you can open the live view. Two optional fields control its lifecycle:

FieldTypeDefaultDescription
liveViewDelaySecsinteger (seconds)0How long to wait after the run starts before the live view becomes available. 0 starts it right away.
maxRunTimeSecsinteger (seconds)0Total run-time cap, measured from run start (the live-view delay counts towards it). The Actor stops itself once reached. 0 runs indefinitely until you press Stop in the live view or abort the run.

Both default to 0, which preserves the original behavior: the live view starts immediately and the run lives on until you stop it manually.

Resources

Getting started

For complete information see this article. To run the Actor use the following command:

$apify run

Deploy to Apify

Connect Git repository to Apify

If you've created a Git repository for the project, you can easily connect to Apify:

  1. Go to Actor creation page
  2. Click on Link Git Repository button

Push project on your local machine to Apify

You can also deploy the project on your local machine to Apify without the need for the Git repository.

  1. Log in to Apify. You will need to provide your Apify API Token to complete this action.

    $apify login
  2. Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.

    $apify push

Documentation reference

To learn more about Apify and Actors, take a look at the following resources: