mirror of
https://github.com/KevinMidboe/ITLscraper.git
synced 2025-10-29 09:40:13 +00:00
fix broken cli
This commit is contained in:
@@ -343,4 +343,11 @@ if __name__ == '__main__':
|
|||||||
if url:
|
if url:
|
||||||
scraper.download_one(url)
|
scraper.download_one(url)
|
||||||
else:
|
else:
|
||||||
scraper.download_all()
|
courses = scraper.find_all_courses()
|
||||||
|
for key in courses:
|
||||||
|
print(courses[key])
|
||||||
|
ans = input("Continue? Y/N ")
|
||||||
|
if "y" in ans.lower():
|
||||||
|
scraper.download_all()
|
||||||
|
else:
|
||||||
|
exit()
|
||||||
|
|||||||
Reference in New Issue
Block a user