From 1e3554ec5334440030ec55af7af97d40a2f532b2 Mon Sep 17 00:00:00 2001 From: "amit.fegade121@gmail.com" Date: Wed, 22 Jan 2020 03:59:00 +0530 Subject: [PATCH] Fixed fetching 'title' value --- driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver.py b/driver.py index 1ff4ca5..a2aa3ce 100644 --- a/driver.py +++ b/driver.py @@ -82,7 +82,7 @@ urls = [] lessons = [] -title = parsed_html.find('span', attrs={'class', 'course-title'}).text +title = parsed_html.find('h2', attrs={'class', 'm-b-0'}).find('span').text; anchors = parsed_html.find_all('a', attrs={'class', 'syllabus-item'}) for anchor in anchors: