Obtén el subreddit

Published by Pickle in

Crea una función para extraer el nombre del subreddit de su URL.

Ejemplos

SubReddit("https://www.reddit.com/r/funny/") ➞ "funny"

SubReddit("https://www.reddit.com/r/relationships/") ➞ "relationships"

SubReddit("https://www.reddit.com/r/mildlyinteresting/") ➞ "mildlyinteresting"

Notas

N/A