Comment detail

HTTPでGET (Nested Flatten)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
using System;
using System.Net;
using System.Text;
class Program
{
  static void Main()
  {
    string url = "http://ja.doukaku.org/feeds/comments/";
    WebClient wc = new WebClient();
    byte[] bb = wc.DownloadData(url);
    string s = Encoding.UTF8.GetString(bb);
    Console.WriteLine(s);
  }
}
参考にさせていただきました。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
open System;;
open System.Net;;
open System.Text;;

let getContents (url:string) =
    let webClnt = new WebClient() in
    let returnValue = webClnt.DownloadData( url ) in
    Encoding.UTF8.GetString( returnValue );;

let doukakuURL = "http://ja.doukaku.org/feeds/comments/";;

Console.WriteLine( getContents doukakuURL );;

Index

Feed

Other

Link

Pathtraq

loading...