# File lib/nicovideo/videopage.rb, line 32
    def comments(num=500)
      puts_info 'getting comment xml : id = ' + @video_id
      begin
        @params = get_params unless @params
        ms = @params['ms']
        raise ArgError unless ms
        
        thread_id = @params['thread_id']
        body = %!<thread res_from="-#{num}" version="20061206" thread="#{thread_id}" />!
        post_url = CGI.unescape(ms)
        comment_xml = @agent.post_data(post_url, body).body
        puts_debug comment_xml
        Comments.new(@video_id, comment_xml)
      end
    end