mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
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:
@ -24,7 +24,9 @@ def get_amazon_product_data(product: str = "laptop") -> DataFrame:
|
||||
),
|
||||
"Accept-Language": "en-US, en;q=0.5",
|
||||
}
|
||||
soup = BeautifulSoup(requests.get(url, headers=header).text, features="lxml")
|
||||
soup = BeautifulSoup(
|
||||
requests.get(url, headers=header, timeout=10).text, features="lxml"
|
||||
)
|
||||
# Initialize a Pandas dataframe with the column titles
|
||||
data_frame = DataFrame(
|
||||
columns=[
|
||||
|
Reference in New Issue
Block a user