aboutsummaryrefslogtreecommitdiffstats
path: root/tpblite/tpblite.py
diff options
context:
space:
mode:
authorMatt Lyon <matthewlyon18@gmail.com>2019-10-30 15:27:45 +1100
committerMatt Lyon <matthewlyon18@gmail.com>2019-10-30 15:27:45 +1100
commit1b3b031e4b15f947c539ae76fc892874de03c4be (patch)
treebfe1df7b3919154eb176a92bf48c23c3e21379d8 /tpblite/tpblite.py
parent2801af89bf72389ce089aac92dda1bb22797ecc1 (diff)
downloadtpb-lite-1b3b031e4b15f947c539ae76fc892874de03c4be.tar.gz
tpb-lite-1b3b031e4b15f947c539ae76fc892874de03c4be.tar.bz2
tpb-lite-1b3b031e4b15f947c539ae76fc892874de03c4be.zip
initial commit
Diffstat (limited to 'tpblite/tpblite.py')
-rw-r--r--tpblite/tpblite.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tpblite/tpblite.py b/tpblite/tpblite.py
new file mode 100644
index 0000000..c987e49
--- /dev/null
+++ b/tpblite/tpblite.py
@@ -0,0 +1,11 @@
+from .models.torrents import Torrents, Torrent
+from .models.utils import Query
+
+
+
+def run():
+ q = Query('avengers endgame 1080p')
+ print(q.url)
+ t = Torrents(q.webpage)
+ torrent = t.getBestTorrent()
+ print(torrent.magnetlink) \ No newline at end of file