
markdown-test
Deprecated
Pricing
Pay per usage
Go to Store


markdown-test
Deprecated
0.0 (0)
Pricing
Pay per usage
1
Total users
3
Monthly users
1
Last modified
2 years ago
.dockerignore
# configurations.idea
# crawlee and apify storage foldersapify_storagecrawlee_storagestorage
# installed filesnode_modules
.editorconfig
root = true
[*]indent_style = spaceindent_size = 4charset = utf-8trim_trailing_whitespace = trueinsert_final_newline = trueend_of_line = lf
.eslintrc
{ "extends": "@apify", "root": true}
.gitignore
# This file tells Git which files shouldn't be added to source control
.ideanode_modulesstorage
Dockerfile
# Specify the base Docker image. You can read more about# the available images at https://sdk.apify.com/docs/guides/docker-images# You can also use any other image from Docker Hub.FROM apify/actor-node:16
# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.COPY package*.json ./
# Install NPM packages, skip optional and development dependencies to# keep the image small. Avoid logging too much and print the dependency# tree for debuggingRUN npm --quiet set progress=false \ && npm install --omit=dev --omit=optional \ && echo "Installed NPM packages:" \ && (npm list --omit=dev --all || true) \ && echo "Node.js version:" \ && node --version \ && echo "NPM version:" \ && npm --version
# Next, copy the remaining files and directories with the source code.# Since we do this after NPM install, quick build will be really fast# for most source file changes.COPY . ./
# Run the image.CMD npm start --silent
INPUT_SCHEMA.json
{ "title": "Input schema for the empty project actor.", "type": "object", "schemaVersion": 1, "properties": { "test": { "title": "Test", "type": "string", "description": "This is test input field description.", "editor": "textfield" } }, "required": []}
kitten.png
main.js
1// This is the main Node.js source code file of your actor.2// An actor is a program that takes an input and produces an output.3
4// For more information, see https://sdk.apify.com5import { Actor } from 'apify';6// For more information, see https://crawlee.dev7// import { CheerioCrawler } from 'crawlee';8
9// Initialize the Apify SDK10await Actor.init();11
12// Get input of the actor (here only for demonstration purposes).13const input = await Actor.getInput();14console.log('Input:');15console.dir(input);16
17/**18 * Actor code19 */20
21
22// Exit successfully23await Actor.exit();
package.json
{ "name": "project-empty", "version": "0.0.1", "type": "module", "description": "This is a boilerplate of an Apify actor.", "engines": { "node": ">=16.0.0" }, "dependencies": { "apify": "^3.0.0", "crawlee": "^3.0.0" }, "devDependencies": { "@apify/eslint-config": "^0.3.1", "eslint": "^8.20.0" }, "scripts": { "start": "node main.js", "lint": "./node_modules/.bin/eslint ./src --ext .js,.jsx", "lint:fix": "./node_modules/.bin/eslint ./src --ext .js,.jsx --fix", "test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1" }, "author": "It's not you it's me", "license": "ISC"}