Merge branch 'feature/meeseeks-parser' into develop

This commit is contained in:
Rüdiger Diedrich
2024-08-12 11:51:18 +02:00

View File

@ -12,7 +12,6 @@ defmodule SomethingErlang.AwfulApi.Thread do
thread =
Meeseeks.one(html, css("#thread"))
# Floki.find(html, "#thread") |> Floki.filter_out("table.post.ignored")
thread_id =
Meeseeks.attr(thread, "class")
@ -37,11 +36,11 @@ defmodule SomethingErlang.AwfulApi.Thread do
end
posts =
for post <- Meeseeks.all(thread, css("table.post")) do
for post <- Meeseeks.all(thread, css("table.post:not(.ignored)")) do
%{
userinfo: post |> userinfo(),
postdate: post |> postdate(),
postbody: post |> postbody()
userinfo: userinfo(post),
postdate: postdate(post),
postbody: postbody(post)
}
end