- PR -

人気のあるキーワード

1
投稿者投稿内容
cats
大ベテラン
会議室デビュー日: 2002/11/29
投稿数: 221
お住まい・勤務地: 東京
投稿日時: 2003-09-03 14:27
件名で使われる人気のあるキーワードBest40です。

1 272929 asp.net
2 263555 datagrid
3 203866 web
4 201650 .net
5 99157 java
6 71424 vb.net
7 63889 excel
8 46732 ado.net
9 33030 framework
10 32440 crystalreport
11 30279 windows
12 28526 live
13 27385 vb
14 26763 vs.net
15 26562 visual
16 26397 oracle
17 25991 crystal
18 24608 xml
19 21924 vs
20 21724 dataset
21 21372 dropdownlist
22 20713 db
23 19585 textbox
24 18442 amp
25 18310 tips
26 18080 uml
27 16000 studio
28 15749 tricks
29 15094 form
30 15020 asp
31 14575 crystalreportviewer
32 14471 ie
33 14354 html
34 13597 netdictionary
35 13377 session
36 13370 report
37 12940 treeview
38 12456 dll
39 11719 service
40 11624 sql

使用したプログラム。参照数を加算しています。
コード:
using System;
using System.IO; 
using System.Net;
using System.Collections;
using System.Text.RegularExpressions;

public class Test 
{
	public static void Main()
	{
		string		s;
		int			forum = 7;
		int			k = 0;
		Hashtable	h = new Hashtable();
		WebClient wc = new WebClient();
		while (true)
		{
			s = "http://www.atmarkit.co.jp/bbs/phpBB/viewforum.php?forum=" + forum + "&start=" + k;
			Console.WriteLine(s);
			Byte[] b = wc.DownloadData(s); 
			s = (string)System.Text.Encoding.GetEncoding("euc-jp").GetString(b);
			k += 50;
			MatchCollection mc = Regex.Matches(s,"forum=" + forum + "&[0-9]+\\">(.*?)</a>"
				+ ".*?size=\\"2\\">([0-9]+)</font>.*?size=\\"2\\">([0-9]+)</font>",RegexOptions.Singleline);
			if (mc.Count == 0) break;
			foreach (Match m in mc)
			{
				int	n = int.Parse(m.Groups[3].Value);
				foreach (Match mm in Regex.Matches(m.Groups[1].Value,"[a-zA-Z.]+"))
				{
					s = mm.Value.ToLower();
					if (s.Length == 1 || s == "...") continue;
					object o = h[s];
					h[s] = n + (o == null ? 0 : (int)o);
				}
			}
		}
		wc.Dispose();
		SortedList sl = new SortedList();
		foreach (DictionaryEntry de in h) sl[-(int)de.Value] = de.Key;
		k = 0;
		string fnam = "result.txt";
		StreamWriter sw = new StreamWriter(fnam);
		foreach (DictionaryEntry de in sl)
		{
			sw.WriteLine("{0,3} {1,6} {2}",++k,-(int)de.Key,de.Value);
		}
		sw.Close();
		System.Diagnostics.Process.Start(fnam);
	}
}


日本語のキーワードも欲しいな。
1

スキルアップ/キャリアアップ(JOB@IT)