Jun-10-2020, 04:45 PM
Hi
Thank's to both of you, Larz60+ and snippsat.
I think, I begin to understand a little better. I got confused by what I remember from my reading of W3school pages concerning HTML, XML and so on. The concept of DOM-node is, to my understanding, a bit different than the concept of BeautifulSoup-tag.
In terms of DOM-nodes, in the sentence "<html><head/><body/></html>, the html node does not contain "<head/><body/>", and both of them are its children. At least, this is the way I understood W3school pages.
The Beautifulsoup documentation is a rather a tutorial which gives a lot of examples. It contains much information, however some of which being disseminated throughout the document. For example, creating attributes as if they were pieces of a dictionnary is mentionned close to the beginning of the document. When one wants to add an attribute to a tag, one may well have forgotten this possibility and look somewhere down in the document to read how to do such thing.
To make things still clearer, I would appreciate to have access to sort of a BeautifulSoup reference book. I mean a document which defines the objects, lists and explain the methods and the arguments to be use to call them. I did not find such a document in BeautifulSoup pages.
Have you an idea where I could find it ?
Arbiel
Thank's to both of you, Larz60+ and snippsat.
I think, I begin to understand a little better. I got confused by what I remember from my reading of W3school pages concerning HTML, XML and so on. The concept of DOM-node is, to my understanding, a bit different than the concept of BeautifulSoup-tag.
In terms of DOM-nodes, in the sentence "<html><head/><body/></html>, the html node does not contain "<head/><body/>", and both of them are its children. At least, this is the way I understood W3school pages.
The Beautifulsoup documentation is a rather a tutorial which gives a lot of examples. It contains much information, however some of which being disseminated throughout the document. For example, creating attributes as if they were pieces of a dictionnary is mentionned close to the beginning of the document. When one wants to add an attribute to a tag, one may well have forgotten this possibility and look somewhere down in the document to read how to do such thing.
To make things still clearer, I would appreciate to have access to sort of a BeautifulSoup reference book. I mean a document which defines the objects, lists and explain the methods and the arguments to be use to call them. I did not find such a document in BeautifulSoup pages.
Have you an idea where I could find it ?
Arbiel
using Ubuntu 18.04.4 LTS, Python 3.8
having substituted «https://www.lilo.org/fr/» to google, «https://protonmail.com/» to any other unsafe mail service and bépo to azerty (french keyboard layouts)
having substituted «https://www.lilo.org/fr/» to google, «https://protonmail.com/» to any other unsafe mail service and bépo to azerty (french keyboard layouts)