pax_global_header 0000666 0000000 0000000 00000000064 14575653726 0014536 g ustar 00root root 0000000 0000000 52 comment=5f3d558793b537a74480241ac6981479f5938cd3
woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-youtube/ 0000775 0000000 0000000 00000000000 14575653726 0023536 5 ustar 00root root 0000000 0000000 woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-youtube/modules/ 0000775 0000000 0000000 00000000000 14575653726 0025206 5 ustar 00root root 0000000 0000000 woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-youtube/modules/youtube/ 0000775 0000000 0000000 00000000000 14575653726 0026702 5 ustar 00root root 0000000 0000000 woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-youtube/modules/youtube/__init__.py 0000664 0000000 0000000 00000001505 14575653726 0031014 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2010-2011 Christophe Benz
#
# This file is part of a woob module.
#
# This woob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This woob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see .
from .module import YoutubeModule
__all__ = ['YoutubeModule']
woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-youtube/modules/youtube/browser.py 0000664 0000000 0000000 00000002222 14575653726 0030735 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2021 Vincent A
#
# This file is part of a woob module.
#
# This woob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This woob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this woob module. If not, see .
# flake8: compatible
from woob.browser import PagesBrowser, URL
from .pages import ResultsPage
class YoutubeBrowser(PagesBrowser):
BASEURL = "https://www.youtube.com/"
search = URL(r"/results", ResultsPage)
video = URL(r"/watch\?v=(?P[^&]+)")
def search_videos(self, pattern, sortby):
self.search.go(params={"search_query": pattern})
return self.page.iter_videos()
woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-youtube/modules/youtube/favicon.png 0000664 0000000 0000000 00000005451 14575653726 0031042 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq sRGB pHYs tIME
4[ tEXtComment Created with GIMPW
IDATx[oKR%R,!˱M i..zhRszl"@oR@^&H 8h&.RIa9DqZrggz,5HCr ˝~gx@?WB$"Y\Rz! Yu= QT AhS L 'T kճ, =@.b D B ~ uKy
/c ,W[b1Z,֛MKHɹqL(hX 0bo/ZLƚhrB
0~!H@Ř87;> "k7oNBJY keSAiB 朧j}!{19O @%ӑ ^ ?--[-'GٟO[z
$ (Uj8q+4 ʅJխyP 쳩w\ % ʣ$.}r7 ۈ
p{ R)m sI# Ɔ;NߊC-ǙS भ4B2o=#.!57B)em#.9p]pa|w>Bk}͍
|!j919Yp.
E .ca&}ASaaF6#2kj
酅O?sj~xP0N @=
m'Uo+T6>r=1?~ccc @JqA)az[zaïVŕ+.-
'C]DM]e=@hzj,sO=Ocl]76b)LNNBR5,~rpH&SҌY [>fg9@&Ʃ'nT1|>T
G.]Jne]zෂT{&|c2
+uxixGb%u~/m ҫYj9!\hl*V*yv:M ȦRaw$pyyZ{~f~FLkFATyD)X[YԶ&!mhjϒVױ|,N!D^G&+wReڭ[pu!H>Ք.ztjNjos.t1 jƪ*2۶a,c{yJ@fOU aq#G0tL5()%-Y%k9T*d+j
0f