Kevin Otte
03/10/2022, 5:04 AMscrapers
> scraper1
> scraper2
prefect_flow.py
and scraper1/2 have Classes or methods that scrape specific websites. Am I able to leave those defined in those files, while referencing them in my flow.py file? It would look something like this..
import ...
@task
def scrape_site_one():
s = Scraper()
return s.scrape_site('www...')
....
with Flow("update historical pricing") as flow:
scrape_site_one()
Matthias
03/10/2022, 5:12 AMscrapers
directory right besides your flow (for example in a Docker image)Kevin Kho
Kevin Otte
03/10/2022, 5:17 AMKevin Kho
Kevin Otte
03/10/2022, 5:22 AM