I started learning web scraping and I've grown fond of utilizing the re module with Beautifulsoup to search for tags and elements; For example:
bs = BeautifulSoup(html, 'html.parser')
result = bs.find('div', attrs={'class':re.compile(r'regexpattern')})
Question
Is there any way to incorporate the re module with the Requests-HTML library to search for string patterns similar to with Beautifulsoup? I am aware elements can be selected containing certain text using the containing keyword argument:
r.html.find('a', containing='foobar')
However, I want to know specifically, if the re module can be utilized with the Requests-HTML module ~ Thanks!