Final function is below. If you have better way to code that, please share :-). Thanks!
def get_booksurl_in_theme_page(htmlfile: Path):
bookslinks = []
if htmlfile.is_file() and htmlfile.suffix == '.html':
bs4_soup = BeautifulSoup(htmlfile.read_text(), 'html.parser')
bs4_bookslinks = bs4_soup.select('h4.title > a')
for tag_a in bs4_bookslinks:
bookslinks.append(tag_a.get('href'))
else:
logging.debug("get_booksurl_in_theme_page appele: param n'est pas un fichier")
return bookslinks