Pull latest image from reddit's spaceporn subreddit
Tested on Ubuntu Linux w/Gnome (but should work on any Linux w/Gnome) and Windows 10
python3 -m venv env
source env/bin/activate
.\env\bin\activate
python -m venv env
env\Scripts\activate
pip install -r requirements.txt
pip install beautifulsoup4 jupyter
pip install scrapy
pipenv run jupyter notebook
Enter the imagefeed
subfolder and run:
scrapy crawl space-porn
For cleaner output:
scrapy crawl --nolog space-porn
Print usage:
scrapy crawl --nolog space-porn -a help=true
Build with:
docker build -t <desired name> .
Run with:
docker run -t <desired image folder>:/image <image name>
Install linter with pip install pylint
Go to space_porn_spider.py
and run pylint space_porn_spider.py
Run the following:
pip install pytest mock
pytest