1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-01-31 11:41:35 +01:00

[nitter] remove instances

This commit is contained in:
Mike Fährmann 2024-06-02 02:11:42 +02:00
parent ce228ee163
commit 31133b97fb
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
7 changed files with 0 additions and 373 deletions

View File

@ -1272,40 +1272,6 @@ Consider all listed sites to potentially be NSFW.
<td>Required</td>
</tr>
<tr>
<td colspan="4"><strong>Nitter Instances</strong></td>
</tr>
<tr>
<td>Nitter.net</td>
<td>https://nitter.net/</td>
<td>Media Files, Replies, Search Results, Tweets</td>
<td></td>
</tr>
<tr>
<td>Nitter.1d4.us</td>
<td>https://nitter.1d4.us/</td>
<td>Media Files, Replies, Search Results, Tweets</td>
<td></td>
</tr>
<tr>
<td>Nitter.kavin.rocks</td>
<td>https://nitter.kavin.rocks/</td>
<td>Media Files, Replies, Search Results, Tweets</td>
<td></td>
</tr>
<tr>
<td>Nitter.unixfox.eu</td>
<td>https://nitter.unixfox.eu/</td>
<td>Media Files, Replies, Search Results, Tweets</td>
<td></td>
</tr>
<tr>
<td>Nitter.it</td>
<td>https://nitter.it/</td>
<td>Media Files, Replies, Search Results, Tweets</td>
<td></td>
</tr>
<tr>
<td colspan="4"><strong>Philomena Instances</strong></td>
</tr>

View File

@ -234,26 +234,6 @@ class NitterExtractor(BaseExtractor):
BASE_PATTERN = NitterExtractor.update({
"nitter.net": {
"root": "https://nitter.net",
"pattern": r"nitter\.net",
},
"nitter.1d4.us": {
"root": "https://nitter.1d4.us",
"pattern": r"nitter\.1d4\.us",
},
"nitter.kavin.rocks": {
"root": "https://nitter.kavin.rocks",
"pattern": r"nitter\.kavin\.rocks",
},
"nitter.unixfox.eu": {
"root": "https://nitter.unixfox.eu",
"pattern": r"nitter\.unixfox\.eu",
},
"nitter.it": {
"root": "https://nitter.it",
"pattern": r"nitter\.it",
},
})
USER_PATTERN = BASE_PATTERN + r"/(i(?:/user/|d:)(\d+)|[^/?#]+)"

View File

@ -1,95 +0,0 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import nitter
__tests__ = (
{
"#url" : "https://nitter.1d4.us/supernaturepics",
"#category": ("nitter", "nitter.1d4.us", "tweets"),
"#class" : nitter.NitterTweetsExtractor,
"#range" : "1",
"user": {"id": "2976459548"},
},
{
"#url" : "https://nitter.1d4.us/supernaturepics/with_replies",
"#category": ("nitter", "nitter.1d4.us", "replies"),
"#class" : nitter.NitterRepliesExtractor,
},
{
"#url" : "https://nitter.1d4.us/supernaturepics/media",
"#category": ("nitter", "nitter.1d4.us", "media"),
"#class" : nitter.NitterMediaExtractor,
},
{
"#url" : "https://nitter.1d4.us/supernaturepics/search",
"#category": ("nitter", "nitter.1d4.us", "search"),
"#class" : nitter.NitterSearchExtractor,
},
{
"#url" : "https://nitter.1d4.us/playpokemon/status/1263832915173048321",
"#comment" : "content with emoji, newlines, hashtags (#338)",
"#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"content": r"""re:Gear up for #PokemonSwordShieldEX with special Mystery Gifts! \n
Youll be able to receive four Galarian form Pokémon with Hidden Abilities, plus some very useful items. Its our \(Mystery\) Gift to you, Trainers! \n
🎁 """,
},
{
"#url" : "https://nitter.1d4.us/StobiesGalaxy/status/1270755918330896395",
"#comment" : "quoted tweet (#526, #854)",
"#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#pattern" : r"https://nitter\.1d4\.us/pic/orig/enc/bWVkaWEvRWFL\w+LmpwZw==",
"#count" : 4,
"filename": r"re:EaK.{12}",
},
{
"#url" : "https://nitter.1d4.us/i/status/894001459754180609",
"#comment" : "4 images",
"#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#sha1_url": "bc6a91792ff6ec3ab9046f4f27299cc0e7ca7ce3",
},
{
"#url" : "https://nitter.1d4.us/i/status/1065692031626829824",
"#comment" : "video",
"#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#pattern" : r"ytdl:https://nitter\.1d4\.us/video/enc/F00083CDE8D74/aHR0cHM6Ly92aWRlby50d2ltZy5jb20vZXh0X3R3X3ZpZGVvLzEwNjU2OTE4Njg0MzkwMDcyMzIvcHUvcGwvbnY4aFVRQzFSMFNqaHpjWi5tM3U4P3RhZz01",
"extension": "mp4",
"filename" : "nv8hUQC1R0SjhzcZ",
},
{
"#url" : "https://nitter.1d4.us/i/status/1460044411165888515",
"#comment" : "deleted quote tweet (#2225)",
"#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#count" : 0,
},
{
"#url" : "https://nitter.1d4.us/i/status/1486373748911575046",
"#comment" : "'Misleading' content",
"#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#count" : 4,
},
)

View File

@ -1,18 +0,0 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import nitter
__tests__ = (
{
"#url" : "https://nitter.it/POTUS/status/1639409307878928384",
"#category": ("nitter", "nitter.it", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#count" : 0,
},
)

View File

@ -1,46 +0,0 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import nitter
__tests__ = (
{
"#url" : "https://nitter.kavin.rocks/id:2976459548",
"#category": ("nitter", "nitter.kavin.rocks", "tweets"),
"#class" : nitter.NitterTweetsExtractor,
},
{
"#url" : "https://nitter.kavin.rocks/id:2976459548/with_replies",
"#category": ("nitter", "nitter.kavin.rocks", "replies"),
"#class" : nitter.NitterRepliesExtractor,
},
{
"#url" : "https://nitter.kavin.rocks/id:2976459548/media",
"#category": ("nitter", "nitter.kavin.rocks", "media"),
"#class" : nitter.NitterMediaExtractor,
"#pattern" : r"https://nitter\.kavin\.rocks/pic/orig/media%2F[\w-]+\.(jpg|png)$",
"#range" : "1-20",
},
{
"#url" : "https://nitter.kavin.rocks/id:2976459548/search",
"#category": ("nitter", "nitter.kavin.rocks", "search"),
"#class" : nitter.NitterSearchExtractor,
},
{
"#url" : "https://nitter.kavin.rocks/ed1conf/status/1163841619336007680",
"#comment" : "Nitter tweet (#890)",
"#category": ("nitter", "nitter.kavin.rocks", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#sha1_url" : "e115bd1c86c660064e392b05269bbcafcd8c8b7a",
"#sha1_content": "f29501e44d88437fe460f5c927b7543fda0f6e34",
},
)

View File

@ -1,107 +0,0 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import nitter
import datetime
__tests__ = (
{
"#url" : "https://nitter.net/supernaturepics",
"#category": ("nitter", "nitter.net", "tweets"),
"#class" : nitter.NitterTweetsExtractor,
"#pattern" : r"https://nitter\.net/pic/orig/media%2F[\w-]+\.(jpg|png)$",
"#range" : "1-20",
"#count" : 20,
"author" : {
"name": "supernaturepics",
"nick": "Nature Pictures",
},
"comments": int,
"content" : str,
"count" : 1,
"date" : datetime.datetime,
"likes" : int,
"quotes" : int,
"retweets": int,
"tweet_id": r"re:\d+",
"user" : {
"date" : "dt:2015-01-12 10:25:00",
"description" : "The very best nature pictures.",
"favourites_count": int,
"followers_count" : int,
"friends_count" : int,
"id" : "2976459548",
"name" : "supernaturepics",
"nick" : "Nature Pictures",
"profile_banner" : "https://nitter.net/pic/https%3A%2F%2Fpbs.twimg.com%2Fprofile_banners%2F2976459548%2F1421058583%2F1500x500",
"profile_image" : "https://nitter.net/pic/pbs.twimg.com%2Fprofile_images%2F554585280938659841%2FFLVAlX18.jpeg",
"statuses_count" : 1568,
"verified" : False,
},
},
{
"#url" : "https://nitter.net/supernaturepics/with_replies",
"#category": ("nitter", "nitter.net", "replies"),
"#class" : nitter.NitterRepliesExtractor,
"#pattern" : r"https://nitter\.net/pic/orig/media%2F[\w-]+\.(jpg|png)$",
"#range" : "1-20",
},
{
"#url" : "https://nitter.net/supernaturepics/media",
"#category": ("nitter", "nitter.net", "media"),
"#class" : nitter.NitterMediaExtractor,
"#pattern" : r"https://nitter\.net/pic/orig/media%2F[\w-]+\.(jpg|png)$",
"#range" : "1-20",
},
{
"#url" : "https://nitter.net/supernaturepics/search",
"#category": ("nitter", "nitter.net", "search"),
"#class" : nitter.NitterSearchExtractor,
"#pattern" : r"https://nitter\.net/pic/orig/media%2F[\w-]+\.(jpg|png)$",
"#range" : "1-20",
},
{
"#url" : "https://nitter.net/supernaturepics/status/604341487988576256",
"#category": ("nitter", "nitter.net", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#sha1_url" : "3f2b64e175bf284aa672c3bb53ed275e470b919a",
"#sha1_content": "ab05e1d8d21f8d43496df284d31e8b362cd3bcab",
"comments" : int,
"content" : "Big Wedeene River, Canada",
"count" : 1,
"date" : "dt:2015-05-29 17:40:00",
"extension": "jpg",
"filename" : "CGMNYZvW0AIVoom",
"likes" : int,
"num" : 1,
"quotes" : int,
"retweets" : int,
"tweet_id" : "604341487988576256",
"url" : "https://nitter.net/pic/orig/media%2FCGMNYZvW0AIVoom.jpg",
"user" : {
"name": "supernaturepics",
"nick": "Nature Pictures",
},
},
{
"#url" : "https://nitter.net/StobiesGalaxy/status/1270755918330896395",
"#comment" : "'quoted' option (#854)",
"#category": ("nitter", "nitter.net", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#options" : {"quoted": True},
"#pattern" : r"https://nitter\.net/pic/orig/media%2FEa[KG].+\.jpg",
"#count" : 8,
},
)

View File

@ -1,53 +0,0 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import nitter
__tests__ = (
{
"#url" : "https://nitter.unixfox.eu/supernaturepics",
"#category": ("nitter", "nitter.unixfox.eu", "tweets"),
"#class" : nitter.NitterTweetsExtractor,
},
{
"#url" : "https://nitter.unixfox.eu/i/user/2976459548/with_replies",
"#category": ("nitter", "nitter.unixfox.eu", "replies"),
"#class" : nitter.NitterRepliesExtractor,
},
{
"#url" : "https://nitter.unixfox.eu/i/user/2976459548/media",
"#category": ("nitter", "nitter.unixfox.eu", "media"),
"#class" : nitter.NitterMediaExtractor,
},
{
"#url" : "https://nitter.unixfox.eu/i/user/2976459548/search",
"#category": ("nitter", "nitter.unixfox.eu", "search"),
"#class" : nitter.NitterSearchExtractor,
},
{
"#url" : "https://nitter.unixfox.eu/i/web/status/1170041925560258560",
"#comment" : "Reply to deleted tweet (#403, #838)",
"#category": ("nitter", "nitter.unixfox.eu", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#pattern" : r"https://nitter\.unixfox\.eu/pic/orig/media%2FEDzS7VrU0AAFL4_\.jpg",
},
{
"#url" : "https://nitter.unixfox.eu/mightbecurse/status/1492954264909479936",
"#comment" : "age-restricted (#2354)",
"#category": ("nitter", "nitter.unixfox.eu", "tweet"),
"#class" : nitter.NitterTweetExtractor,
"#count" : 1,
"date": "dt:2022-02-13 20:10:00",
},
)