diff --git a/layout/.DS_Store b/layout/.DS_Store index 146a27c..39297fd 100644 Binary files a/layout/.DS_Store and b/layout/.DS_Store differ diff --git a/layout/index.html b/layout/index.html deleted file mode 100644 index b83c935..0000000 --- a/layout/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - Booklet - - - ok let's talk in English for awhile what are we eating.
or not so it is starting again.
ok navigate.
you need to rest sometimes.
also implemented that implementing.
he's a sentence and we are not interested.
remember.
so basically sentence.
where is to go a couple and then you put the adult.
a bit easier to understand.
actually maybe people just do n't just.
I'm just thinking it's not the centres do n't put the dot and just put a couple.
because then.
they are talking they are a booklet but they are not writing.
so it is just fine.
so are you done.
and now is f * * * * * up.
- \ No newline at end of file diff --git a/layout/nltking.py b/layout/nltking.py deleted file mode 100644 index 847eb89..0000000 --- a/layout/nltking.py +++ /dev/null @@ -1,37 +0,0 @@ -import nltk - -with open('speech.txt','r') as result: - r = result.read() - -r = r.replace('','').replace('\n','. ') - -l=nltk.word_tokenize(r) -pos = nltk.pos_tag(l) - -html = ''' - - - - - - - - Booklet - - -''' - -for x in pos: - if x[0] == '.': - html += ".
\n" - else: - html += " "+x[0]+"\n" - - -html += ''' -''' - -html = html.replace(' .','.').replace(" '", "'") - -with open('index.html','w') as index: - index.write(html) diff --git a/layout/nuovo.html b/layout/nuovo.html deleted file mode 100644 index 9003f6d..0000000 --- a/layout/nuovo.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - Booklet - - -ok let's talk in English for awhile what are we eating - -or not so it is starting again - -ok navigate - -you need to rest sometimes - -also implemented that implementing - -he's a sentence and we are not interested - -remember - -so basically sentence - -where is to go a couple and then you put the adult - -a bit easier to understand - -actually maybe people just don't just - -I'm just thinking it's not the centres don't put the dot and just put a couple - -because then - -they are talking they are a booklet but they are not writing - -so it is just fine - -so are you done - -and now is f***** up - - - \ No newline at end of file diff --git a/layout/picDownload.py b/layout/picDownload.py index 45ecb0d..1dda26f 100644 --- a/layout/picDownload.py +++ b/layout/picDownload.py @@ -1,3 +1,19 @@ +# Bonus! + +# Scrape and download images in local from DuckDuckGo + + +# First, you need python. You can download Python from its website: + +# https://www.python.org/ + + +# Then, you need to install DuckDuckGoImages,open the terminal and digit: + +# pip3 install DuckDuckGoImages + + + import DuckDuckGoImages as ddg import os import shutil diff --git a/layout/picLinks.py b/layout/picLinks.py deleted file mode 100644 index 2a15c64..0000000 --- a/layout/picLinks.py +++ /dev/null @@ -1,49 +0,0 @@ -import DuckDuckGoImages as ddg -from duckduckgo_images_api import search -import os -import shutil - -with open('speech.txt','r') as speech: - qq = speech.readlines() - -html = '' - -html = ''' - - - - - - - - Booklet - - -''' - - - -for q in qq: - q = q.strip() - if q == '''''': - continue - - q = q.replace("\n","") - - qDDG = q.replace(' ','+') - - results = search(q, max_results=1) - r = results["results"][0]["thumbnail"] - - html += f""" {q} \n""" - html += f"""\n""" - - - -html += ''' -''' - -html = html.replace(' .','.').replace(" '", "'") - -with open('nuovo.html','w') as index: - index.write(html) \ No newline at end of file