17 #ifndef REMWHAREAD_URI_HPP 18 #define REMWHAREAD_URI_HPP 37 bool successful =
false;
57 bool successful =
false;
82 explicit URI(
const string &uri);
140 const string &tag =
"");
158 #endif // REMWHAREAD_URI_HPP
URI(const string &uri)
Construct object and set URL.
Definition: uri.cpp:64
const string remove_html_tags(const string &html, const string &tag="")
Remove HTML tags.
Definition: uri.cpp:253
const string strip_html(const string &html)
Removes HTML tags and superflous spaces from an HTML page.
Definition: uri.cpp:233
const string remove_newlines(string text)
Replace newlines with spaces.
Definition: uri.cpp:616
const string unescape_html(const string &html)
Convert HTML entities to UTF-8.
Definition: uri.cpp:291
The result of the call to the archive service.
Definition: uri.hpp:55
const html_extract get()
Download URI and extract title, description and full text.
Definition: uri.cpp:108
const string extract_title(const string &html)
Extract the title from an HTML page.
Definition: uri.cpp:206
Download, archive and process an URI.
Definition: uri.hpp:71
const string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:133
const archive_answer archive()
Save URI in archive and return archive-URI.
Definition: uri.cpp:591
const string extract_description(const string &html)
Extract the description from an HTML page.
Definition: uri.cpp:219