Enable ruff S113 rule (#11375)
* Enable ruff S113 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -39,7 +39,9 @@ def download_images_from_google_query(query: str = "dhaka", max_images: int = 5)
|
||||
"ijn": "0",
|
||||
}
|
||||
|
||||
html = requests.get("https://www.google.com/search", params=params, headers=headers)
|
||||
html = requests.get(
|
||||
"https://www.google.com/search", params=params, headers=headers, timeout=10
|
||||
)
|
||||
soup = BeautifulSoup(html.text, "html.parser")
|
||||
matched_images_data = "".join(
|
||||
re.findall(r"AF_initDataCallback\(([^<]+)\);", str(soup.select("script")))
|
||||
|
||||
Reference in New Issue
Block a user