Send command#
Send command
- asrch.commands._send.scroll_down(driver) None [source]#
Scrolls page until the end is reached
- Parameters:
driver (object) – the driver to execute the script on
- Returns:
None
- asrch.commands._send.search_ddg(query: str, header: bool, proxy: str | None, log: bool) list[str] [source]#
Opens Google and searches for a query given by the user.
- Parameters:
url – The URL passed from the click argument, defaults to None
- Raises:
ValueError – If the URL is not provided
NoSuchelementexception – If the element can’t be found.
ElementNotVisibleException – If the element isn’t visible in the DOM.
- Returns:
The list of URLs from the webpage
- Return type:
list[str]
- asrch.commands._send.search_engines(query: str, header: bool = False, proxy: str | None = None, log: bool = True, browse=False) str | int [source]#
- asrch.commands._send.search_ggl(query: str, header: bool, proxy: str | None, log: bool) str [source]#
Opens Google and searches for a query given by the user.
- Parameters:
url – The URL passed from the click argument, defaults to None
- Raises:
ValueError – If the URL is not provided
NoSuchelementexception – If the element can’t be found.
ElementNotVisibleException – If the element isn’t visible in the DOM.
Timeoutexception – If seleniumm times out waiting for element.
- Returns:
The list of URLs from the webpage
- Return type:
list[str]