Use user object where possible

This commit is contained in:
Thomas Wade 2018-09-18 18:08:13 +09:30
parent 9b9345887b
commit 51624e9715

View File

@ -60,7 +60,7 @@ for user_str in users_to_process:
user.url_username = user_str user.url_username = user_str
# Get the user's profile page and soup it # Get the user's profile page and soup it
driver.get('https://soundcloud.com/' + user_str) driver.get('https://soundcloud.com/' + user.url_username)
soup = BeautifulSoup(driver.page_source, 'lxml') soup = BeautifulSoup(driver.page_source, 'lxml')
# Grab their username # Grab their username