Skip to content

thoslin/mfalookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

mfalookbook

This is a project I built to try out some technologies like Flask, SQLAlchemy, Scrapy which I've heard for long but never used before.

So basically I scraped data from /r/malefashionadvice with Scrapy and display the data on a site built with Flask. The data is stored in Sqlite and driven by SQLAlchemy. Besides I write a fabric script to easily deploy the whole thing to a Vagrant box (or your ubuntu server if you've got one).

Here's some tips to get you started:

Set up virtualenv

mkvirutalenv mfalookbook
pip install -r mfa/requirements.txt

Run the crawler to collect some data

workon mfalookbook
scrapy crawl mfa

Run app and check out http://0.0.0.0:5000/

python runapp.py

Deploy to a Vagrant box

vagrant up
fab vagrant deploy

That's it. Happy hacking!

.. |build-status| image:: https://travis-ci.org/thoslin/mfalookbook.svg?branch=master :target: https://travis-ci.org/thoslin/mfalookbook :alt: Build status

About

A lookbook for /r/malefashionadvice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published