mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
parent
a7ffb6d2f2
commit
ed79ed25a7
6 changed files with 16 additions and 8 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import xmltree, strtabs, strformat, strutils, times, uri, options, json
|
||||
import xmltree, times, uri, options, json
|
||||
import strtabs, strformat, strutils, sequtils
|
||||
import regex
|
||||
|
||||
import types, formatters
|
||||
|
|
@ -183,8 +184,7 @@ proc parseTweetReply*(node: XmlNode): seq[string] =
|
|||
let selector = if "Quote" in node.attr("class"): "b"
|
||||
else: "a b"
|
||||
|
||||
for username in reply.selectAll(selector):
|
||||
result.add username.innerText()
|
||||
result = reply.selectAll(selector).map(innerText)
|
||||
|
||||
proc getGif(player: XmlNode): Gif =
|
||||
let
|
||||
|
|
|
|||
Loading…
Reference in a new issue