python mongodb.py
- write your module
*.py
refer totech_163.py
orauto_163.py
- put your module
*.py
in the foldermod
- add
from mod import *
tomongodb.py
- add your name of module to
mod = [tech_163, auto_163, *]
- define a news item as:
item = {'title': title,
'date': date,
'content': content,
'cate': 'tech/auto/*',
'src': '163/*',
'link': link,
}
mysql.py
is unfinished coz my project is based on mongodb