r/learnpython • u/jurassic_park_123 • 19h ago
The python library "Beautiful Soup", from where did it gets that name from?
√|
33
Upvotes
r/learnpython • u/jurassic_park_123 • 19h ago
√|
50
u/EszterSantos72 18h ago
Beautiful Soup is named after the "Beautiful Soup" poem sung by the Mock Turtle in Alice in Wonderland, which you can find referenced in the library's original documentation and source code comments.
24
u/alexice89 19h ago
Alice in wonderland.
13
u/RyanLMcc 18h ago
It gets its name as a play on tag soup (malformed HTML commonly found on the web) combined with the Mock Turtle's Song Beautiful Soup from Alice's Adventures in Wonderland.
13
u/plugwash 19h ago
I'd guess it's in-part a reference to "tag soup", a term for HTML that is not valid according to formal standards, but is nonthless common on the web and rendered by common web browsers.
https://en.wikipedia.org/wiki/Tag_soup
1
u/JohnnyRelentless 15h ago
From where from
-3
u/ConsiderationNo9044 19h ago
Lots of people call long, word-heavy, low-visual websites and blogs "word soup" because of how hard it is to read and take in all the information in a proper manner, akin to a ton of letters floating around in soup (like alphabet pasta). Web scraping allows quick, programmatic access to these pages and the organisation of the data for easy use and readability, making it look "beautiful". This is also partially because well-organised data is referred to as beautiful (see r/DataIsBeautiful). If you've read to the end, this is where I tell you that I made this all up and none of it is true
-3
u/MasterpieceNovel3619 18h ago
could have googled...
-32
u/ketsa3 19h ago
Why not ask chatgpt ?