egonSchiele / HandsomeSoup

Easy HTML parsing for Haskell
http://egonschiele.github.com/HandsomeSoup
BSD 3-Clause "New" or "Revised" License
124 stars 20 forks source link

Needs ability to read html from files #7

Closed beandipper closed 11 years ago

beandipper commented 11 years ago

Normally when scraping I only provide an html url, but I just happened to also need the ability to pass html text from a file and scrape it. I saw that you have your own url functions. Is it possible to have this feature?

egonSchiele commented 11 years ago

Added a new function fromFile to do this.

egonSchiele commented 11 years ago

I decided to use fromUrl for both. So instead of using fromFile, you can specify a local path in fromUrl.