antikatesthse auto ...
+ private int getVotes()
+ {
+ URL url = null;
+ InputStreamReader isr = null;
+ BufferedReader in = null;
+ try
+ {
+ url = new URL(http);
+ isr = new InputStreamReader(url.openStream());
+ in = new BufferedReader(isr);
+ String inputLine;
+ while ((inputLine = in.readLine()) != null)
+ {
+ // for top-zone
+ //if (inputLine.contains("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\""))
+ //{
+ //return Integer.valueOf(inputLine.split(">")[5].replace("</font", ""));
+ //}
+
+ //for hopzone
+ if (inputLine.contains("moreinfo_total_rank_text"))
+ return Integer.valueOf(inputLine.split(">")[2].replace("</div", ""));
+ }
+ }
+ catch (IOException e)
+ {
+ _log.warning("AutoVoteRewardHandler: "+e);
+ }
+ finally
+ {
+ try
+ {
+ in.close();
+ }
+ catch (IOException e)
+ {}
+ try
+ {
+ isr.close();
+ }
+ catch (IOException e)
+ {}
+ }
+ return 0;
+ }
me auto
+ private int getVotes()
+ {
+ URL url = null;
+ InputStreamReader isr = null;
+ BufferedReader in = null;
+ try
+ {
+ url = new URL(Config.VOTE_SYSTEM_PAGE);
+ URLConnection con = url.openConnection();
+ con.addRequestProperty("User-Agent", "Mozilla/4.76");
+ isr = new InputStreamReader(con.getInputStream());
+ in = new BufferedReader(isr);
+ String inputLine;
+ while ((inputLine = in.readLine()) != null)
+ {
+ if(Config.VOTE_SYSTEM_HOPZONE == false){
+ //TopZone
+ if(inputLine.contains("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">")){
+ String i = inputLine.replace("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\">", "");
+ i = i.replace("</font></b></div></td></tr>", "");
+ i = i.trim();
+ int o = Integer.parseInt(i);
+ return Integer.valueOf(o);
+ }
+ } else {
+ //for hopzone
+ if (inputLine.contains("Anonymous User Votes"))
+ return Integer.valueOf(inputLine.split(">")[2].replace("</span", ""));
+
+ }
+ }
+ }
+ catch (IOException e)
+ {
+ _log.warning("AutoVoteRewardHandler: "+e);
+ }
+ finally
+ {
+ try
+ {
+ in.close();
+ }
+ catch (IOException e)
+ {}
+ try
+ {
+ isr.close();
+ }
+ catch (IOException e)
+ {}
+ }
+ return 0;
+ }
me tis analoges allages vevea ...
i perna apo tin arxh auto to Vote reward , 100 % working
http://www.4shared.com/get/zXPtR7QT/votes.html ( From Legent )