read and parse a torrent from a resource