Python Forum
remove tags from BeautifulSoup result
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
remove tags from BeautifulSoup result
#2
for a in address:
    print(a.text)
Output:
Address: Nobels gate 32, N-0268 Oslo Address: Akershus Festning, 0015 Oslo Address: Frederiks gate 2, 0164 Oslo Address: Universitetsgata 13, Oslo Address: Tøyengata 53, 0578 Oslo Address: Bellevue, Oslo Address: Frederiks gate 2, 0164 Oslo Address: Bygdøynesveien 39, 0286 Oslo Address: Kongeveien 5, 0787 Oslo Address: Karl Johansgt. 11, 0154 Oslo Address: Rådhuset, 0037 Oslo Address: Bryggegata 9, 0120 Oslo Address: Sars gate 1, 0562 Oslo Address: Kirsten Flagstads Plass 1, 0150 Oslo
Reply


Messages In This Thread
remove tags from BeautifulSoup result - by moski - Jun-04-2019, 09:18 PM
RE: remove tags from BeautifulSoup result - by heiner55 - Jun-05-2019, 01:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  BeautifulSoup - I can't translate html tags that contain <a href=..</a> OR <em></em> Melcu54 10 1,624 Oct-27-2022, 08:58 AM
Last Post: wavic
  Cannot Remove the Double Quotes on a Certain Word (String) Python BeautifulSoup soothsayerpg 5 7,065 Oct-27-2019, 09:53 AM
Last Post: newbieAuggie2019
  Loop through tags inside tags in Selenium/Python xpack24 1 5,672 Oct-23-2019, 10:15 AM
Last Post: Larz60+
  weird result trying to remove numbers from a list Exsul 6 3,402 Aug-27-2019, 05:10 AM
Last Post: perfringo
  Preserving anchor tags in BeautifulSoup graham23s 6 2,938 May-19-2019, 09:16 AM
Last Post: graham23s
  Remove Empty tags in XML using plain python without lxml library saurabhverma2412 3 9,402 Aug-21-2018, 04:53 PM
Last Post: saurabhverma2412

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020