This integration script creates a Kolibri channel from all the books from the https://www.africanstorybook.org/ website.
git clone https://github.com/learningequality/sushi-chef-african-storybook
then cd sushi-chef-african-storybook
virtualenv -p python3 venv
and activate it using source venv/bin/activate
pip install -r requirements.txt
You will need an authorization token to create a channel on Kolibri Studio. In order to obtain one:
Download phantomjs
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 tar -xjf phantomjs-2.1.1-linux-x86_64.tar.bz2 rm phantomjs-2.1.1-linux-x86_64.tar.bz2
Set ENV var
export PHANTOMJS_PATH="???phantomjs-prebuilt/bin/phantomjs"
Run chef
./chef.py -v --reset --thumbnails --token=
During development, you can run the chef against the develop server by setting the environment variable as follows:
export STUDIO_URL="https://develop.studio.learningequality.org"
Note: if you don't have an account Studio Develop, you'll need to register and get an API token, since it is a completely separate system from the main Studio server.
Use the command line argument --sample=10
to do a special chef run that only
scrapes 10 links from the website. This is a good strategy to iterate on fixes
around HTML5 assets and iframe sandboxing issues.