Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proc latest*(): seq[Torrent] =
- var xmlRoot = fetchXml()
- for item_node in xmlRoot.findAll("item"):
- var torrent: Torrent = Torrent()
- torrent.name = item_node.child("title").innerText
- torrent.canonical_url = item_node.child("link").innerText
- result.add(torrent)
Add Comment
Please, Sign In to add comment