Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2014 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/59941c782394607eae91 to your computer and use it in GitHub Desktop.
Save anonymous/59941c782394607eae91 to your computer and use it in GitHub Desktop.
__author__ = 'Fatih'
#-*- coding: utf-8 -*-
from peewee import peewee
db = peewee.MySQLDatabase("crawler", user="sqlalchemy", passwd="mypassword")
class News(peewee.Model):
header = peewee.CharField()
articleBody = peewee.TextField()
articleDate = peewee.DateField()
class Meta:
database = db
News.create_table()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment