4 Replies - 241 Views - Last Post: 03 September 2012 - 07:01 PM Rate Topic: -----

#1 LogicError  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 05-November 11

New Project - Need help to point me in the right direction

Posted 03 September 2012 - 11:58 AM

My highschool recently switched over to a block schedule, requiring us to convert our schedule from a list of classes to our actual schedule by hand. While it is difficult to explain without more specifics, basically I want to do this:

Parse information from a web page, extracting all the needed scheduling information.

Inputting this information into a scheduling template, with all the information in the right places on this template.

Saving all this complete schedule to a PDF.

I wouldn't imagine this would be too difficult to do. I know some C++ and C#, but know Java the best. Is Java the right language to do this? Can anyone point me in the right direction to finding out the specifics of each task (Primarily the web page parsing, as I know absolutely nothing about that.)

I am solid the fundamentals of Java. I am hoping/assuming this project has a lot I don't know. The more I need to learn, the better.

Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: New Project - Need help to point me in the right direction

#2 natecat  Icon User is offline

  • D.I.C Head

Reputation: 53
  • View blog
  • Posts: 225
  • Joined: 19-December 11

Re: New Project - Need help to point me in the right direction

Posted 03 September 2012 - 01:55 PM

Well I would read up on how to download a file from a website. Instead of outputting the byte[] you get from reading the file to a file, construct a new string like this:
new String(byteArray);
Then use string.split(" "); with HTML tags that you notice around the schedule to parse it into custom objects. Good luck!
Was This Post Helpful? 0
  • +
  • -

#3 blackcompe  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1150
  • View blog
  • Posts: 2,528
  • Joined: 05-May 05

Re: New Project - Need help to point me in the right direction

Posted 03 September 2012 - 02:06 PM

You should look into a XML/HTML parser, like jsoup or Java's built-in APIs for parsing web content. For pdf stuff, see iText. I don't know what you mean about the template stuff.

It doesn't matter what language you use. Just use what you know and what has the necessary tools to accomplish the task.

As far as specifics, I don't know that anyone is going to walk you through this exactly. Break the project into several tasks (the first being parsing the web page) and start working on that.

If you have specific programming problems, we'll help you.

This post has been edited by blackcompe: 03 September 2012 - 02:06 PM

Was This Post Helpful? 1
  • +
  • -

#4 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10397
  • View blog
  • Posts: 38,465
  • Joined: 27-December 08

Re: New Project - Need help to point me in the right direction

Posted 03 September 2012 - 02:19 PM

Since this isn't homework, wouldn't it be easier just to copy your schedule over by hand?
Was This Post Helpful? 1
  • +
  • -

#5 LogicError  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 05-November 11

Re: New Project - Need help to point me in the right direction

Posted 03 September 2012 - 07:01 PM

View Postmacosxnerd101, on 03 September 2012 - 05:19 PM, said:

Since this isn't homework, wouldn't it be easier just to copy your schedule over by hand?


More of just a learning thing.

Thanks for all the advice.

This post has been edited by LogicError: 03 September 2012 - 07:01 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1