I just started to learn programming a little over a week ago and am as green as they come. I have never taken any computer science courses but am being mentored by a very good professional programmer (my boyfriend). As a challenge for myself I have to create a program that sifts through Craig's List and emails me continuously thumb nails and links to Craig's List finds that I have set specifications for based on things that I like like vintage, modern, etc. The program will be written in Java because that is what I aim to get a job in eventually. My question is, how would one go about this task? I am not looking for it to be done for me just for some help of course. Thank you for all your help in advance.
Best,
Paula
Interesting question, with lots of potential answers.
I’ll choose to answer by describing how I’d go about trying to solve the problem. Now, since you’ll be working with Craigslist, a web service, the first thing I’d do is find out what kind of API it has. Searching Google for "craigslist api", the first few pages of hits suggest that there actually is no Craigslist API. This is disappointing and slightly surprising for a web service these days, and means that you’ll probably have to get your hands dirty and scrape the actual HTML code. This is not really something I’d do in Java, although I admit that that may be partly because I don’t know the Java HTTP APIs. So I’ll just provide an outline of what the program could do:
If you need help with any of these parts, start a separate question. If you need help with how to get started writing Java programs, search Google for a beginner’s tutorial and you should turn up plenty. When you get the hang of it, I suggest trying an IDE like Eclipse, which is a complicated but sophisticated tool that can help you out in a number of ways. IDEs come and go, though, and it’s always good to know how to program in a particular language using only the basic language tools (the java and javac programs, in your case).
Anyway, good luck, and happy hacking! :-)