def __init__(self, origin_country, destination_country, amount, pay_method, receive_method): super(XO_Strategy, self).__init__() self._url = 'https://www.xoom.com/send/getstarted' self._origin = origin_country self._d_country = destination_country self._amount = amount self._pay_method = pay_method self._receive_method = receive_method self._map = lib_config_data.get_country_iso_codes() self._d_country_drop = "div.countryItem#" + self._d_country
def __init__(self, origin_country, destination_country, amount, pay_method, receive_method): super(WU_Strategy, self).__init__() self._url = 'https://www.westernunion.com/us/en/send-money/start.html' self._origin = origin_country self._d_country = destination_country self._amount = amount self._pay_method = pay_method self._receive_method = receive_method self._map = lib_config_data.get_country_iso_codes() self._d_country_drop = self._d_country
def __init__(self,origin,d_country,amount,pay_method,receive_method): super(MG_Strategy, self).__init__() self._url = 'https://www.moneygram.com/wps/portal/moneygramonline/home/sendmoney?CC=US&LC=en-US' self._origin = origin self._d_country = d_country self._amount = amount self._pay_method = pay_method self._receive_method = receive_method self._map =lib_config_data.get_country_iso_codes() self._d_country_drop = self._d_country # Pick up and deposit HTML structure are not the same self._pick_up_flag = False#pick up flag for parse()