Skip to main content

A simple Django app to collect and display movie's short comments from douban.com.

Project description

====
douban
====
douban is a django app to collect movie's short comments in douban.com.

Quick start
-----------

1. Add "douban" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
...
'douban',
)

2. Set database configuration in your INSTALLED_APPS setting like this::

'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '', # database name
'USER': '', # username
'PASSWORD': '', # password
'HOST': '127.0.0.1',
'PORT': '3306', # default listen port
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
# the default charset used by django to connect db is 'utf-8'
# change to 'utf8mb4' is recommended, otherwise some data like emoji faces cannot save
'charset': 'utf8mb4',
},
}

3. Include the polls URLconf in your project urls.py like this::

from django.urls import include
from django.conf.urls import url

url(r'^douban/', include('douban.urls'))

4. Run `python3 manage.py makemigrations douban` and `python3 manage.py migrate` to create the douban models.

5. Visit http://127.0.0.1:8000/douban/ to participate it.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-scrapy-douban, version 1.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django_scrapy_douban-1.1.2-py3-none-any.whl (27.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-scrapy-douban-1.1.2.tar.gz (20.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page