<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __get_request(self, host, soup):
 """Build a request from the given soup form. Args: host str: The URL of the current queue item. soup (obj):
 The BeautifulSoup form. Returns: :class:`nyawc.http.Request`: The new Request. """


        url = URLHelper.make_absolute(host, self.__trim_grave_accent(soup["action"])) if soup.has_attr("action") else host
        method_original = soup["method"] if soup.has_attr("method") else "get"
        method = "post" if method_original.lower() == "post" else "get"
        data = self.__get_form_data(soup)

        return Request(url, method, data)