Ejemplo n.º 1
0
    def get_device_wrapper(self, args):
        device_wrapper = DeviceWrapper(args.device, args.old, args.wait_for_device, args.app_id)
        device = device_wrapper.get()
        if device is None:
            return None, None

        app_version = get_instagram_version(args.device, args.app_id)

        print("Instagram version: " + app_version)

        return device_wrapper, app_version
Ejemplo n.º 2
0
    def parse_args_and_get_device_wrapper(self):
        ok, args = parse_arguments(self.get_session_args())
        if not ok:
            return None, None

        device_wrapper = DeviceWrapper(args.device, args.old)
        device = device_wrapper.get()
        if device is None:
            return None, None

        print("Instagram version: " + get_instagram_version())

        return args, device_wrapper