stpy.summarize_gScholarAlerts.fetch_unread_emails

stpy.summarize_gScholarAlerts.fetch_unread_emails(username, password, since_days, label='gScholarAlerts')

Fetch_unread_emails from Gmail with specific label and since certain days

Parameters:
  • username (str) – The Gmail username (email address).

  • password (str) – The Gmail password (or app password if 2FA is enabled).

  • since_days (date) – The number of days to look back for emails.

  • label (str, optional) – the label to fetch emails from, that you have set in your Gmail account. Defaults to “gScholarAlerts”.

Returns:

Fetched mail object and email IDs.

Return type:

mail, email_ids (set)