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.
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';
.
- TypeScript vs. JavaScript: which to use for web scraping?
- Node.js tutorials in Academy
- Video guide on getting scraped data using Apify API
- Integration with Airbyte, Make, Zapier, Google Drive, and other apps
- A short guide on how to build web scrapers using code templates:
For complete information see this article. To run the actor use the following command:
apify run
If you've created a Git repository for the project, you can easily connect to Apify:
- Go to Actor creation page
- Click on Link Git Repository button
You can also deploy the project on your local machine to Apify without the need for the Git repository.
-
Log in to Apify. You will need to provide your Apify API Token to complete this action.
apify login
-
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
To learn more about Apify and Actors, take a look at the following resources: