Where can I get source code for the best web extractor?

Hi TechGurus!
I would like to develop a web scraper, crawler and extractor to be used in mustering information for my professional use and particular from my websites developed by my team. Which is the best web extractor application out there that gives access to a substantial percentage of their source code so that I can learn and borrow as I develop one for my company? Thanks big time.
