i am currently not using an ide,just note pad with the java -cp library java file commands
That wouldn't affect anything, however, I recommend you some industrial approach on how to develop, if you are interested.
1) Dump the notepad, use something more well developed for development. Either learn to use an IDE, if not, at least start with text editors such as editplus, ultraedit, jEdit and so forth. These text editors have a lot more to offer such as syntax colouring, text folding, automatic indentation, and a lot understand different file formats and will provide language context syntax colouring etc. If you are up to the challenge, go pick up VIM/GVIM or EMACS for really powerful text editors and more.
2) Go pick up how to manage software development using Apache Ant. This is a Java industrial standard build tool equivalent of unix "make".
Below are optional, but I personally think, if you are making your way into the IT industry (I suppose), then these skill sets are indispensable.
3) Learn how to develop in Unix environments, specifically Linux since it is a freely available operating system that greatly encourage "free" software development. This platform provides tons of development utilities that are readily available in today's modern Linux distribution all at almost no cost to you. Not to mention it can be installed on a minimally provisioned guest OS and still perform great.
4) Learn how to version control your codes using either Git(recommended) or at least Subversion.
css selector,
i was thinking h2,
its sibling should be table,
when i say a cut , i meant it has about 10k lines,it read till 3k,it stops responding,it takes about 4s to load btw,i suspect the cause is because the pages takes too long to load,i was looking at this Jsoup.connect(url).userAgent(USER_AGENT).timeout(10*1000).get();i suspect because the timeout is too short,either way,it doesn't work
I can't comment much about how you are selecting your elements from the DOM unless I know what site you are attempting to parse and extract information. Perhaps you might want to provide the URL of the site you are testing with.
10s to read 10k lines is way too long unless the site you are connecting to is really that slow ? How do you know it stops reading ?
You might want to split the approach you obtain the Document into 2 steps and debug on it is the parsing that is having issue or it is really the retrieval of the data over the net too slow, as such
Code:
Connection conn = Jsoup.connect(url).userAgent(USER_AGENT);
Connection.Response resp = conn.execute();
Document doc = resp.parse();
so I am using
h2,table as the selectors
currently,i am using cmd line and system.out.print to do debugging,using print screen and ctrl-c to stop and view the output,i write to outputcsv file to view the log
later,i still need to use enumerated type to split into trader,treasurer,etcs.....
but the problem is ArrayList <User> userlist = new ArrayList<User>(); how can I split into multiple users
I don't understand what you meant by users, maybe you want to be more specific in your enquiry ?