Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default example not producing any output #27

Open
enrique-ayala opened this issue Apr 12, 2023 · 0 comments
Open

Default example not producing any output #27

enrique-ayala opened this issue Apr 12, 2023 · 0 comments

Comments

@enrique-ayala
Copy link

enrique-ayala commented Apr 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant