def results_config(current_page):
    """Returns a config for each source's search results page."""
    return {
        "coindesk": {
            "page_url": "https://www.coindesk.com/page/" + str(current_page) + "/?s=Bitcoin",
            "item_XPATH": '//div[@class="post-info"]',  # XPATH for the search result item container
            "url_XPATH": "./h3/a",  # XPATH for url to full article, relative from item_XPATH
            "date_on_page": True,  # Whether it's possible to collect datetime objects from the results page
            "date_ordered": True,
            "base_url": "https://coindesk.com",
            "results_per_page": 10,
            "date_XPATH": './p[@class="timeauthor"]/time'},  # XPATH for article date, will look for datetime object
        "news_bitcoin": {
            "page_url": "https://news.bitcoin.com/page/" + str(current_page) + "/?s=Bitcoin",
            "item_XPATH": '//div[@class="item-details"]',
            "url_XPATH": "./h3/a",
            "date_on_page": True,
            "date_ordered": True,
            "base_url": "https://news.bitcoin.com",
            "results_per_page": 10,
            "date_XPATH": './div[@class="td-module-meta-info"]/span/time'
        }
    }