Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74131

Beautifulsoup - Remove HTML tags

$
0
0

I am trying to strip away all the HTML tags from the ‘profile’ soup, whoever am I unable to perform the “.text.strip()” operation as it is a list, as shown in code below

import requests 
from bs4 import BeautifulSoup
from pprint import pprint 

page = requests.get("https://rspo.org/members/6961/Jago-Pro-Sp.-z-o.o").text
soup = BeautifulSoup(company_page, "html.parser")

info = {}
info['Profile'] = soup.select('div.text-desc-members')

pprint(info)

Viewing all articles
Browse latest Browse all 74131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>