Learn how to scrape article content from web pages with Prefect tasks, retries, and automatic logging.
@task
- Turn any function into a retryable, observable unit@flow
- Compose tasks into a reliable pipeline@flow
elevates a function to a flow – the orchestration nucleus that can call
tasks, other flows, and any Python you need. We enable log_prints=True
so each
print()
surfaces in Prefect Cloud or the local API.
print()
statements so you can view them in the Prefect UI or logs.fetch_html
or
parse_article
into a notebook and they’d work exactly the same.