diff --git a/website/same_words.py b/website/same_words.py index 6bb090e..9e604d7 100644 --- a/website/same_words.py +++ b/website/same_words.py @@ -21,146 +21,13 @@ from termcolor import colored from bs4 import BeautifulSoup -# file = open('tag_comparison.html', 'r') - -file = '''
-1 -. -Eligibility -You -must -be -at -least -13 -years -of -age -to -access -or -use -our -Services -. -If -you -are -under -18 -years -of -age -( -or -the -age -of -legal -majority -where -you -live -) -, -you -may -only -access -or -use -our -Services -under -the -supervision -of -a -parent -or -legal -guardian -who -agrees -to -be -bound -by -this -Agreement -. -If -you -are -a -parent -or -legal -guardian -of -a -user -under -the -age -of -18 -( -or -the -age -of -legal -majority -) -, -you -agree -to -be -fully -responsible -for -the -acts -or -omissions -of -such -user -in -connection -with -our -Services -. -If -you -are -accessing -or -using -our -Services -on -behalf -of -another -person -or -entity -, -you -represent -that -you -are -authorized
-''' +with open('tag_comparison.html', 'r') as tag_comp_file: + tag_content = tag_comp_file.read() + #automation? #find a same class -html = BeautifulSoup(file, 'html.parser') +html = BeautifulSoup(tag_content, 'html.parser') my_divs = html.find_all('span', {'class': 'NN'}) print(my_divs)