Proxy tester
Try for free
No credit card required
Go to Store
This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?
See alternative ActorsProxy tester
mihails_staging/proxy-tester
Try for free
No credit card required
df89 as76f89 d76as 89f 6d98sa f879d sa
.actor/Dockerfile
1# Specify the base Docker image. You can read more about
2# the available images at https://docs.apify.com/sdk/js/docs/guides/docker-images
3# You can also use any other image from Docker Hub.
4FROM apify/actor-node:18
5
6# Copy just package.json and package-lock.json
7# to speed up the build using Docker layer cache.
8COPY package*.json ./
9
10# Install NPM packages, skip optional and development dependencies to
11# keep the image small. Avoid logging too much and print the dependency
12# tree for debugging
13RUN npm --quiet set progress=false \
14 && npm install --omit=dev --omit=optional \
15 && echo "Installed NPM packages:" \
16 && (npm list --omit=dev --all || true) \
17 && echo "Node.js version:" \
18 && node --version \
19 && echo "NPM version:" \
20 && npm --version \
21 && rm -r ~/.npm
22
23# Next, copy the remaining files and directories with the source code.
24# Since we do this after NPM install, quick build will be really fast
25# for most source file changes.
26COPY . ./
27
28
29# Run the image.
30CMD npm start --silent
.actor/actor.json
1{
2 "actorSpecification": 1,
3 "name": "my-actor-19",
4 "title": "Empty JavaScript project",
5 "description": "Empty project in JavaScript.",
6 "version": "0.0",
7 "buildTag": "latest",
8 "meta": {
9 "templateId": "js-empty"
10 },
11 "dockerfile": "./Dockerfile"
12}
.actor/input_schema.json
1{
2 "title": "Scrape data from a web page",
3 "type": "object",
4 "schemaVersion": 1,
5 "properties": {
6 "proxy": {
7 "title": "Proxy configuration",
8 "type": "object",
9 "description": "Optionally use Apify Proxy",
10 "prefill": {
11 "useApifyProxy": true,
12 "apifyProxyGroups": ["BUYPROXIES88428"]
13 },
14 "editor": "proxy"
15 }
16 },
17 "required": ["proxy"]
18}
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
1# configurations
2.idea
3
4# crawlee and apify storage folders
5apify_storage
6crawlee_storage
7storage
8
9# installed files
10node_modules
11
12# git folder
13.git
.editorconfig
1root = true
2
3[*]
4indent_style = space
5indent_size = 4
6charset = utf-8
7trim_trailing_whitespace = true
8insert_final_newline = true
9end_of_line = lf
.eslintrc
1{
2 "extends": "@apify",
3 "root": true
4}
.gitignore
1# This file tells Git which files shouldn't be added to source control
2
3.DS_Store
4.idea
5node_modules
6storage
package.json
1{
2 "name": "js-empty-project",
3 "version": "0.0.1",
4 "type": "module",
5 "description": "This is a boilerplate of an Apify Actor.",
6 "engines": {
7 "node": ">=18.0.0"
8 },
9 "dependencies": {
10 "apify": "^3.1.10",
11 "crawlee": "^3.5.4"
12 },
13 "scripts": {
14 "start": "node ./src/main.js",
15 "lint": "./node_modules/.bin/eslint ./src --ext .js,.jsx",
16 "lint:fix": "./node_modules/.bin/eslint ./src --ext .js,.jsx --fix",
17 "test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"
18 },
19 "author": "It's not you it's me",
20 "license": "ISC"
21}
Developer
Maintained by Community
Actor Metrics
1 monthly user
-
0 No stars yet
Created in Sep 2023
Modified 10 months ago
Categories