Python Text Parsing Between Two Words
I'm using beautifulsoup and want to extract all text from between two words on a webpage. Ex, imagine the following website text: This is the text of the webpage. It is just a str
Solution 1:
since you're just parsing the text you just need the regex:
import re
result = re.findall("text.*?bunch", text_from_web_page)
Post a Comment for "Python Text Parsing Between Two Words"