1
0
Fork 0

Aggiornamento semi-automatico 2023-09-01T12:15:06CEST

This commit is contained in:
ZinRicky 2023-09-01 12:15:06 +02:00
parent 3bb065d442
commit 20440c2b6c
Signed by: zinricky
GPG Key ID: 91361F2452ADD000
8 changed files with 120 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
make.*
public_html/
openring/

23
openring/feeds-it.txt Normal file
View File

@ -0,0 +1,23 @@
https://funzionesghemba.neocities.org/blog/rss.xml
https://blog.quintarelli.it/feed/
https://phastidio.net/feed
https://claudiomeloni.it/feed
https://pensierispelacchiati.org/feed
https://demonidiefp.wordpress.com/feed
https://siliconarcadia.substack.com/feed
https://echosofcritics.substack.com/feed
https://guerredirete.substack.com/feed
https://www.letteretj.it/feed
https://quasivero.substack.com/feed
https://www.liberioltreleillusioni.it/stampa.xml
https://mathonelist.substack.com/feed
https://scrip.substack.com/feed
https://discentis.substack.com/feed
https://www.lettera43.it/feed
https://serhack.me/it/index.xml
https://www.andreacorinti.com/feed.xml
https://www.arcweb.it/feed/
https://www.valigiablu.it/feed/
https://77nn.it/feed.xml
https://feeds.feedburner.com/oldgamesitalia
https://leortola.wordpress.com/feed/

49
openring/feeds.txt Normal file
View File

@ -0,0 +1,49 @@
https://aboboracandy.neocities.org/feed.xml
https://andrei.xyz/post/index.xml
https://attronarch.com/feed/
https://blog.kizu.dev/rss.xml
https://blog.shr4pnel.com/rss.xml
https://blog.tomayac.com/feed/feed.xml
https://cabbagesorter.neocities.org/rss.xml
https://cyantusk.neocities.org/blog/en_us/feed.xml
https://dc-blog.neocities.org/rss.xml
https://drewdevault.com/feed.xml
https://feeds.feedburner.com/TheHackersNews
https://foreverliketh.is/blog/index.xml
https://freckleskies.neocities.org/rss.xml
https://helianthuspetal.dreamwidth.org/data/rss
https://i330.dev/posts.rss
https://jakelazaroff.com/rss.xml
https://jan.wildeboer.net/feed.xml
https://journal.paoloamoroso.com/feed/
https://justinjackson.ca/feed
https://lisanna.neocities.org/atom.xml
https://liza.io/index.xml
https://m15o.ichi.city/feed.atom
https://manuelmoreale.com/feed/rss
https://mattrighetti.com/feed.xml
https://microbyte.neocities.org/index.xml
https://moddedbear.com/blog/index.xml
https://news.itsfoss.com/latest/rss/
https://pluralistic.net/feed/
https://pointieststick.com/feed/
https://portfiend.neocities.org/feed.xml
https://raymii.org/s/feed.xml
https://risingthumb.xyz/Writing/Blog/index.atom
https://sadgrl.online/feed.xml
https://scottaaronson.blog/?feed=rss2
https://shkspr.mobi/blog/feed/atom/
https://seirdy.one/posts/atom.xml
https://sizeof.cat/atom.xml
https://starbreaker.org/feed.xml
https://theadhocracy.co.uk/rss.xml
https://vetusomaru.dreamwidth.org/data/atom
https://voicedrew.xyz/rss.xml
https://whitevhs.xyz/articles/atom.xml
https://www.404media.co/rss
https://www.cedricbonhomme.org/blog/index.xml
https://www.logicmatters.net/feed/
https://www.stdin.co.uk/blog2/index.xml
https://www.zeropointfool.com/feed/
https://www.w3.org/blog/feed/
https://yabba.bearblog.dev/feed/

15
openring/in.html Normal file
View File

@ -0,0 +1,15 @@
<aside class="openring">
<h2>Articles from other blogs</h2>
<section class="openarticles">
{{range .Articles}}
<article class="openarticle">
<h3 class="opentitle">
<a href="{{.Link}}">{{.Title}}</a>
</h3>
<p class="opensummary">{{.Summary}}</p>
<p class="opensource">via <a href="{{.SourceLink}}">{{.SourceTitle}}</a> ({{.Date | datef "January 2, 2006"}})</p>
</article>
{{end}}
</section>
<p class="openattribution">Generated by <a href="https://git.sr.ht/~sircmpwn/openring">openring</a></p>
</aside>

17
openring/in_it.html Normal file
View File

@ -0,0 +1,17 @@
<aside class="openring">
<h2>Articoli da altri blog</h2>
<section class="openarticles">
{{range .Articles}}
<article class="openarticle">
<h3 class="opentitle">
<a href="{{.Link}}">{{.Title}}</a>
</h3>
<p class="opensummary">{{.Summary}}</p>
<span class="source-date">
<p class="opensource">da <a href="{{.SourceLink}}">{{.SourceTitle}}</a>, {{.Date | datef "2 January 2006"}}</p>
</span>
</article>
{{end}}
</section>
<p class="openattribution">Generato con <a href="https://tildegit.org/zinricky/openring-it">openring-it</a></p>
</aside>

BIN
openring/openring Executable file

Binary file not shown.

16
openring/openring.py Normal file
View File

@ -0,0 +1,16 @@
import os
import subprocess
import datetime
numero_articoli = '5'
if not os.path.isfile('../templates/openring.html') or (datetime.datetime.now() - datetime.datetime.fromtimestamp(os.path.getmtime('../templates/openring.html'))).days > 0:
comandi = ['./openring', '-S', 'feeds.txt', '-n', numero_articoli]
comandi += ['<', 'in.html', '>', '../templates/openring.html']
subprocess.run(comandi, shell = True)
comandi = ['./openring_it', '-S', 'feeds.txt', '-n', numero_articoli]
comandi += ['<', 'in_it.html', '>', '../templates/openringit.html']
subprocess.run(comandi, shell = True)
else:
print("Generazione feed saltata: generata troppo di recente.")

BIN
openring/openring_it Executable file

Binary file not shown.