Skip to content

Commit

Permalink
[nitter] support nitter.it (#3819)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 25, 2023
1 parent 88f29a7 commit 89a67c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/supportedsites.md
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,12 @@ Consider all sites to be NSFW unless otherwise known.
<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>
Expand Down
6 changes: 5 additions & 1 deletion gallery_dl/extractor/nitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ def _pagination(self, path):
"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+)|[^/?#]+)"
Expand Down Expand Up @@ -455,7 +459,7 @@ class NitterTweetExtractor(NitterExtractor):
"count": 1,
}),
# broadcast
("https://nitter.lacontrevoie.fr/POTUS/status/1639409307878928384", {
("https://nitter.it/POTUS/status/1639409307878928384", {
"count": 0,
})
)
Expand Down

0 comments on commit 89a67c4

Please sign in to comment.