This code contains a scrapper that given tags stores the top articles related.
Python 3
- Install python dependencies with
pip install -r requirements.txt
. - Install PhantomJS with
npm -g install phantomjs-prebuilt
. - Install Mongo.
- Run mongo
sudo mongod
- Create a
.env
file. You can use.env.example
- Set a list of initial tags
seeds = ['python', 'machine learning']
. - Create an instance of
Spider
with your initial seedsSpider(seeds)
.