Browse Source

Epubreader

politica
Celestino Rey 1 year ago
parent
commit
4e78ef1e66
3 changed files with 26 additions and 0 deletions
  1. +22
    -0
      EpubReader/app.py
  2. BIN
      EpubReader/libro.epub
  3. +4
    -0
      EpubReader/lista.sh

+ 22
- 0
EpubReader/app.py View File

@ -0,0 +1,22 @@
import ebookmeta
import sys
numarg = len(sys.argv)
if numarg != 2:
print("Error. Número de argumentos no válido")
else:
print("Procesando el libro: ", sys.argv[1])
meta = ebookmeta.get_metadata(sys.argv[1])
print("Título: ", meta.title)
print("Idioma: ", meta.lang)
for autor in meta.author_list:
print("Autor: ", autor)
for tag in meta.tag_list:
print("Tag: ", tag)
print("Autores: ", meta.author_list_to_string())

BIN
EpubReader/libro.epub View File


+ 4
- 0
EpubReader/lista.sh View File

@ -0,0 +1,4 @@
for i in libros/*
do
echo "$i..."
done

Loading…
Cancel
Save