Hello everybody! I apologise for my bad English in advance..
So here's the problem, I'm using proHTML library for fetching some html data from a certain page, but this page requires logging in. I can login manualy, but it doesn't solve the problem, the code I have just stops at a login page.
For example, this code below doesn't do anything special, I used it just to simply demonstrate my problem, so, it should print contets of a "a" element and "html" attribute from this url "http://www.fer2.net/misc.php?do=whoposted&t=51670", but from results I can see that it just got to the login page.
THANKS!!
So here's the problem, I'm using proHTML library for fetching some html data from a certain page, but this page requires logging in. I can login manualy, but it doesn't solve the problem, the code I have just stops at a login page.
For example, this code below doesn't do anything special, I used it just to simply demonstrate my problem, so, it should print contets of a "a" element and "html" attribute from this url "http://www.fer2.net/misc.php?do=whoposted&t=51670", but from results I can see that it just got to the login page.
- import prohtml.*;
- HtmlElementFinder htmlElementFinder;
- void setup(){
- //enter your url here
- htmlElementFinder = new HtmlElementFinder("http://www.fer2.net/misc.php?do=whoposted&t=51670","a");
- List links = htmlElementFinder.getElements();
- for (int i = 0;i<links.size();i++){
- println(((StandAloneElement)links.get(i)).getAttribute("href"));
- }
- }
THANKS!!
1