Skip to content

Default example not producing any output #27

@enrique-ayala

Description

@enrique-ayala

I'm getting started with Apify/scrapping and wanted to use page-analyzer as suggested by https://blog.apify.com/web-scraping-in-2018-forget-html-use-xhrs-metadata-or-javascript-variables-8167f252439c/ . However default example doesn't return any output :

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("apify_api_xxxx")
# Prepare the actor input
run_input = {
    "url": "https://www.scrapethissite.com/pages/ajax-javascript/#2015",
    "keywords": [
        "Spotlight",
        "Oscar Winning Films: AJAX and Javascript",
        "https://en.wikipedia.org/wiki/List_of_Academy_Award-winning_films",
        "A Girl in the River: The Price of Forgiveness",
        "87 items",
    ],
    "proxyConfig": { "useApifyProxy": True },
}

# Run the actor and wait for it to finish
run = client.actor("apify/page-analyzer").call(run_input=run_input)

# Fetch and print actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

Im not receiving any output from print statement . From UI I see run with no errors , output tab says:

The actor finished with no results, check the log for more information.

Related run id : ZmOnUld5OXQErKX1x
Container URL: https://nx40ulftb9vy.runs.apify.net

I've also tried with other sites and receiving same behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions