📄 smth_bbscatcher.java
字号:
/**
* Created by IntelliJ IDEA.
* User: Administrator
* Date: Sep 19, 2003
* Time: 9:01:09 PM
* To change this template use Options | File Templates.
*/
package Kernel;
public class SMTH_BBSCatcher extends BBSCatcher{
private String BBSNAME = "bbs.tsinghua.edu.cn";
//private String BBSBOARD_1 = "secondhand";
private String BBSBOARD_1 = "SecondMarket";
private String BBSBOARD_2 = "house";
private int ThreadNum = 2;
public static void main(String[] args) {
while(true){
SMTH_BBSCatcher smth_catcher = new SMTH_BBSCatcher();
smth_catcher.doCatch(smth_catcher.BBSNAME,smth_catcher.BBSBOARD_1,smth_catcher.ThreadNum);
try{
Thread.sleep(10000); //10 sec
}catch(Exception ex){
ex.printStackTrace();
}
smth_catcher.doCatch(smth_catcher.BBSNAME,smth_catcher.BBSBOARD_2,smth_catcher.ThreadNum);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -