17 #ifndef REMWHAREAD_URI_HPP 18 #define REMWHAREAD_URI_HPP 37 bool successful =
false;
43 explicit operator bool();
57 bool successful =
false;
61 explicit operator bool();
82 explicit URI(
string uri);
85 URI(
const URI &other) =
default;
86 URI &operator=(
const URI &other) =
default;
87 URI(
URI &&other) =
default;
88 URI &operator=(
URI &&other) =
default;
168 #endif // REMWHAREAD_URI_HPP html_extract get()
Download URI and extract title, description and full text.
Definition: uri.cpp:126
URI(string uri)
Construct object and set URL.
Definition: uri.cpp:66
archive_answer archive()
Save URI in archive and return archive-URI.
void set_proxy()
Set proxy server.
Definition: uri.cpp:74
string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:151
string unescape_html(string html)
Convert HTML entities to UTF-8.
string strip_html(const string &html)
Removes HTML tags and superflous spaces from an HTML page.
string extract_title(const string &html)
Extract the title from an HTML page.
Definition: uri.cpp:223
The result of the call to the archive service.
Definition: uri.hpp:55
string remove_newlines(string text)
Replace newlines with spaces.
Definition: uri.cpp:641
Download, archive and process an URI.
Definition: uri.hpp:71
string remove_html_tags(const string &html, const string &tag="")
Remove HTML tags.
string extract_description(const string &html)
Extract the description from an HTML page.
Definition: uri.cpp:240