Questions tagged [htmlparse]
6 questions
2
votes
0 answers
How can I change
tag with line break in SwiftSoup?
I'm trying to get a paragraph with SwiftSoup, the html has the codes. When I parse it, it's just getting text without line break. How can I change tags with line breaks?
do {
let html = "First parse "
+…

Emre Isik
- 51
- 6
1
vote
1 answer
BeautifulSoup for online IDE?
This guide says that to extract some information from a website using requests and Beautiful soup we can use the method BeautifulSoup(request, ‘html5lib’), but it states that it will not run on an online IDE. I was wondering why that is and if there…

julkarham
- 115
- 1
- 5
0
votes
0 answers
How to get values of a tag if only css properties are given?

amit kumar
- 42
- 4
0
votes
1 answer
Python html parse
I am trying to extract DetailID value from the html for example view-source:http://www.hgtv.com/
mdManager.addParameter("DetailID", "466c141156dd2b88eeffedd780cf9126");
output should be 466c141156dd2b88eeffedd780cf9126
i am currently using…

codeexplorer
- 409
- 1
- 6
- 19
0
votes
1 answer
Parse specific value from XML node
Using R and the XML package, I have parsed an ("HTMLInternalDocument" "HTMLInternalDocument" "XMLInternalDocument" "XMLAbstractDocument") object using the XML htmlParse function. The line in the xml object, see below, that I am interested in…

Jeffrey Evans
- 2,325
- 12
- 18
-1
votes
1 answer
When i am using soup. Find(p)['class'] its is saying literal['class'] cannot be assigns to the type 'SupportsIndex' slice
import requests
from bs4 import BeautifulSoup, NavigableString, Tag
url = "https://www.codewithharry.com"
r = requests.get(url)
htmlContent = r.content
soup = BeautifulSoup(htmlContent, 'html.parser')
print(soup.find('p')['class'])
user15022116