Jump to content

Recommended Posts

Posted (edited)

So, I found in my old HDD some files and maybe someone want to use this one.
You can use the code to find current votes of vote sites.
Here is the Java Class : https://pastebin.com/EtTxVrM4

And here are some example's for few sites:

System.out.println("l2topzone.com: " + new ContentURL("https://l2topzone.com/lineage/server-info/6084/l2damage", "span.label.label-info").toInt());
System.out.println("l2.hopzone.net: " + new ContentURL("https://l2.hopzone.net/lineage2/details/93067/l2-damage", "span.rank.tooltip.hidden").toInt());
System.out.println("l2network.eu: " + new ContentURL("https://l2network.eu/details/346/L2Exilium-World/", "span.btn-label.btn-label-right").toInt());
System.out.println("topservers200.com : " + new ContentURL("https://topservers200.com/lineage2/1/l2mad", "a#vote-btn.btn-vote > span").toInt());
System.out.println("l2.topgameserver.net : " + new ContentURL("https://l2.topgameserver.net/lineage/server-detail/250/L2Reborn", "div.votes-count > strong").toInt());
System.out.println("l2top.co : " + new ContentURL("https://l2top.co/server-info/L2Unity", "li.text4").toInt());
System.out.println("top.l2jbrasil.com: " + new ContentURL("https://top.l2jbrasil.com/index.php?a=stats&u=djvogans", "div#adminctt b:contains(Entradas(Total):)").next().toInt());
System.out.println("l2votes.com : " + new ContentURL("https://l2votes.com/serverPage.php?sid=8", "a.votes").toInt());
System.out.println("itopz.com : " + new ContentURL("https://itopz.com/info/325312", "span.btn.badge.badge-secondary").toInt());
System.out.println("l2jtop.com : " + new ContentURL("https://l2jtop.com/server/exiliumworld/info/", "div.votes").toInt());
System.out.println("l2top.gr : " + new ContentURL("https://l2top.gr/?a=details&u=l2kot", "span.badge.badge-light").toInt());

// Example Output
// l2topzone.com: 4878
// l2.hopzone.net: 21588
// l2network.eu: 11658
// topservers200.com : 4221
// l2.topgameserver.net : 50228
// l2top.co : 8418
// top.l2jbrasil.com: 36593
// l2votes.com : 2649
// itopz.com : 544
// l2jtop.com : 12897
// l2top.gr : 504


I guess everyone that is not lazy is able to add any website he want and create basic system for rewarding the players.

To use the class you should import Jsoup.jar on your project : https://jsoup.org/download

Edited by StinkyMadness
  • Like 2
  • Thanks 2
Posted

I will talk about my website itopz

the link you use (https://itopz.com/info/325312) will consume according to gmetrix

Total Page Size - 3.00MB

Fully Loaded Time 8.0s

when I have this API that is instant and works only for this porpuse (where demo secret API key for each server owner)

https://itopz.com/check/DEMO/325499/ (global server vote info)

https://itopz.com/check/DEMO/325499/5.111.134.5/ (individual voter)

 

so why use an external library instead of pure java methods with also so many shared stuff that working like

https://github.com/nightw0lv/iTopZ-Java

https://github.com/nightw0lv/iTopZ-PHP/blob/master/voteCheck.php

they are ready and they are free

 

and thats talking about my website not the others

 

conclusion is not efficient, its slow, its very slow and its shared in much more better way.

  • Like 1
Posted
2 hours ago, Nightw0lf said:

...

Reading whole HTML result its not the best way to find votes when the site support JSON results ofc.. but not all sites share JSON information's for global results.
Also the Jsoup lib can be used for finding any information from URL not only votes and the class I shared its an simple example.

You can grab any info with simple inspect line you want to grab.
image.png.2822a1fcca7dcf3d0cc6c03434831b37.png

Anyway... its just a guide for jsoup, not code share.
I hope one day all toplist sites provide JSON results for global votes like your site. GJ :)

Posted
10 hours ago, Nightw0lf said:

I will talk about my website itopz

the link you use (https://itopz.com/info/325312) will consume according to gmetrix

Total Page Size - 3.00MB

Fully Loaded Time 8.0s

when I have this API that is instant and works only for this porpuse (where demo secret API key for each server owner)

https://itopz.com/check/DEMO/325499/ (global server vote info)

https://itopz.com/check/DEMO/325499/5.111.134.5/ (individual voter)

 

so why use an external library instead of pure java methods with also so many shared stuff that working like

https://github.com/nightw0lv/iTopZ-Java

https://github.com/nightw0lv/iTopZ-PHP/blob/master/voteCheck.php

they are ready and they are free

 

and thats talking about my website not the others

 

conclusion is not efficient, its slow, its very slow and its shared in much more better way.

 Welcome back my veteran 😞

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • L2 PVPTOP - HTML DESIGN    
    • Do not trust this guy, he will scam you. I have sent proof to the mods, I have posted proof on another thread and I can send proof to anyone who DMs me. Avoid this guy. So not only did he scam me out of $51 USDTthen delete his messages and blocked me (I have proof) . You can see his Facebook group is constantly changing names depending on his most current scam. If you see this message and you still decide to go forward with sending your money to him, that’s on you. I can’t stress this enough. This guy is a scammer. 
    • So Goldbar thinks that deleted his side of the conversation makes it easier to claim he didn’t scam me. But I sent him $51 USDT to his ERC-20 account it was verified, he acted like it was fine but then deleted his messages and blocked me. Seriously do not trust this guy. 
    • Hi everyone, let me introduce myself—I'm Martin, a junior developer. I'm diving into the world of L2 servers, and honestly, I'm super overwhelmed about where to start learning the right way to set up, configure, and run a server. There are so many datapacks—free, private—but it's so much that my head feels like it's going to explode. I'm currently looking for someone or an active project willing to take me on as an intern. I'm not looking to make money—I'm just here to learn and grow out of pure passion for L2. I've already been working with L2jMobius H5. I managed to edit the Community Board, add a buffer, GM Shop, and teleports. I've also created custom NPCs for the GM Shop, and imported new custom weapons and armors—complete with original glow effects, like the Valakas and Antharas weapons. But there's still a lot I don't know, and it can get overwhelming. That’s why I’m looking for someone—or an active non-profit project—willing to take me on as an intern. I’m not looking to make money; I just want to learn, contribute, and grow out of pure passion for L2. If you’re working on a project and could use a motivated learner who’s eager to help, I’d love to connect!
    • Our next easy-botting project, Kain, is right around the corner! Launching tomorrow, Saturday, April 26th at 9:00 ET (UTC -4)! If you haven’t, check out the features and join our Discord to catch up on the latest drama. See you very soon! Read more about L2Toggle and Kain on our site and forum!  
  • Topics

×
×
  • Create New...