I would bet on an error in your username and password, which generates these errors in both scripts
If not, are you that your subscription on "LeMonde.fr" allow you to read the newspaper on the website?
I've updated my script to show an error message in case of wrong id.