My friend and I are working on a school project and our hope was to have a Java program take a zip code from the user and then connect to weather.com (or any other web site) and look up the local weather. I assume this is possible but I cannot quite figure it out. I am able to get the source code from a site by using the instream, however, it is difficult to find the information I need in the source code. Is there any way to access the page and retrieve the actual text from the site. Thanks!
sheff21 0 Newbie Poster
Recommended Answers
Jump to PostSheff21, you need to learn first about HTTP. And how data is sent to a web page via GET or POST.
You send a request to a Web page via the GET …
Jump to Post> But this certainly requires an API defined at their end
Not certainly, screen scraping is always an option and which I guess is what the OP is looking for in this case given that it's a school project.
> it is difficult to find the information I …
All 5 Replies
BestJewSinceJC 700 Posting Maven
sheff21 0 Newbie Poster
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
verruckt24 438 Posting Shark
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.