Module pyreddit.services.youtube_service
Service for Youtube URLs.
Classes
class Youtube
-
Service for Youtube URLs.
Notes
This service creates a
YOUTUBE
media, which will in the end create a text post.Ancestors
Class variables
var access_token : Union[str, NoneType]
-
Inherited from:
Service
.access_token
Contains the access token for the OAuth authentication if present, None otherwise …
var is_authenticated : bool
-
Inherited from:
Service
.is_authenticated
True if the external request needs to be authenticated (i.e. with an Authorization header), False otherwise …
var has_external_request : bool
-
Inherited from:
Service
.has_external_request
True if the service needs to reach out to an external http endpoint, False otherwise.
Static methods
def preprocess(url: str, data: Any) ‑> str
-
Override of
Service.preprocess()
method.Gets the youtube url from reddit json.
def get(url: str) ‑> str
-
Override of
Service.get()
method.Fake get: simply returns the url given as parameter.
def postprocess(response) ‑> Media
-
Override of
Service.postprocess()
method.Constructs the media object.
def authenticate() ‑> NoneType
-
Inherited from:
Service
.authenticate
Authenticate the service on the service provider API …
def get_media(url: str, data: Any) ‑> Media
-
Inherited from:
Service
.get_media
Entrypoint of the class …