Have the following function that checks a certain webpage for a keywoard
def checkString():
url_a = 'https://launchstudio.bluetooth.com/ListingDetails/50756'
r_a = requests.get(url_a)
soup_a = BeautifulSoup(r_a.text)
for blem in soup_a(text=re.compile(r'RFCOMM')):
return True
return False
Have verified that my soup_a is the same as the view-source of the url, but it seems that my search will only return results contain within the head tags and have a hard time figuring out why. Any suggestions?
Python version 2.7.5
RFCOMMstring as one, not e.g.<b>RF</b>commorRF<wbr/>COMM?