File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCRAPE

 
Aaron O'Brien
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wondering if anyone has any information they can pass along about scraping information from web sites like stock quotes or movie listing for example. I am interested to see what it would take.
Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can pretty easily "suck in" the HTML at any URL via java.net.URLConnection.
From there you can either parse the HTML (google for various HTML parsers) or simply use some regular expression searches depending upon your needs.
bear
P.S. There are ethical considerations to screen scraping, so please be sure not to use any "scraped" data in a way other than the intent of the original publishers.
 
Aaron O'Brien
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear,
I will be sure to give this a try...and to use my program wisely.
Take Care.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once you are pulling content from other sites, the Quiotix Parser may make understanding it easier.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also check out the Scrape Tag Library.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic