$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< {
< "url": "https://apify.com"
< }
< ],
< "pseudoUrls": [
< {
< "purl": "https://apify.com[(/[\\w-]+)?]"
< }
< ],
< "linkSelector": "a",
< "proxyConfiguration": {
< "useApifyProxy": false
< },
< "customData": {},
< "pageFunction": "async function pageFunction(context) {\n const { page, request, log } = context;\n const title = await page.title();\n log.info(`URL: ${request.url} TITLE: ${title}`);\n return {\n url: request.url,\n title\n };\n}",
< "preGotoFunction": "async function preGotoFunction({ request, page, Apify }) {\n /* add your pre-navigation logic here, if needed */\n}",
< "initialCookies": [],
< "waitUntil": [
< "networkidle2"
< ]
<}
<EOF
$curl "https://api.apify.com/v2/acts/barry8schneider~puppeteer20191228/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'