首先,你需要安装Python库'beautifulsoup4'和'requests',如果没有安装过,你可以在终端中使用'pip install beautifulsoup4'和'pip install requests'来安装。
然后你可以使用以下代码来爬取这个数据集:
import requests
from bs4 import BeautifulSoup
url ="https://www.kaggle.com/datasets/sudhanshu2198/oil-spill-detection"
page = requests.get(url)
soup = BeautifulSoup(page.content, "html.parser")
download_url = soup.find_all("a", class_="gs-c-btn gs-c-btn--small gs-c-btn--primary gs-c-btn--inline")