Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added .vs/slnx.sqlite
Binary file not shown.
44 changes: 44 additions & 0 deletions save_verses.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Cross References from 1 john 3:14
1. John 5:24
Truly, truly, I say to you, whoever hears my word and believes him who sent me has eternal life. He does not come into judgment, but has passed from death to life.
2. 1 John 2:9
Whoever says he is in the light and hates his brother is still in darkness.
Reference Summary:



Cross References from 1 John 3:16
1. John 10:11
I am the good shepherd. The good shepherd lays down his life for the sheep.
2. John 15:13
Greater love has no one than this, that someone lay down his life for his friends.
3. Philippians 2:17
Even if I am to be poured out as a drink offering upon the sacrificial offering of your faith, I am glad and rejoice with you all.
4. 1 Thessalonians 2:8
So, being affectionately desirous of you, we were ready to share with you not only the gospel of God but also our own selves, because you had become very dear to us.
Reference Summary: None



Cross References from 1 John 3:16
1. John 10:11
I am the good shepherd. The good shepherd lays down his life for the sheep.
2. John 15:13
Greater love has no one than this, that someone lay down his life for his friends.
3. Philippians 2:17
Even if I am to be poured out as a drink offering upon the sacrificial offering of your faith, I am glad and rejoice with you all.
4. 1 Thessalonians 2:8
So, being affectionately desirous of you, we were ready to share with you not only the gospel of God but also our own selves, because you had become very dear to us.
Reference Summary:



Cross References from Matthew 3:12
1. Matthew 13:30
Let both grow together until the harvest, and at harvest time I will tell the reapers, Gather the weeds first and bind them in bundles to be burned, but gather the wheat into my barn.��
2. Matthew 25:41
�Then he will say to those on his left, �Depart from me, you cursed, into the eternal fire prepared for the devil and his angels.
Reference Summary:



2 changes: 1 addition & 1 deletion scripts/doubtingthomas.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Matthew 28:17 -- "When they saw him, they worshiped him; but some doubted."

from bs4 import BeautifulSoup
from urllib2 import urlopen
from urllib.request import urlopen
import re
import ssl
from sys import version_info
Expand Down
12 changes: 12 additions & 0 deletions scripts/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


choice = input("Which Tool Would You Like To Use Today?:\n1. Cross Reference Stepper\n2. Cross Reference Explorer\n3. n to exit\n")
if choice == '1':
import runstepper
elif choice == '2':
import thomascsv
elif choice == "n":
print("Thank you!")
exit()
else:
print("Please put in a valid input (1, 2, or n)\n")
9 changes: 6 additions & 3 deletions scripts/thomascsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# creates a csv file with name of your choice and a csv writer
def create_csv(filename):
myfile = open(filename, 'wb')
myfile = open(filename, 'w')
wr = csv.writer(myfile, quoting=csv.QUOTE_ALL)
return wr

Expand All @@ -23,12 +23,12 @@ def get_max_depth():
depth = input("What is the max depth you'd like to go in searching for references?\nLarger numbers take longer -- 10 is usually a good start\n")
else:
depth = raw_input("What is the max depth you'd like to go in searching for references?\nLarger numbers take longer -- 10 is usually a good start\n")
print ""
print ("")

try:
checked_depth = int(depth)
except ValueError:
print "Please enter a positive number\n"
print ("Please enter a positive number\n")
get_max_depth()
return

Expand All @@ -39,6 +39,7 @@ def get_max_depth():
# that's true if it's references out and false if it's references in
def writeRefs(wr, verse_list, if_out):
which_refs = ""

if (if_out):
wr.writerow(["References Out"])
which_refs = "refsOut"
Expand Down Expand Up @@ -81,3 +82,5 @@ def writeRefs(wr, verse_list, if_out):
wr = create_csv("verses.csv")
writeRefs(wr, verse_list, False)
writeRefs(wr, verse_list, True)

import main
31 changes: 20 additions & 11 deletions scripts/thomasstepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import doubtingthomas
from sys import version_info
from urllib2 import urlopen
from urllib.request import urlopen
import ssl
from bs4 import BeautifulSoup

Expand All @@ -24,7 +24,7 @@ def get_start_verse():
verse = input('Enter verse to start (example: "John 10:10"):\n')
else:
verse = raw_input('Enter verse to start (example: "John 10:10"):\n')
print ""
print ("")
#makes it into a verse object and returns it
return doubtingthomas.make_first_verse(verse)

Expand All @@ -38,6 +38,7 @@ def soup_verse_text(verse):

#get next reference index from user
def next_ref_index(list_len):
py3 = version_info[0] > 2 #creates boolean value for test that Python major version > 2
#get which reference they'd like to see next
if py3:
verse_num = input("Type the number of the verse in the list whose cross references you'd like to see, or type 'n' to quit:\n")
Expand All @@ -48,18 +49,19 @@ def next_ref_index(list_len):

#check if they tried to quit
if (verse_num == "n"):
print "Thanks!"
print ("Thanks!")
import main
return

#make sure it is a legitimate input
try:
verse_index = int(verse_num)
except ValueError:
print "Please enter a number in the list\n"
print ("Please enter a number in the list\n")
next_ref_index()

if (verse_index < 0 or verse_index > list_len):
print "Please enter a number in the list\n"
print ("Please enter a number in the list\n")
next_ref_index(list_len)
return

Expand All @@ -74,7 +76,7 @@ def crossref_stepper(verse):
crossref_div = soup.find("div", class_="crossrefs")

if (crossref_div is None):
print "That verse doesn't exist. Please try again."
print ("That verse doesn't exist. Please try again.")
crossref_stepper(get_start_verse())
return

Expand All @@ -101,17 +103,24 @@ def crossref_stepper(verse):
crossrefs_list.append(new_verse)

#show all crossref options and let user pick the next one
print "Cross References from " + verse.get_name()
print ("Cross References from " + verse.get_name())
#Added so that the listed verses are written into a txt file.
f = open("save_verses.txt","a+")
f.write("Cross References from " + verse.get_name() + "\n")
for idx, ref in enumerate(crossrefs_list):
print str(idx+1) + ". " + ref.get_name()
print ref.verseText
print ""
print (str(idx+1) + ". " + ref.get_name())
print (ref.verseText)
print ("")
f.write(str(idx+1) + ". " + ref.get_name()+"\n")
f.write(ref.verseText + "\n")
f.write("Reference Summary: " + input("Write a theme for the verses listed (Press Enter to Skip):\n") + "\n\n\n\n")
f.close()
verse_index = next_ref_index(len(crossrefs_list))

if (verse_index is None):
return

next_ref = crossrefs_list[verse_index]
print ""
print ("")
crossrefs_list = []
crossref_stepper(next_ref)