💾 Archived View for www.underworld.fr › blog › exemple.gmi captured on 2024-02-05 at 09:35:56. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Lien vers un site http externe
https://gemini.circumlunar.space/
Lien vers un site gemini externe
gemini://gemini.circumlunar.space/
Lien vers un media externe sur http
https://cdn.pixabay.com/photo/2018/02/16/23/01/snow-3158868_1280.jpg
Lien vers un media mp3 local
Lien vers un media jpg local
Du code bien présenté
def extract_first_heading(filename, default=""): """ Open a file which is presumed to contain text/gemini content and return the contents of the first heading line (regardless of heading level). If no heading lines are found, return the specified default. """ with open(filename) as fp: for line in fp: if line.startswith("#"): while line[0] == "#": line = line[1:] return line.strip() return default
Une citation
Hello World