Skip to content

5.3. Google Videos

Javinator9889 edited this page Aug 13, 2018 · 3 revisions
  • withVideoParams(self, params: GoogleVideos): defines the VideoParams for doing a search at Google Videos. A GoogleVideos object must be created.

GoogleVideos

from pyGle.values import GoogleVideos
  • withShortDuration(self): search only videos with a short duration (less than 4 minutes).
  • withMediumDuration(self): search only videos with a medium duration (between 4 and 6 minutes).
  • withLongDuration(self): search only videos with a long duration (higher than 6 minutes).
  • withHighQualityVideos(self): search only videos in high quality.
  • withSubtitles(self): search only videos that have non-generated subtitles.

List output format

Here is the format of the results, when job finishes:

[    {
          'title': 'video title',
          'link': 'video URL',
          'description': 'video description',
          'date': 'video date',
          'duration': 'video duration with format HH:MM:SS',
          'thumbnail': 'video thumbnail URL'
     },
     {
          'how_many_results': 'number of videos',
          'google_stats': 'Google provided stats',
          'stats':    {
                           'overall_time': 'total time',
                           'google_search_time': 'Google searching time',
                           'parsing_page_time': 'parsing results time'
                      },
          'url': 'Google Videos URL'
     }
]

<<< Previous page - Next page >>>