actor-page-analyzer icon indicating copy to clipboard operation
actor-page-analyzer copied to clipboard

Default example not producing any output

Open enrique-ayala opened this issue 2 years ago • 0 comments

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.

enrique-ayala avatar Apr 12 '23 06:04 enrique-ayala