|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +# This program is free software; you can redistribute it and/or modify |
| 4 | +# it under the terms of the GNU General Public License version 2 as |
| 5 | +# published by the Free Software Foundation. |
| 6 | + |
| 7 | +from gallery_dl.extractor import arena |
| 8 | + |
| 9 | + |
| 10 | +__tests__ = ( |
| 11 | +{ |
| 12 | + "#url" : "https://are.na/evan-collins-1522646491/cassette-futurism", |
| 13 | + "#class" : arena.ArenaChannelExtractor, |
| 14 | + "#pattern" : r"https://d2w9rnfcy7mm78\.cloudfront\.net/\d+/original_\w+\.\w+\?\d+\?bc=\d", |
| 15 | + "#count" : 160, |
| 16 | + |
| 17 | + "block_class" : "Image", |
| 18 | + "block_title" : str, |
| 19 | + "channel_id" : 1102343, |
| 20 | + "channel_slug": "cassette-futurism", |
| 21 | + "count" : 160, |
| 22 | + "date" : "dt:2021-05-31 20:38:28", |
| 23 | + "date_updated": "dt:2025-10-24 15:25:40", |
| 24 | + "gallery_id" : "cassette-futurism", |
| 25 | + "id" : int, |
| 26 | + "num" : range(1, 160), |
| 27 | + "title" : "Cassette Futurism", |
| 28 | + "user" : { |
| 29 | + "avatar" : "https://static.avatars.are.na/51156/small_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757", |
| 30 | + "badge" : "premium", |
| 31 | + "base_class" : "User", |
| 32 | + "can_index" : True, |
| 33 | + "channel_count" : range(250, 300), |
| 34 | + "class" : "User", |
| 35 | + "created_at" : "2018-04-02T05:21:30.282Z", |
| 36 | + "first_name" : "Evan", |
| 37 | + "follower_count" : range(4900, 6000), |
| 38 | + "following_count": range(10, 20), |
| 39 | + "full_name" : "Evan Collins", |
| 40 | + "id" : 51156, |
| 41 | + "initials" : "EC", |
| 42 | + "is_confirmed" : True, |
| 43 | + "is_exceeding_connections_limit": False, |
| 44 | + "is_lifetime_premium": False, |
| 45 | + "is_pending_confirmation": False, |
| 46 | + "is_pending_reconfirmation": False, |
| 47 | + "is_premium" : True, |
| 48 | + "is_supporter" : False, |
| 49 | + "last_name" : "Collins", |
| 50 | + "metadata" : {"description": None}, |
| 51 | + "profile_id" : 171860, |
| 52 | + "slug" : "evan-collins-1522646491", |
| 53 | + "username" : "Evan Collins", |
| 54 | + "avatar_image" : { |
| 55 | + "display": "https://static.avatars.are.na/51156/medium_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757", |
| 56 | + "thumb" : "https://static.avatars.are.na/51156/small_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757", |
| 57 | + }, |
| 58 | + }, |
| 59 | +}, |
| 60 | + |
| 61 | +{ |
| 62 | + "#url" : "https://are.na/lachie/transparent-tech-cobxde9pu40", |
| 63 | + "#class" : arena.ArenaChannelExtractor, |
| 64 | + "#pattern" : r"https://d2w9rnfcy7mm78\.cloudfront\.net/\d+/original_\w+(\.\w+)?\?\d+\?bc=\d", |
| 65 | + "#count" : 89, |
| 66 | + |
| 67 | + "block_class" : str, |
| 68 | + "block_title" : str, |
| 69 | + "channel_id" : 2599871, |
| 70 | + "channel_slug": "transparent-tech-cobxde9pu40", |
| 71 | + "count" : 91, |
| 72 | + "date" : "dt:2024-01-14 02:37:22", |
| 73 | + "date_updated": "dt:2025-10-20 20:52:09", |
| 74 | + "gallery_id" : "transparent-tech-cobxde9pu40", |
| 75 | + "id" : int, |
| 76 | + "num" : int, |
| 77 | + "?source_url" : str, |
| 78 | + "title" : "🫙 Transparent Tech", |
| 79 | + "user" : { |
| 80 | + "avatar" : "https://static.avatars.are.na/55241/small_fdcab74d56d0d9b93930333bdea50f4a.jpg?1738898629", |
| 81 | + "badge" : "premium", |
| 82 | + "base_class" : "User", |
| 83 | + "can_index" : True, |
| 84 | + "channel_count" : 219, |
| 85 | + "class" : "User", |
| 86 | + "created_at" : "2018-05-03T07:13:39.847Z", |
| 87 | + "first_name" : "lachie", |
| 88 | + "follower_count" : range(80, 120), |
| 89 | + "following_count": range(40, 80), |
| 90 | + "full_name" : "lachie 🔐", |
| 91 | + "id" : 55241, |
| 92 | + "initials" : "l🔐", |
| 93 | + "is_confirmed" : True, |
| 94 | + "is_exceeding_connections_limit": False, |
| 95 | + "is_lifetime_premium": False, |
| 96 | + "is_pending_confirmation": False, |
| 97 | + "is_pending_reconfirmation": False, |
| 98 | + "is_premium" : True, |
| 99 | + "is_supporter" : False, |
| 100 | + "last_name" : "🔐", |
| 101 | + "metadata" : {"description": None}, |
| 102 | + "profile_id" : 188402, |
| 103 | + "slug" : "lachie", |
| 104 | + "username" : "lachie 🔐", |
| 105 | + "avatar_image" : { |
| 106 | + "display": "https://static.avatars.are.na/55241/medium_fdcab74d56d0d9b93930333bdea50f4a.jpg?1738898629", |
| 107 | + "thumb" : "https://static.avatars.are.na/55241/small_fdcab74d56d0d9b93930333bdea50f4a.jpg?1738898629", |
| 108 | + }, |
| 109 | + }, |
| 110 | +}, |
| 111 | + |
| 112 | +{ |
| 113 | + "#url" : "https://www.are.na/mikf/touhou-zr5p8idnkag", |
| 114 | + "#class" : arena.ArenaChannelExtractor, |
| 115 | + "#results" : ( |
| 116 | + "https://d2w9rnfcy7mm78.cloudfront.net/40871580/original_3fb729c818f92de4539d4ff263eb6056.png?1762357121?bc=0", |
| 117 | + "https://d2w9rnfcy7mm78.cloudfront.net/40871591/original_91d7c8144a5ba9776118f0af6d923f94.png?1762357155?bc=0", |
| 118 | + "https://d2w9rnfcy7mm78.cloudfront.net/40871607/original_766f89eb3b06cc84372bea9d58132c93.png?1762357207?bc=0", |
| 119 | + "https://attachments.are.na/40873309/ebf4eae61a70773f7494e10a98b18fe3.mp4?1762359389", |
| 120 | + "https://d2w9rnfcy7mm78.cloudfront.net/40873379/original_289824f61eade100785db100652abd9a.jpg?1762359483?bc=0", |
| 121 | + ), |
| 122 | + |
| 123 | + "block_class" : str, |
| 124 | + "block_title" : str, |
| 125 | + "channel_id" : 4422732, |
| 126 | + "channel_slug": "touhou-zr5p8idnkag", |
| 127 | + "count" : 6, |
| 128 | + "date" : "dt:2025-11-05 15:37:40", |
| 129 | + "date_updated": "dt:2025-11-10 19:52:52", |
| 130 | + "gallery_id" : "touhou-zr5p8idnkag", |
| 131 | + "id" : int, |
| 132 | + "title" : '''Touhou "東方"''', |
| 133 | + "user" : { |
| 134 | + "avatar" : "", |
| 135 | + "badge" : None, |
| 136 | + "base_class" : "User", |
| 137 | + "can_index" : False, |
| 138 | + "channel_count" : 3, |
| 139 | + "class" : "User", |
| 140 | + "created_at" : "2025-11-05T15:35:15.242Z", |
| 141 | + "first_name" : "mikf", |
| 142 | + "follower_count" : 0, |
| 143 | + "following_count": 0, |
| 144 | + "full_name" : "mikf .", |
| 145 | + "id" : 1127493, |
| 146 | + "initials" : "m.", |
| 147 | + "is_confirmed" : True, |
| 148 | + "is_exceeding_connections_limit": False, |
| 149 | + "is_lifetime_premium": False, |
| 150 | + "is_pending_confirmation": False, |
| 151 | + "is_pending_reconfirmation": False, |
| 152 | + "is_premium" : False, |
| 153 | + "is_supporter" : False, |
| 154 | + "last_name" : ".", |
| 155 | + "metadata" : {"description": None}, |
| 156 | + "profile_id" : 4422723, |
| 157 | + "slug" : "mikf", |
| 158 | + "username" : "mikf .", |
| 159 | + "avatar_image" : { |
| 160 | + "display": "", |
| 161 | + "thumb" : "", |
| 162 | + }, |
| 163 | + }, |
| 164 | +}, |
| 165 | + |
| 166 | +) |
0 commit comments