Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSultan X
530 PointsI want to schedule lessons in my calendar
How can I extract thw titles of all lessons in specfic track with their time? I need this so I can organise my learning in calendar or in . MS Word file so I can know which lessons I look at tomorrow for example and after that.
1 Answer
Steven Parker
231,265 PointsSince this information isn't readily copy-pasted, I took a look at the HTML code for the page.
If you've done any web scraping or are familiar with the browser's development tools and proficient with a good editor (there are courses/workshops here for each), you can extract this information from the HTML code for the page. The titles are in h3 elements that have the class "card-title", and the time estimates are in spans that have the class "card-estimate". These are all found in an unordered list within a div with the id of "track-steps".
Note that the estimate appears before the title for each card.
Also note that these estimates are general guides, your actual time to complete the course may vary greatly based on personal study habits.