#!/bin/bash

# abort on any errors
set -e

# check that we are in the expected directory
cd `dirname $0`/..

./bin/run_management_command popit_resolver_init --popit-api-url=http://za-new-import.popit.mysociety.org/api/v0.1/

./bin/run_management_command za_hansard_check_for_new_sources
./bin/run_management_command za_hansard_run_parsing
./bin/run_management_command za_hansard_load_into_sayit

# Run the ZA Hansard questions importer (all steps)
./bin/run_management_command za_hansard_q_and_a_scraper --run-all-steps

# Run the committee minutes scraper and imports
# ./bin/run_management_command za_hansard_pmg_api_scraper --scrape --save-json --import-to-sayit --commit

#!/bin/bash

# abort on any errors
set -e

# check that we are in the expected directory
cd `dirname $0`/..

./bin/run_management_command popit_resolver_init --popit-api-url=http://za-new-import.popit.mysociety.org/api/v0.1/

./bin/run_management_command za_hansard_check_for_new_sources
./bin/run_management_command za_hansard_run_parsing
./bin/run_management_command za_hansard_load_into_sayit

# Run the ZA Hansard questions importer (all steps)
./bin/run_management_command za_hansard_q_and_a_scraper --run-all-steps

# Run the committee minutes scraper and imports
./bin/run_management_command za_hansard_pmg_api_scraper --scrape --save-json --import-to-sayit --commit

Revert "Temporarily disable the committee scraper since we'll run it manually the first time"
Revert "Temporarily disable the committee scraper since we'll run it manually the first time"

This reverts commit 8679a0f9b5f338f74e86a179187a8d5fed2b63a3.
