Closed asharma13524 closed 4 years ago
Yea I am not sure, I think OAuth2 possibly might not work anymore. I'd recommend switching to application specific passwords - this is my current way.
Hope it's useful to you!
Thank you very much. This worked!
First, just wanted to say thanks for such an awesome library. Now, I am obtaining an HTTP Error 400: Bad Request when attempting to send an email. I thought that the issue was being caused by an unexpired token perhaps. I could not quite track down exactly why this error was happening. But I run this scraper ~ once a week and after about a couple of months, this error started popping up.
Both the error and the relevant code that is producing the error can be found below.
Here is the relevant code in my script using the pattern you describe in the docs.
I have all credentials in the oauth2_creds.json file in the following format:
Any help would be greatly appreciated in tracking down what is going on. Please let me know if anything else is needed to help understand what is going on, I am still a bit of a beginner. My entire repo can be found here: https://github.com/asharma13524/clinical-trials-scraper