Proxy tester avatar
Proxy tester

Under maintenance

Pricing

Pay per usage

Go to Store
Proxy tester

Proxy tester

Under maintenance

Developed by

Mihails

Mihails

Maintained by Community

df89 as76f89 d76as 89f 6d98sa f879d sa

0.0 (0)

Pricing

Pay per usage

0

Total users

2

Monthly users

1

Runs succeeded

96%

Last modified

a year ago

.actor/Dockerfile

# Specify the base Docker image. You can read more about
# the available images at https://docs.apify.com/sdk/js/docs/guides/docker-images
# You can also use any other image from Docker Hub.
FROM apify/actor-node:18
# 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 debugging
RUN 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 \
&& rm -r ~/.npm
# 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

.actor/actor.json

{
"actorSpecification": 1,
"name": "my-actor-19",
"title": "Empty JavaScript project",
"description": "Empty project in JavaScript.",
"version": "0.0",
"buildTag": "latest",
"meta": {
"templateId": "js-empty"
},
"dockerfile": "./Dockerfile"
}

.actor/input_schema.json

{
"title": "Scrape data from a web page",
"type": "object",
"schemaVersion": 1,
"properties": {
"proxy": {
"title": "Proxy configuration",
"type": "object",
"description": "Optionally use Apify Proxy",
"prefill": {
"useApifyProxy": true,
"apifyProxyGroups": ["BUYPROXIES88428"]
},
"editor": "proxy"
}
},
"required": ["proxy"]
}

src/main.js

1// Apify SDK - toolkit for building Apify Actors (Read more at https://docs.apify.com/sdk/js/)
2import { Actor } from 'apify';
3// Crawlee - web scraping and browser automation library (Read more at https://crawlee.dev)
4// import { CheerioCrawler } from 'crawlee';
5 sdfsaf
6// this is ESM project, and as such, it requires you to specify extensions in your relative imports
7// read more about this here: https://nodejs.org/docs/latest-v18.x/api/esm.html#mandatory-file-extensions
8// import { router } from './routes.js';
9
10// The init() call configures the Actor for its environment. It's recommended to start every Actor with an init()
11await Actor.init();
12
13console.log('Hello from the Actor!');
14/**
15 * Actor code
16 */
17
18// Gracefully exit the Actor process. It's recommended to quit all Actors with an exit()
19await Actor.exit();

.dockerignore

# configurations
.idea
# crawlee and apify storage folders
apify_storage
crawlee_storage
storage
# installed files
node_modules
# git folder
.git

.editorconfig

root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

.eslintrc

{
"extends": "@apify",
"root": true
}

.gitignore

# This file tells Git which files shouldn't be added to source control
.DS_Store
.idea
node_modules
storage

package.json

{
"name": "js-empty-project",
"version": "0.0.1",
"type": "module",
"description": "This is a boilerplate of an Apify Actor.",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"apify": "^3.1.10",
"crawlee": "^3.5.4"
},
"scripts": {
"start": "node ./src/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"
}