32 lines
875 B
Python
32 lines
875 B
Python
|
#!/usr/bin/env python
|
||
|
#coding: utf-8
|
||
|
|
||
|
#from sqlalchemy import create_engine, Table, Column, Integer, Text, String, Boolean, DateTime, MetaData, ForeignKey, desc
|
||
|
#from sqlalchemy.orm import sessionmaker, relation, backref
|
||
|
from sqlalchemy.ext.declarative import declarative_base
|
||
|
#from datetime import datetime, timedelta
|
||
|
#from time import mktime
|
||
|
#import feedparser
|
||
|
#import re
|
||
|
#import sys
|
||
|
#import urllib
|
||
|
#import urllib2
|
||
|
#import hn
|
||
|
#import html2text
|
||
|
#import ConfigParser
|
||
|
#import pprint
|
||
|
#from optparse import OptionParser
|
||
|
#from cStringIO import StringIO
|
||
|
#from email.mime.multipart import MIMEMultipart
|
||
|
#from email.mime.text import MIMEText
|
||
|
#from email.header import Header
|
||
|
#from email import Charset
|
||
|
#from email.generator import Generator
|
||
|
#import smtplib
|
||
|
|
||
|
Base = declarative_base()
|
||
|
|
||
|
from models.feed import Feed
|
||
|
from models.feedinfo import Feedinfo
|
||
|
from models.entry import Entry
|