From 8a9b39d4301777870cec7b1713f8919fa80322e1 Mon Sep 17 00:00:00 2001 From: funix Date: Wed, 6 Oct 2021 00:41:29 +0200 Subject: [PATCH] comments ++ --- layout/.DS_Store | Bin 8196 -> 6148 bytes layout/index.html | 13 ----------- layout/nltking.py | 37 ------------------------------- layout/nuovo.html | 47 ---------------------------------------- layout/picDownload.py | 16 ++++++++++++++ layout/picLinks.py | 49 ------------------------------------------ 6 files changed, 16 insertions(+), 146 deletions(-) delete mode 100644 layout/index.html delete mode 100644 layout/nltking.py delete mode 100644 layout/nuovo.html delete mode 100644 layout/picLinks.py diff --git a/layout/.DS_Store b/layout/.DS_Store index 146a27ca7c6aa70bd1c7f1b144094aa95d3a6673..39297fd14d39b2db26e9722bd9a6828ef62931bf 100644 GIT binary patch delta 115 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{MGjUEV6q~50$jH1gU^gQp^I{$W#>q0`uQxUb xuqh)N6n<|BWM=qD2VoMHh^sLIA%XnCCJ4Cs;ZMY%n~(sJWp-ysrktG#JF^=? z3>8X`_*edwT2?9L4J=Q1(1RB(waO~Bq)OD%iw6&0yn3+ob@yz_EO5Ysf=*X;zwUnT zb@zMy&AffH0Dyf(vmKxw02Hd6vZd5qr*J;6*OXW|Q%w{}AHdH}`IA}4%U&ZJO++4u zJP>&x@<8N)$OE^A2PkIqqTC?vOK#Lg9*8{fzw`iqKP0GfnhNQhq~g^<@XKGv7C|hiz*r!&dcsZeZB1RS?RyX_3g-i0zu*RG(LLO<$~& zmJCHv6*a@^XJ)o0J6aN*?On4iiJ4@wttHXbxovhDY+$5+dDtZGa3J$v_Q8Md-SS2s8r*q-YjwhBJc46E_!y7%Wi_fWy&{E?jJ z6!Wg1VYNBK$rT+VuzDRQZJ)9H(ZD(#@ZM41D+K*QaMUJUK9^yv=v$9kq+pk<0aEiB zsu!27j^EX|p|vBqqxZ`46*a7OrKTMvRJehC(zXi2Q??mQ95MWy<(jrTK2oxMJL_0O zu93HDW235ig{`PruGi^n6xOJW7PI!Lq8&_&wbnN1+L%c@9rR4Tn#nFJs^BCVbp06T z^cO5@O+^vY_crO;kWYtYMku(kS<{9dC)hHdw&DleyhYQ89V2Tw%v7aXXP2grl%&Vl zfpD_BN7F}hUOrEz__f#)PVd~M>&N-d4;g+iIBB_bs!wTqVMT*JpeRQ;x7Rf3RE?<( z657Jt##EaesT4Zbz-9`R`(TVvJPFfq9-e_`;dOW$-i6EXA$$U#!x!)+dSEa5bs z!5MrCU%;2}WqbwS#JBJQUcz_qJ^TPal1Gb`pUDU1xZL8$)T;z#_~9^i{Cc2_@7}Zb zUjpT~%On!-ShadxThFVixRSC|L*A#D76c&@5*7z2c@XHoSUWeAD5K`G< z$xUiKDq)#bN$w79mqL(bOC+~f>sR?x#o*?#cL6TK`-Ho%;VPl+C-{Z%_8VcX8fyjC z)?x#$!}Wx>X556WxDAuoLzwHw0m9r~JcN&68i(*OW - - - - - - - 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