summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-05-10 18:06:16 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-05-10 18:06:16 +0500
commit838eaa77fa389203a4c41751b36993575bbbfe04 (patch)
tree706fb459923e590978bbacdde5fe2fb3bacf4b74 /src/main.cpp
Initial evening
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644
index 0000000..f936e85
--- /dev/null
+++ b/src/main.cpp
@@ -0,0 +1,21 @@
+#include "RSS.hpp"
+#include <curl/curl.h>
+#include <memory>
+
+int main() {
+ // auto tmp = RSS_leaf::TokenizeXML("<test> abc </test>");
+ auto rss = std::make_unique<RSS>("https://www.independent.co.uk/news/uk/rss");
+ rss->channelInfo.print();
+ int i = 0;
+ for (auto entry : rss->Entries) {
+ if (i > 3) break;
+ entry.print();
+ ++i;
+ }
+ // auto rss_1 = std::make_unique<RSS>("https://feeds.washingtonpost.com/rss/world");
+ // auto rss_2 = std::make_unique<RSS>("https://news.yahoo.com/rss/mostviewed");
+ // for (auto entry : rss_2->Entries)
+ // entry.print();
+
+ return 0;
+}