Company
Date Published
Author
Julian Sequeira
Word count
729
Language
English
Hacker News points
None

Summary

Julian and Bob embarked on a code challenge where Bob set a task for Julian to create a web scraper to calculate the total duration of an online JavaScript course, which only displayed individual module times but not the total. Despite initial plans to use BeautifulSoup, Julian faced challenges accessing the course content behind a login, leading him to manually save the page as HTML and parse it using Python's regex capabilities. He developed a program that successfully calculated the course duration to be approximately 6.8 hours, even though it was not a traditional web scrape. Julian reflected on the learning experience, acknowledging areas for improvement in his code and expressing interest in refining his skills with BeautifulSoup for future projects, while Bob was concurrently reviewing and refactoring the code to enhance its Pythonic quality.