Open kshitij10496 opened 5 years ago
@kshitij10496 Can you mention a couple of reasons you are not happy with the present string formatting solution? It looks good to me, and gives a pretty high degree of flexibility when the URLs change in the future.
@kshitij10496 Can you mention a couple of reasons you are not happy with the present string formatting solution? It looks good to me, and gives a pretty high degree of flexibility when the URLs change in the future.
I just don't think string formatting is the best way to create URLs in Go.
Ideally, we should use URL
type with query parameters.
In Go? The course scrapper is written in Python though. ❓
My bad! 😅 What I meant was that string formatting, in general, is not the best way to create URLs, something that I learnt in Go. Hence, we should use the standard library whenever it comes to manipulating URLs. Having said that, I think of this as a nice to have, non-blocking feature which can help people get started contributing. 😅
Find the best solution to creating the URL required for scrapping Timetable data from ERP.
Refer: /data/scrapper/course_rooms.py