From 4e2d04eca0147396092d2163bd8706fe497a8bf1 Mon Sep 17 00:00:00 2001 From: Matt Lyon Date: Wed, 9 Sep 2020 12:26:33 +0100 Subject: added tests, switched to lxml --- tests/data/no_body.html | 50 ++++++++ tests/data/torrent_test.html | 276 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 326 insertions(+) create mode 100644 tests/data/no_body.html create mode 100644 tests/data/torrent_test.html (limited to 'tests/data') diff --git a/tests/data/no_body.html b/tests/data/no_body.html new file mode 100644 index 0000000..f301987 --- /dev/null +++ b/tests/data/no_body.html @@ -0,0 +1,50 @@ + + + + The Pirate Bay - The galaxy's most resilient bittorrent site + + + + + + + + + + diff --git a/tests/data/torrent_test.html b/tests/data/torrent_test.html new file mode 100644 index 0000000..7ea9e6e --- /dev/null +++ b/tests/data/torrent_test.html @@ -0,0 +1,276 @@ + + + + The Pirate Bay - The galaxy's most resilient bittorrent site + + + + + + + + + + + + + +

Recent Torrents 

+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Type
Name
View: Single / Double 
SELE
+
+ Games
+ (PC) +
+
+ +Magnet link DownloadVIP + Uploaded 4 mins ago, Size 3.32 GiB, ULed by Drarbg + 00
+
+ Audio
+ (Music) +
+
+ +Magnet link DownloadThis torrent has a cover imageVIP + Uploaded 5 mins ago, Size 119.24 MiB, ULed by WildcardSearch + 00
+
+ Video
+ (Movies) +
+
+ +Magnet link DownloadVIP + Uploaded 6 mins ago, Size 1.6 GiB, ULed by Drarbg + 00
+
+ Porn
+ (Movie clips) +
+
+ +Magnet link DownloadThis torrent has a cover imageVIP + Uploaded 6 mins ago, Size 352.69 MiB, ULed by Pornmaze + 00
+
+ Video
+ (TV shows) +
+
+ +Magnet link DownloadTrusted + Uploaded 9 mins ago, Size 142.17 MiB, ULed by Anonymous + 500400
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Next  +
+
+ +
+ +
+
+ + + + + -- cgit v1.2.3