0
stars
0
forks
source link
Purpose
Web crawler to crawler web content relating movie comments.
Development Environment Setup
===
- install Python 2
$ cd ProjectFolder
- Follow this link to create an isolated python virtual evnviroment. note the folder should be
venv
.
-
- On OS X and Linux:
$ . venv/bin/activate
.
- ON Windows:
$ v-env\scripts\activate
.
- Before proceed to next step, make sure you will see
(ENV)
in your shell
$ pip install -r requirements.txt
to install all required packages.
Database Setup
===
- Download MongoDB community server
- Follow this guide to setup & run mongoDb locally
Dependency
===
- Enviroment Isolator: Virtualenv
- Framework: Flask==0.10.1
- Database: MongoDB
- Others:
- pymongo==3.0.1
- PyYaml==3.11
- beautifulsoup4==4.5.1
- networkx==1.11
- Requests==2.9.1
Coding Convention
===
JUST BE CONSISTENT!
Comments
- inline & block comment: start with # Number Sign.
- docstrings: surround by ''' ''' or """ """.
Naming
- function_name and variable_Name: lowercase, with words separated by underscores.
- CONSTANT_NAME: all capital letters with words underscores separated by underscores.