From 246fd1369dce903dad48730478bebbe9733ac88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 15 Aug 2022 22:24:31 +0200 Subject: Start moving data into C++. This is the first step in the process of getting rid of the SWI Prolog dependency. We'll see how it goes. --- pl/episode_data.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pl') diff --git a/pl/episode_data.pl b/pl/episode_data.pl index 167594d..5b83546 100644 --- a/pl/episode_data.pl +++ b/pl/episode_data.pl @@ -115,6 +115,10 @@ maybe_assert_episode_datum(Ep, Key, Value) :- episode_number(Ep) --> integer(Ep). episode_number(Ep) --> integer(Ep), "WPS", integer(_). +% Temporary helper. +fetch_episode_data(Ep, Title, W, Date, Source, Hint) :- + fetch_episode_info(Ep, ['Title'-Title, 'Wiki'-W, 'Date'-Date, 'Source'-Source, 'Hint'-Hint]). + fetch_episode_info(Ep, ['Title'-Title, 'Wiki'-W, 'Date'-Date, 'Source'-Source, 'Hint'-Hint]) :- cached_html('https://www.detectiveconanworld.com/wiki/Anime', H), xpath(H, //tr(td(index(3),@style='background:#f2fde9;')), R), -- cgit v1.2.3