@@ -0,0 +1,1310 @@
+package wotakutools.connect;%0A/**%0A * %E6%9F%90tune%E3%81%B8%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E3%82%AF%E3%83%A9%E3%82%B9%0A * @author shun kawai%0A */%0A%0Aimport wotakutools.connect.Connect;%0Aimport wotakutools.connect.ConnectException.*;%0A%0Aimport java.io.IOException;%0A%0Aimport java.util.*;%0A%0Aimport org.jsoup.*;%0Aimport org.jsoup.nodes.*;%0Aimport org.jsoup.Connection.*;%0A%0Apublic class ConnectFortune%0A    extends wotakutools.connect.Connect %7B%0A%0A    public static final String BASEURI = %22https://fortunemusic.jp/%22;%0A    public static final String LOGINURI = BASEURI + %22default/login/%22;%0A    public static final String MYPAGEURI = BASEURI + %22mypage/%22;%0A%0A    private Map %3CString, String%3E cookies;%0A%0A    @Override%0A    public int login(String username, String password)%0A        throws java.io.IOException %7B%0A        // %E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E5%87%A6%E7%90%86%0A        Connection con = Jsoup.connect(ConnectFortune.LOGINURI)%0A            .data(%22login_id%22, username)%0A            .data(%22login_pw%22, password)%0A            .data(%22submit%22, %22%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%22)%0A            .cookies(cookies)%0A            .method(Method.POST);%0A        Connection.Response response = con.execute();%0A        this.cookies = response.cookies();%0A        return response.statusCode();%0A    %7D%0A%0A    @Override%0A    public Document connect(String URI)%0A        throws java.io.IOException %7B%0A        return Jsoup.connect(URI)%0A            .cookies(this.cookies)%0A            .get();%0A    %7D%0A%7D%0A

Add ConnectFortune