[Tutor] beautiful soup raw text workarounds?
Alan Gauld
alan.gauld at yahoo.co.uk
Wed Aug 25 07:34:59 EDT 2021
On 24/08/2021 21:15, nathan Smith wrote:
> I actually fixed this myself.
Good, but it would be useful to share how, for the
benefit of future readers...
Surely "raw text" is still inside a tag, even if
its only the top level <body> tag?
> tags=soup.find_all()
> which returns tags only.
>
> Raw text are not tags.
So how did you extract it?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list