def run():
    data = []
    print("fectching bible")
    data.append(bibleProc.consume(bibleIn.fetch()))
    print("done. Fetching news")
    data.append(tldrnewsProc.consume(tldrnewsIn.fetch()))
    print("done. outputing")
    textOut.put(data, "/home/toben/Code/Little-News-Processor/sample.txt")
    print("Network complete")
def run():
	data = []
	print("fectching bible")
	data.append(bibleProc.consume(bibleIn.fetch()))
	print("done. Fetching news")
	data.append(tldrnewsProc.consume(tldrnewsIn.fetch()))
	print("done. Fetching weather")
	data.append(weatherProc.consume(weatherIn.fetch()))
	print("done. outputing")
	textOut.put(data,kindle+"dailyNews.txt")
	print("Network complete")
def run():
	caleb_data = calebIn.fetch()
	data = []

	print("fectching bible")
	data.append(bibleProc.consume(bibleIn.fetch()))

	print("done. Fetching weather")
	data.append(weatherProc.consume(weatherIn.fetch()))

	print("done. Fetching support stats")
	data.append(calebAmountsProc.consume(caleb_data))
	data.append(calebSupportersProc.consume(caleb_data))

	print("done. Fetching news")
	data.append(tldrnewsProc.consume(tldrnewsIn.fetch()))

	print("done. outputing")
	textOut.put(data,kindle+"dailyNews.txt")
	print("Network complete")
import bibleIn

def consume(verses):
	ret = ""
	for i in verses:
		out = ""
		for v in i:
			add = str(v[3])
			if v[0] == u'Proverbs':
				add = add.replace("\n\n","\n")
				add += "\n"
			out += add
		ret += out+"\n\n\n"
	return ret[:-3]

if __name__ == "__main__":
	verses = bibleIn.fetch()
	print(consume(verses))