I am trying to get a specific string in a specific position. The string I have is a Json inside html page I tried to locate it using HTML tags But I could not The site I want to scarap
the string I want to get is: "isOnlyFewLeft":false,"isOutOfStock":false,"isRopisEligibleSku":true,"isSephoraExclusive":false,"
I tried the following pattern: '''"isOutOfStock": (.*?), "isRopisEligibleSku"'''
But it did not work.
My code: ```
def Filter(self):
try:
print(self.sourcepage)
match = re.search('''"isOutOfStock": (.*?), "isRopisEligibleSku"''', self.sourcepage)
print(match)
if match:
print(match.group())
except BaseException as e:
print(e)```