python-pixabay
Public Member Functions | List of all members
pixabay.video.video Class Reference

Public Member Functions

def __init__ (self, data)
 Init video object. More...
 
def getId (self)
 Get ID of video.
 
def getPageURL (self)
 Get page url of video.
 
def getType (self)
 Get type of video.
 
def getTags (self)
 Get tags of video.
 
def getDuration (self)
 Get url of Preview.
 
def getPictureId (self)
 Get width of Preview.
 
def getVideoLarge (self)
 Get Height of Preview.
 
def getVideoSmall (self)
 Get Height of Preview.
 
def getVideoMedium (self)
 Get Height of Preview.
 
def getVideoTiny (self)
 Get Height of Preview.
 
def getViews (self)
 Get views of video.
 
def getDownloads (self)
 Get downloads of video.
 
def getLikes (self)
 Get likes of video.
 
def getComments (self)
 Get comments of video.
 
def getUserId (self)
 Get author id of video.
 
def getUser (self)
 Get name of author of video.
 
def getUservideoURL (self)
 Get url of video of author of video.
 
def downloadRaw (self, imtype='medium')
 Download video to varaible. More...
 
def download (self, dst, imtype='medium')
 Download video to file. More...
 

Detailed Description

Definition at line 9 of file video.py.

Constructor & Destructor Documentation

◆ __init__()

def pixabay.video.video.__init__ (   self,
  data 
)

Init video object.

Parameters
datadata of video in JSON format
Returns
video obj

Definition at line 14 of file video.py.

Member Function Documentation

◆ download()

def pixabay.video.video.download (   self,
  dst,
  imtype = 'medium' 
)

Download video to file.

Parameters
dstlocation of file to save

Definition at line 131 of file video.py.

◆ downloadRaw()

def pixabay.video.video.downloadRaw (   self,
  imtype = 'medium' 
)

Download video to varaible.

Parameters
imtypetype if video (webformat, preview, largevideo) (Default: webformat)
Returns
byte array of video

Definition at line 106 of file video.py.


The documentation for this class was generated from the following file: