def handle_noargs(self, **options):
		api = DaylifeAPI("03e38ae349885745226680ad7140212b", "c07ea3fe4284ae87bf032c6e12174e15", "freeapi.daylife.com")
		#grab searchTerm list
		st = SearchTerm.objects.all()
		for current_term in st:
			# Search API for articles relating to current_term
			ret = api.search_getRelatedArticles(query=current_term.term, start_time=long(time.time() - (7*86400)), end_time=long(time.time()), sort="date")
			for a in range(5):
				# Grab art date from article so I can convert it to a readable format
				art_date = dateutil.parser.parse(ret['response']['payload']['article'][a]['timestamp'])
				# Parse article			
				article = Article(pub_date= art_date, headline=ret['response']['payload']['article'][a]['headline'], blurb=(ret['response']['payload']['article'][a]['excerpt'])[:50], url=(ret['response']['payload']['article'][a]['url'])[:199], publication=ret['response']['payload']['article'][a]['source']['name'])
				# If the current article doesn't already exist, store it in the DB.
				if not Article.objects.filter(url=article.url):
					article.save()
					# Add article object to appropriate searchterm
					current_term.articles.add(article)
					current_term.save()
	def handle(self, *args, **options):
		api = DaylifeAPI("03e38ae349885745226680ad7140212b", "c07ea3fe4284ae87bf032c6e12174e15", "freeapi.daylife.com")
		#grab contact list
		contacts = Contact.objects.all()
		for contact in contacts:
			#search API for articles relating to the first searchterm
			ret = api.search_getRelatedArticles(query=contact.searchTerms.all()[0].term, start_time=long(time.time() - (7*86400)), end_time=long(time.time()), sort="date")
			#grab art date from article
			art_date = DateTime.parse(ret['response']['payload']['article'][0]['timestamp'])
			#populate the article object 
			article = Article(pub_date= art_date, headline=ret['response']['payload']['article'][0]['headline'], blurb=ret['response']['payload']['article'][0]['excerpt'], url=ret['response']['payload']['article'][0]['url'], publication=ret['response']['payload']['article'][0]['source']['name'])
			article.save()
			#make a variable for term
			current_term = contact.searchTerms.all()[0]
			current_term.save()
			#update article to the corresponding search term
			current_term.articles.add(article)
			#save search term so its updated in database with new article
			current_term.save()