Sometimes when I scrape a site, it does not return urls with the hostname (e.g /search/en or search/en). How do I get the hostname in scrapy so I can add it before making a request? Currently, I am hardcoding it.
def parse_table(self, response):
    for links in self._parse_xpath(response, 'table'):
        for link in links:
            # Annoying part, it's not dynamic and hardcoded, other 
            #functions also need to do this because of incomplete urls.
            yield Request(url='https://domain.io' + link,
                        callback=self.parse_document_tab)