Verified Commit 7fe92c09 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added support for Etsy shops

parent 6f00efa3
......@@ -112,6 +112,15 @@ class OpenCollective(BasicUsernameInPathProvider):
domain_regex = r"^(\w+\.)*opencollective\.com"
@registry.register
class Etsy(BasicUsernameInPathProvider):
id = "etsy"
label = "Etsy"
url = "https://etsy.com"
domain_regex = r"^(\w+\.)*etsy\.com"
username_regex = r"^\/[a-zA-Z-_]+/shop/([\w\.]+)/?$"
@registry.register
class BandCamp(BasicUsernameInDomainProvider):
id = "bandcamp"
......
......@@ -13,6 +13,10 @@ from retribute_api.search import means
("https://paypal.me/username", {"provider": "paypal", "id": "username"}),
("https://www.paypal.me/username", {"provider": "paypal", "id": "username"}),
("https://fr.tipeee.com/username", {"provider": "tipeee", "id": "username"}),
(
"https://www.etsy.com/fr_CA/shop/xxPETRICHORxx",
{"provider": "etsy", "id": "xxPETRICHORxx"},
),
("https://tipeee.com/username", {"provider": "tipeee", "id": "username"}),
(
"https://custom.com/username?retribute",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment