Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: Java program for downloading contents from the web

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Java program for downloading contents from the web

    Hi there,

    I need to download some content from the internet with Java, for example the first three links generated by Yahoo! or any other search engine of my choice.

    Is there some class in Java that can help me with this function? Or maybe some other approach?

    Thanks for your help!


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: Downloading content from the web

    Hello alley,

    When you say you want to download the first 3 links generated by Yahoo! Do you mean just the URLs on the content of their web pages?

    Take a look at our Tips & Tutorials forum, there are lots of code examples there.

    I think this will help you:

    http://www.javaprogrammingforums.com...bsite-url.html

    You can point it to Yahoo! and then grab the URLs from the source.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Downloading content from the web

    Hi JavaPF,

    I mean the content of the webpages.

    Thanks for the links, I will check them out!


  4. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: Downloading content from the web

    Quote Originally Posted by alley View Post
    Hi JavaPF,

    I mean the content of the webpages.

    Thanks for the links, I will check them out!

    Including the website images and everything else or just the source code?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  5. #5
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: Downloading content from the web

    I just read your post

    Quote Originally Posted by alley
    Chris, the project is related to matching some content against downloaded content from the internet.
    If possible, post your assignment specification for us to read
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  6. #6
    Junior Member
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Downloading content from the web

    Quote Originally Posted by JavaPF View Post
    I just read your post

    If possible, post your assignment specification for us to read
    I would love to give details as much as possible, but the requirement is for us to choose a project on some field which is not the work of ours, and the University stresses a lot on plagiarism, so if I post the exact details on the internet it would be worldwide, and someone else could indulge in a similar project resulting in the project not being accepted since they have very efficient plagiarism detecting software.

    I hope you understand my concern , but I will happily share any details when my project is finished and marked by the University.

  7. #7
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: Downloading content from the web

    OK alley I totally understand. That's a very sensible approach.

    When you need help understanding certain aspects of your project, let me know and I will give as much guidance as possible.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  8. #8
    Junior Member
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Downloading content from the web

    Thanks for your understanding and your help JavaPF!

  9. #9
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Location
    Wales, Bangor & England, Warwickshire
    Posts
    820
    My Mood
    Cynical
    Thanks
    7
    Thanked 104 Times in 90 Posts

    Default Re: Downloading content from the web

    I'll do my best to help you out. If you don't wan to post actual spec which is very wise, then when you have a problem make a slightly different example that demonstrates what problem you are having, that way it wont be the same as your project

    Chris
    chris[at]javaprogrammingforums[dot]com

    Prifysgol Bangor University, North Wales

Similar Threads

  1. How to display the contents of my queue?
    By rocafella5007 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 30th, 2009, 11:46 AM
  2. Trouble in downloading java
    By captjade in forum Java Theory & Questions
    Replies: 6
    Last Post: March 3rd, 2009, 03:16 PM
  3. How to know number of user downloading an application?
    By jazz2k8 in forum Java Theory & Questions
    Replies: 2
    Last Post: July 3rd, 2008, 04:34 AM