Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Today at 9:03 PM
Plan your Crypto & Forex entries before you take the trade
romeshnonis
Updated:
Today at 3:20 AM
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Tuesday at 10:28 AM
🛡️ Kaspersky Antivirus – 1 Year / 1 Device | Rs. 2,300 | Only 9 Left
KSPathirana
Updated:
Sep 7, 2026
Ad icon
Professional CCTV Installation Service
Techguy231
Updated:
Sep 6, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
ElaKiri Programmer's Club
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="MihiCherub" data-source="post: 17991693" data-attributes="member: 238676"><p><span style="font-size: 12px">අපේ බත් පතට තමයි කෙලවෙන්නෙ.. අපේ එකෙක්ට කෙලවන්නෙ නැතුව ඉන්දියන් උන්ට කෙලවපන් හොදේ.. උබට ඕනෙ නම් සයිට් පිටින් බාන්න පුලුවන්. වැල සයිට් එහෙම තියෙනව නම් ඔක්කොම උනත් එකපාර බාගන්න පුලුවන්.. <img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /> මම images site වල නම් කුට්ටි පිටින් බානව. ලගදි ටොරන්ට් සයිට් එකක්ම බෑව .torrent files එක්කම.</span> <img src="/styles/default/xenforo/smilies/default/wink.gif" class="smilie" loading="lazy" alt=";)" title="Wink ;)" data-shortname=";)" /> </p><p></p><p><img src="http://i61.tinypic.com/2iqxthx.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">මුලින්ම මේ library එක ගනින්. ඒක project එකට දාගන්න. එතනින් එහාට දෙයක්ම නෑ.</span> <span style="font-size: 12px">වැඩිපුර විස්තර සයිට් එකෙත් තියෙනව.</span></p><p></p><p><a href="http://jsoup.org/download" target="_blank">http://jsoup.org/download</a></p><p></p><p><span style="font-size: 12px">Get එකකින් data ගන්න නම්</span></p><p>[CODE]</p><p>Document doc = Jsoup.connect("http://www.elakiri.com/forum/member.php?u=1")</p><p> .userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0")</p><p> .timeout(5000)</p><p> .get();[/CODE]</p><p></p><p><span style="font-size: 12px">POST එකකින් data ගන්න නම්</span>, <span style="font-size: 12px">live http header එකක් browser එකට දාගන්න.</span> </p><p><a href="https://addons.mozilla.org/en-US/firefox/addon/live-http-headers/" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/live-http-headers/</a></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">එකේන් හොයාගන්න POST වෙන data මොනාද කියල</span>..<span style="font-size: 12px"> ඒව POST කරන්න.</span></p><p>[CODE]</p><p> Connection.Response res = Jsoup.connect("https://www.internetvas.slt.lk/SLTVasPortal-war/login/login.jsp")</p><p> .data("j_username", "user")</p><p> .data("j_password", "pass")</p><p> .userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0")</p><p> .method(Connection.Method.POST).execute();</p><p></p><p>final Map<String, String> loginCookies = res.cookies(); </p><p> </p><p> Document doc = Jsoup.connect("https://www.internetvas.slt.lk/SLTVasPortal-war/application/index.jsp?page=usage")</p><p> .cookies(loginCookies)</p><p> .userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0")</p><p> .timeout(5000)</p><p> .get();[/CODE]</p><p></p><p><span style="font-size: 12px">ඊලගට අපිට html page එකම එනව. ඒකෙන් ටැග් අස්සෙන් හොයාගන්න අපිට ඕන data එක.</span></p><p></p><p>[CODE] Elements select = ele.select("a[href]");</p><p> String name = select.text();</p><p> System.out.println(name);</p><p></p><p> String link = select.attr("abs:href");</p><p> System.out.println(link);</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="MihiCherub, post: 17991693, member: 238676"] [SIZE=3]අපේ බත් පතට තමයි කෙලවෙන්නෙ.. අපේ එකෙක්ට කෙලවන්නෙ නැතුව ඉන්දියන් උන්ට කෙලවපන් හොදේ.. උබට ඕනෙ නම් සයිට් පිටින් බාන්න පුලුවන්. වැල සයිට් එහෙම තියෙනව නම් ඔක්කොම උනත් එකපාර බාගන්න පුලුවන්.. :rofl: මම images site වල නම් කුට්ටි පිටින් බානව. ලගදි ටොරන්ට් සයිට් එකක්ම බෑව .torrent files එක්කම.[/SIZE] ;) [IMG]http://i61.tinypic.com/2iqxthx.jpg[/IMG] [SIZE=3] මුලින්ම මේ library එක ගනින්. ඒක project එකට දාගන්න. එතනින් එහාට දෙයක්ම නෑ.[/SIZE] [SIZE=3]වැඩිපුර විස්තර සයිට් එකෙත් තියෙනව.[/SIZE] [URL]http://jsoup.org/download[/URL] [SIZE=3]Get එකකින් data ගන්න නම්[/SIZE] [CODE] Document doc = Jsoup.connect("http://www.elakiri.com/forum/member.php?u=1") .userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0") .timeout(5000) .get();[/CODE] [SIZE=3]POST එකකින් data ගන්න නම්[/SIZE], [SIZE=3]live http header එකක් browser එකට දාගන්න.[/SIZE] [URL]https://addons.mozilla.org/en-US/firefox/addon/live-http-headers/[/URL] [SIZE=3] එකේන් හොයාගන්න POST වෙන data මොනාද කියල[/SIZE]..[SIZE=3] ඒව POST කරන්න.[/SIZE] [CODE] Connection.Response res = Jsoup.connect("https://www.internetvas.slt.lk/SLTVasPortal-war/login/login.jsp") .data("j_username", "user") .data("j_password", "pass") .userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0") .method(Connection.Method.POST).execute(); final Map<String, String> loginCookies = res.cookies(); Document doc = Jsoup.connect("https://www.internetvas.slt.lk/SLTVasPortal-war/application/index.jsp?page=usage") .cookies(loginCookies) .userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0") .timeout(5000) .get();[/CODE] [SIZE=3]ඊලගට අපිට html page එකම එනව. ඒකෙන් ටැග් අස්සෙන් හොයාගන්න අපිට ඕන data එක.[/SIZE] [CODE] Elements select = ele.select("a[href]"); String name = select.text(); System.out.println(name); String link = select.attr("abs:href"); System.out.println(link); [/CODE] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom