def SerializeThriftCall(self, msg, buf):
    thrift_buffer = TMemoryBuffer()
    thrift_buffer._buffer = buf
    protocol = self._protocol_factory.getProtocol(thrift_buffer)
    method, args, kwargs = msg.method, msg.args, msg.kwargs
    is_one_way = self._FindClass('%s_result' % method) is None
    args_cls = self._FindClass('%s_args' % method)
    if not args_cls:
      raise AttributeError('Unable to find args class for method %s' % method)

    protocol.writeMessageBegin(
        msg.method,
        TMessageType.ONEWAY if is_one_way else TMessageType.CALL,
        self._seq_id)
    thrift_args = args_cls(*args, **kwargs)
    thrift_args.write(protocol)
    protocol.writeMessageEnd()
Takes URL from the urlToVisit queue and visits them
dataset/ETHPy150Open steveniemitz/scales/scales/thrift/serializer.py/MessageSerializer.SerializeThriftCall--crossover with--dataset/ETHPy150Open Diastro/Zeek/src/client.py/WorkingNode.crawlingThread