0
How to extract "partly cloudy" from the paragraph tag <p ngcontent-c4="" >Partly Cloudy </p>
Web scraping through python
1 Odpowiedź
+ 1
List Slices also work on Strings:
line = '<p ngcontent-c4="" >Partly Cloudy </p>'
print (line[line.index('>')+1:line.index('</')])
# Prints the Part between '>' and Endtag '</'
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2453/?ref=app