Module frontend.app.views.scraper

Functions

def run_pretest(id)

Starts a pre-test process for a specific study by creating scrapers for the first five queries and each search engine associated with the study. Updates the study's status to 'running' and notifies the user that the pre-test has started.

Args

id : int
The ID of the study to be processed.

Returns

Redirects to the study page with a success message.

def run_study(id)

Starts the process of collecting results for a specific study by creating scrapers for each search engine and query associated with the study. Updates the study's status to 'running' and notifies the user that result collection has started.

Args

id : int
The ID of the study to be processed.

Returns

Redirects to the study page with a success message.