text_plain_output_1.png
from bs4 import BeautifulSoup

URLs = ['https://www.allrecipes.com/recipes/721/world-cuisine/european/french/', 'https://www.allrecipes.com/recipes/16126/world-cuisine/european/french/french-bread/', 'https://www.allrecipes.com/recipes/17138/world-cuisine/european/french/main-dishes/', 'https://www.allrecipes.com/recipes/1857/world-cuisine/european/french/main-dishes/pork/', 'https://www.allrecipes.com/recipes/1858/world-cuisine/european/french/main-dishes/chicken/', 'https://www.allrecipes.com/recipes/1828/world-cuisine/european/french/desserts/', 'https://www.allrecipes.com/recipes/1829/world-cuisine/european/french/soups-and-stews/', 'https://www.allrecipes.com/recipes/1848/world-cuisine/european/french/appetizers/']

recipes_urls = {}
for u in URLs:
    lst_var = []
    url = u
    res = requests.get(url).text
    soup = BeautifulSoup(res, 'html.parser')
    name_ = soup.find_all('h1', class_='comp mntl-taxonomysc-heading mntl-text-block')
    try:
        for i in range(len(soup.find_all('a', class_='comp card--image-top mntl-card-list-items mntl-document-card mntl-card card card--no-image'))):
            url = soup.find_all('a', class_='comp card--image-top mntl-card-list-items mntl-document-card mntl-card card card--no-image')[i]['href']
            lst_var.append(url)
    except:
        pass
    for i in range(len(soup.find_all('a', class_='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image'))):
        url = soup.find_all('a', class_='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image')[i]['href']
        lst_var.append(url)
    recipes_urls[name_[0].text[1:]] = lst_var
len(recipes_urls)