Commit Graph

38 Commits

Author SHA1 Message Date
tastytea 6123c7fbb3
Use sub-project curl_wrapper instead of custom implementation.
continuous-integration/drone/push Build is passing Details
Via git subtree from <https://schlomp.space/tastytea/curl_wrapper>.
2020-11-13 22:41:56 +01:00
tastytea 6426305366
Use libcurl to download URIs.
continuous-integration/drone/push Build is failing Details
2020-10-31 18:26:05 +01:00
tastytea 4dc9faf1df
Make reference in ranged for const.
continuous-integration/drone/push Build is passing Details
2020-10-31 13:30:40 +01:00
tastytea b7d5b21899
Make operator bool() in html_extract and archive_answer const. 2020-10-31 13:25:02 +01:00
tastytea eab10e28ae
Reformat uri.cpp. 2020-10-31 13:21:40 +01:00
tastytea 4f78da24b5
Allow answer of archiving service to be an HTTP redirection.
continuous-integration/drone/push Build is passing Details
2020-02-07 11:56:05 +01:00
tastytea 8a4f518cb9
Fix clang-tidy warnings.
continuous-integration/drone/push Build is passing Details
2020-01-27 06:32:28 +01:00
tastytea bb5d9cecad
Change namespace of version. 2020-01-27 04:50:33 +01:00
tastytea 489e1fba99
Fix regex for extracting charset.
continuous-integration/drone/push Build is passing Details
2019-12-19 21:49:53 +01:00
tastytea 92db2241b0
Add Boost extras to global locale.
continuous-integration/drone/push Build is passing Details
Needed for boost::locale::to_lower() to work.
2019-12-17 13:37:06 +01:00
tastytea 56dc4083ce
Do not attempt to convert encoding if it is already utf-8. 2019-12-11 23:42:45 +01:00
tastytea d4d7cd4efd
Simplify is_html(). 2019-12-11 23:42:45 +01:00
tastytea 6fa611cf42
Detect file encoding of web page and convert to UTF-8.
continuous-integration/drone/push Build is failing Details
Fixes #6.
2019-12-11 13:01:44 +01:00
tastytea 7c7d28b7bc
Store document in class variable. 2019-12-11 13:00:43 +01:00
tastytea b6e7449a6a
Allow <title> to have arguments.
continuous-integration/drone/push Build is passing Details
Fixes title extraction on medium.com posts.
2019-12-02 15:57:56 +01:00
tastytea 37f6da6710
[[nodiscard]] all the functions.
continuous-integration/drone/push Build is passing Details
2019-10-30 08:51:07 +01:00
tastytea ea585751fc
Fix typo in NOLINT-comment. 2019-10-28 06:46:34 +01:00
tastytea 0a1396fc25
Mark `URI::archive()` const. 2019-10-27 20:38:58 +01:00
tastytea f8040f4803
Make type conversions explicit. 2019-10-25 06:00:36 +02:00
tastytea d8102b017e
Cut descriptions at 500 characters.
continuous-integration/drone/push Build is passing Details
2019-10-15 15:10:39 +02:00
tastytea 43d9e3947a
Disable clang-tidy warnings I can't do anything about.
continuous-integration/drone/push Build is passing Details
2019-10-08 18:03:27 +02:00
tastytea 2c4fb47f63
Changed namespace-indentation and header order. 2019-09-30 13:23:45 +02:00
tastytea f48b07f323
Refactored for better readability.
continuous-integration/drone/push Build is passing Details
Ran clang-tidy over the code, took most of the advice.
2019-09-25 03:58:29 +02:00
tastytea e374405863
Retain archive-flag on HTTP redirects.
continuous-integration/drone/push Build is passing Details
2019-09-22 23:43:46 +02:00
tastytea e377429dc1
Improved proxy detection.
continuous-integration/drone/push Build is passing Details
Username and password are now supported.
2019-09-20 23:13:55 +02:00
tastytea bb8be8e47e
Replaced std::regex with Poco::RegularExpression in URI. 2019-09-20 06:29:27 +02:00
tastytea 561995dadb
Include with <> instead of "". 2019-08-16 17:55:29 +02:00
tastytea e015ec3f3f
Don't crash if protocol is missing / not known.
continuous-integration/drone/push Build is passing Details
2019-08-08 21:25:28 +02:00
tastytea c218c23f97
Fix archiving by extracting the Content-Location header.
continuous-integration/drone/push Build is passing Details
2019-08-06 19:56:57 +02:00
tastytea e79f003a79
Prepend scheme://host to location if server returns only path. 2019-08-06 17:23:49 +02:00
tastytea 90fff35e0e
Added error handling to calls to archive service. 2019-08-06 12:40:52 +02:00
tastytea 862e90274e
Added error handling to http_extract. 2019-08-06 12:17:39 +02:00
tastytea 1d7153008a
Use numbers instead of constants for HTTP response code check.
continuous-integration/drone/push Build is failing Details
Poco 1.7 doesn't have HTTPResponse::HTTP_PERMANENT_REDIRECT.
2019-08-05 18:49:17 +02:00
tastytea 406c2486f7
Added HTTP proxy support.
continuous-integration/drone/push Build is failing Details
2019-08-05 18:23:34 +02:00
tastytea 1f446388e5
Support plain HTTP as well. 2019-08-05 17:00:34 +02:00
tastytea 9d0dd589a7
Replaced curlpp with POCO. Only HTTPS support fo far.
continuous-integration/drone/push Build is failing Details
curlpp seems dead. 🙁
2019-08-04 18:46:53 +02:00
tastytea b3bb1f05f2
namespaced library.
continuous-integration/drone/push Build is passing Details
2019-07-27 09:59:43 +02:00
tastytea 7fb23ee207
Split code into library and cli. 2019-07-26 20:58:24 +02:00