from bs4 import BeautifulSoup
from typing import Dict


def get_dict_available_pages(soup: BeautifulSoup) -> Dict[int, str]:
    """Returns a dict of the available pages in a BeautifulSoup object."""
    dict_links = {
        int(x["data-sc-pager-page"]): "https://www.senscritique.com" + x["href"]
        for x in soup.find_all("a", {"class": "eipa-anchor"})
    }
    return dict_links