Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import xmltree, xmlparser
- let otherNode = parseXml("<root><torrent:magnetURI><![CDATA[magnet:?xt=urn:btih:496CC3013C19F9EB30A8BF8E8D0A303765D2FAD7&dn=Restaurant.Impossible.S16E01.Dumplings.in.Delaware.480p.x264-mSD%5Beztv%5D.mkv&tr=udp%3A%2F%2Ftracker.publicbt.com%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969]]></torrent:magnetURI></root>")
- let c = otherNode.child("torrent:magnetURI")
- for ic in c.items:
- echo ic.text
- let node = parseXml("<torrent:magnetURI><![CDATA[magnet:?xt=urn:btih:496CC3013C19F9EB30A8BF8E8D0A303765D2FAD7&dn=Restaurant.Impossible.S16E01.Dumplings.in.Delaware.480p.x264-mSD%5Beztv%5D.mkv&tr=udp%3A%2F%2Ftracker.publicbt.com%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969]]></torrent:magnetURI>")
- for ic in node.items:
- echo ic.text
Advertisement
Add Comment
Please, Sign In to add comment