[udemy] Generalize download json and fix login