NewsSpider/news_spider/show.py

11 lines
239 B
Python
Raw Normal View History

#!/usr/bin/python
import json
file = open('ne.json')
data = json.load(file)
for article in data:
print "[----Time-----]\n",article['time']
print "[----Title----]\n",article['title']
print "[----Article--]\n",article['content'],"\n\n"