-
clone the repository
git clone git@github.com:manuelep/scrapealong.git
-
install requirements
cd path/to/scrapealong pip install -r requirements.txt
-
module setup
touch scrapealong/settings_private.py
create the
settings_private.py
file as showed before and fill it with the subsequent content adapted to your needs:# -*- coding: utf-8 -*- QUEUE_LENGTH = 2 TRIPADVISOR_HOTES_LOCATIONS = [ # Try something like: # 'Hotels-g187849-Milan_Lombardy-Hotels.html', ] TRIPADVISOR_RESTAURANTS_LOCATIONS = [ # Try something like: # 'Restaurants-g187849-Milan_Lombardy.html', ]
-
run the tests
python3 -m scrapealong.utest
Just include this library as a sub-module in your py4web applications.
Follow the module setup documentation written before.