Skip to content


XML Books — Project Overview

Django + XML + Google Drive API

Summary: XML Books loads a book catalog from an XML file stored in Google Drive, validates and parses it at request time, and exposes simple filters by author and title. The goal is to keep the app lightweight (no large datasets in the repo) while demonstrating external storage integration and clean UI rendering in Django.

Django 4.1 Python 3.11 Requests Google Drive API XML
Open Endpoint

Goals
  • Load and validate an XML dataset from Google Drive (folder-scoped query + file download).
  • Defend against HTML previews/warnings from Drive before parsing.
  • Filter results via query params (?author=..., ?title=...).
  • Keep the Heroku slug small (no heavy datasets in the repo).
High-level Architecture
  1. View xml_books reads query params and builds the Drive request.
  2. File listing by folder + exact filename; then direct file download.
  3. Guard: if payload looks like HTML, abort parsing (Drive preview pages).
  4. Parse with xml.etree.ElementTree and normalize CDATA/text.
  5. Filter and render results with Bootstrap.
Environment Variables
VariableDescriptionExample
GOOGLE_DRIVE_API_KEY API Key for Google Drive (Files: list/get). AIzaSy...xyz
GOOGLE_DRIVE_FOLDER_ID Folder ID containing the XML file. 1AbCdEfGhIJ...
BOOKS_XML_FILENAME Exact XML filename to fetch. books.xml
Endpoint & Usage
EndpointDescriptionParamsExamples
/data-science/books-filter/ Returns the book list from remote XML with optional filters. author (optional), title (optional) ?author=arturo
?title=sidi
?author=arturo&title=sidi
Error Handling
  • 404/403 listing Drive: check GOOGLE_DRIVE_FOLDER_ID permissions.
  • HTML payload (preview/warning): abort parsing to avoid XML errors.
  • XML ParseError: malformed or truncated XML; verify the source file.
  • Timeouts: add caching and increase request timeout if needed.
Books Store

Search Form


Author's book list:

LES DONES I ELS DIES

LES DONES I ELS DIES

ISBN: 9788429777192
Page: 376
Lang: Catalán
Year: 2018
Price: 18.90
Publisher By: Edicions 62
Tags: Poesía en catalán,Poesía,Literatura

EL JUEGO DE LA MEMORIA

EL JUEGO DE LA MEMORIA

ISBN: 9788417108809
Page: 376
Lang: Castellano
Year: 2018
Price: 19.00
Publisher By: Maeva
Tags: Novela negra

PERSEPOLIS RISING (THE EXPANSE 7)

PERSEPOLIS RISING (THE EXPANSE 7)

ISBN: 9780356510323
Page: 576
Lang: Inglés
Year: 2018
Price: 11.02
Publisher By: Macdonald orbis
Tags: Literatura en ingles,En otros idiomas,Literatura

NOW A MAJOR TV SHOW ON NETFLIX Persepolis Rising is the seventh novel in the New York Times bestselling Expanse series. In the thousand-sun network of humanity's expansion, new colony worlds are struggling to find their way. Every new planet lives on a knife-edge between collapse and wonder, and the crew of the ageing gunship Rocinante have their hands more than full keeping the fragile peace. In the vast space between Earth and Jupiter, the inner planets and the Belt have formed a tentative and uncertain alliance, still haunted by a history of wars and prejudices. On the lost colony world of Laconia, a hidden enemy has a new vision for all of humanity - and the power to enforce it. New technologies clash with old, as the history of human conflict returns to its ancient pattern of war and subjugation. But human nature is not the only enemy, and the forces being unleashed have their own price. A price that will change the shape of humanity - and of the Rocinante - unexpectedly and for ever . . . The Expanse series has sold over two million copies worldwide and is now a major television series. The Expanse Leviathan Wakes Caliban's War Abaddon's Gate Cibola Burn Nemesis Games Babylon's Ashes Persepolis Rising Praise for the Expanse 'The science fictional equivalent of A Song of Ice and Fire' NPR Books 'As close as you'll get to a Hollywood blockbuster in book form' io9.com 'Great characters, excellent dialogue, memorable fights' wired.com 'High adventure equalling the best space opera has to offer, cutting-edge technology and a group of unforgettable characters . . . Perhaps one of the best tales the genre has yet to produce' Library Journal 'This is the future the way it's supposed to be' Wall Street Journal 'Tense and thrilling' SciFiNow

TAN SENZILL COM TUITEJAR T ESTIMO

TAN SENZILL COM TUITEJAR T ESTIMO

ISBN: 9788417420130
Page: 528
Lang: Catalán
Year: 2018
Price: 9.45
Publisher By: Labutxaca
Tags: Juvenil

Amb aquest llibre arranca una nova trilogia que far les delícies dels seus lectors. Tan senzill com tuitejar testimoés la primera part d'una nova trilogia signada per Blue Jeans, l'autor de la srie més venuda de literatura juvenil romntica. En la nova novella de Blue, coneixerem a un grup de nois i noies que afronten per primera vegada l'experincia de viure i estudiar lluny de la casa familiar, per la qual cosa Madrid es convertir en la seva ciutat d'acollida i, la residncia, en la seva casa. Tots ells tindran els seus propis problemes individuals i hauran d'enfrontar-se a les bromes, la solitud, els enganys d'Internet, les noves relacions que puguin sorgir, les temptacions poc recomanablesMalgrat tot, i per sobre de tot, triomfar l'amor, l'amistat i la lleialtat al grup.

BABYLON S ASHES: (THE EXPANSE 6)

BABYLON S ASHES: (THE EXPANSE 6)

ISBN: 9780356504292
Page: 560
Lang: Inglés
Year: 2018
Price: 11.04
Publisher By: Macdonald orbis
Tags: Literatura en ingles,En otros idiomas,Literatura

A revolution brewing for generations has begun in fire. It will end in blood. The Free Navy - a violent group of Belters in black-market military ships - has crippled the Earth and begun a campaign of piracy and violence among the outer planets. The colony ships heading for the thousand new worlds on the far side of the alien ring gates are easy prey, and no single navy remains strong enough to protect them. James Holden and his crew know the strengths and weaknesses of this new force better than anyone. Outnumbered and outgunned, the embattled remnants of the old political powers call on the Rocinante for a desperate mission to reach Medina Station at the heart of the gate network. But the new alliances are as flawed as the old, and the struggle for power has only just begun. As the chaos grows, an alien mystery deepens. Pirate fleets, mutiny and betrayal may be the least of the Rocinante's problems. And in the uncanny spaces past the ring gates, the choices of a few damaged and desperate people may determine the fate of more than just humanity.

NEMESIS GAMES: (THE EXPANSE 5)

NEMESIS GAMES: (THE EXPANSE 5)

ISBN: 9780356504254
Page: 576
Lang: Inglés
Year: 2018
Price: 11.02
Publisher By: Macdonald orbis
Tags: Literatura en ingles,En otros idiomas,Literatura

NOW A MAJOR TV SERIES ON NETFLIX Nemesis Games is the fifth book in the New York Times bestselling Expanse series. A thousand worlds have opened, and the greatest land-rush in human history has begun. As wave after wave of colonists leave, the power structures of the old solar system begin to buckle. Ships are disappearing without a trace. Private armies are being secretly formed. The sole remaining protomolecule sample is stolen. Terrorist attacks previously considered impossible bring the inner planets to their knees. The sins of the past are returning to exact a terrible price. And as a new human order is struggling to be born in blood and fire, James Holden and the crew of the Rocinante must struggle to survive and get back to the only home they have left. The Expanse series has sold over two million copies worldwide and is now a major television series. The Expanse series Leviathan Wakes Caliban's War Abaddon's Gate Cibola Burn Nemesis Games Babylon's Ashes Persepolis Rising Praise for the Expanse 'The science fictional equivalent of A Song of Ice and Fire' NPR Books 'As close as you'll get to a Hollywood blockbuster in book form' io9.com 'Great characters, excellent dialogue, memorable fights' wired.com 'High adventure equalling the best space opera has to offer, cutting-edge technology and a group of unforgettable characters . . . Perhaps one of the best tales the genre has yet to produce' Library Journal 'This is the future the way it's supposed to be' Wall Street Journal 'Tense and thrilling' SciFiNow

EL ORO DEL MAR

EL ORO DEL MAR

ISBN: 9788425356803
Page: 560
Lang: Castellano
Year: 2018
Price: 20.80
Publisher By: Grijalbo
Tags: Narrativa histórica

Una deslumbrante epopeya histórica que nos traslada a la floreciente y peligrosa Europa del siglo XIII a través de una expedición comercial que deberá enfrentarse a las amenazas del mar y de la tierra pero, sobre todo, a la codicia de los hombres. Varennes Saint-Jacques, 1260.Tras un trágico revés familiar y económico, los hermanos Balian y Blanche Fleury, descendientes de una antaño próspera familia de Varennes Saint-Jacques, deciden embarcarse en una arriesgada expedición comercial a la remota isla de Gotland. Su objetivo primordial es mantener a toda costa el negocio de sus antepasados, pero su juventud también les empuja a la búsqueda constante de aventuras y a la persecución del amor. Ingenuos y apasionados, ambos ignoran que frente a ellos se alzan los poderosos Rapesulver, un clan de comerciantes sin escrúpulos que hará todo lo posible para conservar su indiscutida hegemonía en las frías aguas del Báltico. Con esta maravillosa novela histórica, Daniel Wolf nos sumerge en las procelosas aguas de una epopeya espléndida al tiempo que nos seduce con unos personajes excelentes, un estilo propio y cuidado y una trama magistral. La crítica ha dicho sobreEl oro del mar... «ConEl oro del mar, Daniel Wolf nos garantiza el placer de una l...

DIARIO DE UNA ALEMANA: BERLIN NUEVA YORK 1945

DIARIO DE UNA ALEMANA: BERLIN NUEVA YORK 1945

ISBN: 9788409021864
Page: 223
Lang: Castellano
Year: 2018
Price: 19.00
Publisher By: Autor-editor
Tags: Narrativa extranjera,Novela contemporánea

LA PREGUNTA Y LA RESPUESTA (CHAOS WALKING 2)

LA PREGUNTA Y LA RESPUESTA (CHAOS WALKING 2)

ISBN: 9788416588770
Page: 512
Lang: Castellano
Year: 2018
Price: 18.95
Publisher By: Nube de tinta
Tags: Juvenil

CONTRAPUNTO

CONTRAPUNTO

ISBN: 9788435021791
Page: 640
Lang: Castellano
Year: 2002
Price: 12.30
Publisher By: Edhasa
Tags: Narrativa extranjera del XIX al XXI en bolsillo,Narrativa en bolsillo,Literatura

Contrapunto es posiblemente la novela más ambiciosa y lograda de Huxley y la que dio mayor fama internacional, pues en ella da forma literaria al contrapunto musical, alternando acciones simultáneas que avanzan en paralelo y demostrando que eso es posible y funciona en una novela. Se convierte así en la historia personal de muchos personajes que se entrecruzan. En cierto modo, la novela relata la trayectoria vital de Rampión, un personaje que comparte algunas características con el escritor D.H. Lawrence, pero se tratra de una novela coral cuyo mayor mérito es ser fiel reflejo de una sociedad llena de contradicciones e injusticias, la Inglaterra de entreguerras. Aldous Huxley (1894-1963), formado en Eton y Oxford se dio a conocer con unas primeras novelas predominantemente satíricas, pero el éxito y la atención de la crítica le llegó con Contrapunto (1928), a la que siguió Un mundo feliz (1932), quizá su obra más famosa (vendió un millón de ejemplares en un año) y sin duda la más inquietante. Pasó un tiempo escribiendo guiones cinematográficos en Hollywood, hasta que volvió a situarse en primera línea con novelas como El genio y la diosa (1945), El tiempo debe detenerse (1948), Mono y esencia (1949) y La isla (1962). Es además autor de influyentes ensayos, entre los que se cuentan La filosofía perenne (1946...

A MENOS DE CINCO CENTÍMETROS

A MENOS DE CINCO CENTÍMETROS

ISBN: 9788467053234
Page: 352
Lang: Castellano
Year: 2018
Price: 8.50
Publisher By: S.l.u. espasa libros
Tags: Policiaca. Novela negra en bolsillo,Narrativa en bolsillo,Literatura

Marta Robles entra por la puerta grande en su primera incursión en la novela negra, con una ambiciosa obra coral, con dos pilares clásicos, el detective desencantado y la femme fatale, en torno a los que pivota una trama muy turbia que se desarrolla en múltiples escenarios, y donde el sexo es uno de los principales protagonistas. La mujer es Misia Rothman, la bella y sensible esposa de un multimillonario del mundo de la comunicación, que cae fascinada por Artigas, el escritor de más éxito del momento, cosmopolita, mujeriego y con un punto cínico. Y el detective es Roures, un ex corresponsal de guerra,reciclado en investigador de infidelidades, a quien, tras perder la enésima batalla de su vida, le toca reinventarse desde una modesta buhardilla de Malasaña y a quien acude la joven Katia Cohen con un sorprendente convencimiento Artigas no solo mató a su madre, de quien fue amante, sino que ha asesinado al menos a otras tres mujeres.

LA MUJER DE BLANCO

LA MUJER DE BLANCO

ISBN: 9788417181451
Page: 720
Lang: Castellano
Year: 2018
Price: 27.55
Publisher By: Navona
Tags: Narrativa extranjera,Novela contemporánea

Page 798 of 834 (10000 books)

Show Code