o
    i                     @   s0   d dl Z d dlZddlmZ G dd deZdS )    N   )SearchInfoExtractorc                   @   s8   e Zd ZdZdZdZddddddgZd	Zd
d ZdS )GoogleSearchIEzGoogle Video searchzvideo.google:searchgvsearchzgvsearch15:python languagezpython language)idtitle   )url	info_dictplaylist_countd   c                 c   sz    t  D ]5}| jdd| d|d  d||| j | jddd}td	|D ]}| |V  q(td
|s: d S qd S )Nzhttp://www.google.com/searchz	gvsearch:zDownloading result page r   viden)tbmqstartnumhl)notequeryz/<div[^>]* class="dXiKIc"[^>]*><a href="([^"]+)"zid="pnnext")	itertoolscount_download_webpage
_PAGE_SIZErefindall
url_resultsearch)selfr   pagenumwebpager	    r!   Q/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/extractor/googlesearch.py_search_results   s$   
zGoogleSearchIE._search_resultsN)	__name__
__module____qualname__IE_DESCIE_NAME_SEARCH_KEY_TESTSr   r#   r!   r!   r!   r"   r      s    r   )r   r   commonr   r   r!   r!   r!   r"   <module>   s    