-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email scraper #1
Comments
I came here to make a comment of exactly the same thing, could the email scraper be shared so others in other regions can set it up? Does it run under HA or under another host operating system? |
I've just uploaded the code here: https://github.com/8none1/octopus_powerups/blob/main/gapps_scripts/powerups_email_finder.gs The code runs inside Google Apps Script and is dependent on having read only access to a GMail account. I recommend that you create a separate gmail account to run this in and then use some filtering from your personal email account to find and forward the power ups email to this new GMail account. The work flow is:
I did consider having GH Actions run every 15 mins to fetch the JSON object from the GApps script, but I think that would have leaked the secret URL and I didn't want to do that, so instead I'm running a cron job on a Pi in my house (the same Pi running HA). The risks that I can imagine are:
|
I would welcome improvements to the GS code 😄 Plus I noticed that the checking of the headers doesn't actually do anything. Guess I never hooked it up, probably because it wasn't reliable. |
and if you didn't already see it; there is a bit more information here: https://www.whizzy.org/2024-01-24-powerups-api/ |
Marking as resolved. I added a note to the README to link to this issue for people who would like more info on the scraper. |
First off - thanks for sharing. I've been thinking for ages about trying to do something similar.
Is your email scraper in a state where it could be shared? Even if it's for a different platform/setup it's always easier to build on someone else's work.
The text was updated successfully, but these errors were encountered: