From 539580de2a9c02926f11b1deea77b71f8fc7d44c Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Thu, 20 Sep 2018 00:59:39 +0930 Subject: [PATCH] Ignore collections I really don't want to iterate over collections so we'll just ignore them outright --- scrape.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scrape.py b/scrape.py index 045aad6..f990b63 100755 --- a/scrape.py +++ b/scrape.py @@ -134,6 +134,10 @@ def Get_Tracks_Info(url, limit = 100): # Initialise a track object to hold our data track = Track() + # Ignore collections + if track_elem.find(class_='sound__trackList'): + continue + # Grab the title title_elem = track_elem.find(class_='soundTitle__title') if title_elem: