From 1664aa8010db6c53b330cf177c84ec198f00232d Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Tue, 21 Apr 2020 16:30:30 +0930 Subject: [PATCH] Add docstring to example --- FaveScraper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FaveScraper.py b/FaveScraper.py index 5f48a6e..5b0dd0a 100755 --- a/FaveScraper.py +++ b/FaveScraper.py @@ -8,6 +8,10 @@ from FAAPI import FAAPI def download(url: str): + """ + Downloads the file at the given URL. + @param url: URL of the file to download. + """ print('Downloading ' + url) with open(url.split('/')[-1], 'wb') as file: res = requests.get(url)