Module: WebStruct
- Defined in:
- lib/webstruct.rb,
lib/webstruct/http.rb,
lib/webstruct/page.rb,
lib/webstruct/errors.rb,
lib/webstruct/version.rb,
lib/webstruct/http/url.rb,
lib/webstruct/http/mime.rb,
lib/webstruct/http/shell.rb,
lib/webstruct/page/content.rb,
lib/webstruct/page/content_type.rb,
lib/webstruct/page/csv_header_sniffer.rb
Overview
Entry point for fetching page content over HTTP.
Defined Under Namespace
Modules: Http Classes: BodyTooLargeError, InvalidUrlError, JavaScriptRequiredError, Page, ParseError
Constant Summary collapse
- VERSION =
Semantic version of the installed gem (e.g. for diagnostics and gemspec).
"0.1.0"
Class Method Summary collapse
-
.scrape(url) ⇒ Page
Fetches a URL over HTTP and returns a Page built from the response body.