From 99d77a574bcffbe66fd60e555ebdb8ac499fac11 Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Sun, 30 Sep 2018 11:04:19 +0930 Subject: [PATCH] Normalise all tags to lowercase --- scrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape.py b/scrape.py index 461284c..b225bb2 100755 --- a/scrape.py +++ b/scrape.py @@ -207,7 +207,7 @@ def Get_Tracks_Info(url, limit = 100): # Grab the first tag featured on the list item tag_elem = track_elem.find(class_='soundTitle__tagContent') if tag_elem: - track.tag = str(tag_elem.string) + track.tag = str(tag_elem.string).lower() # Grab the play and comment counts (either of these may or may not be present) play_comment_elems = track_elem.find_all(class_='sc-ministats-item')