Skip to content

Commit

Permalink
Adapt to HN HTML change
Browse files Browse the repository at this point in the history
  • Loading branch information
weiran committed Nov 18, 2022
1 parent 09221e8 commit ad4cff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared Frameworks/HackersKit/HtmlParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ enum HtmlParser {
let document = try SwiftSoup.parse(html)

guard let parentTable = try document
.select("table#hnmain tr:nth-of-type(3) table")
.select("table#hnmain tr:nth-of-type(4) table")
.first() else {
throw Exception.Error(type: .SelectorParseException, Message: "Couldn't find post element")
}
Expand Down

0 comments on commit ad4cff0

Please sign in to comment.