r/GoogleAppsScript • • Aug 12 '24

Question Script to scrape email and send data to certain columns in Gsheets

Hey everyone, I’m wondering if is it possible to write a script that scrapes emails that come in every few hours and send certain data to Gsheets into specific columns?

8 Upvotes

11 comments sorted by

2

u/elcriticalTaco Aug 13 '24

Yup.

Do you possibly have a more detailed question or are we done here lol?

1

u/MakeABrick Aug 13 '24

Yeah, how do I learn how to do this?

3

u/elcriticalTaco Aug 13 '24

YouTube is a start, various online courses and guides...

You have provided zero info about what specifically you want to do.

I'm not trying to be a dick but like...I can't read your mind, nor can I implant "how to code" into it.

If you want to learn, it's going to take some effort and struggles. If googling "apps script tutorial" is beyond the effort you are willing to put in, this is not for you.

If you have a specific problem you want some help solving, myself or many other people here will help you, but you haven't given any info about that sooooo....what do you want me to do?

2

u/MakeABrick Aug 13 '24

Ahh thank you, I didn’t realize it wasn’t detailed enough. My company receives emails periodically throughout the day that contain product information like purchase date, cost, quantity. Basic info. I have a Gsheet that I manually fill these details in from the email into specified columns. It can be rather time consuming so I’m looking for a way for to automatically send this customer data into the Gsheet when these emails come in.

4

u/elcriticalTaco Aug 13 '24

Absolutely doable and I'm happy to help.

I have work in the morning so tonight not much will happen but if you make a template sheet and fake email that's formatted exactly how the ones you receive are I should be able to get something tomorrow. If not me, someone else.

Don't pay for this. Not sure what the other comment is but it strikes me as an offer to sell you something. Don't do that.

I like doing this stuff and won't charge you a penny.

-4

u/AllenAppTools Aug 13 '24

If you'd like this done for you, send me a message. It's what we do, but yes this is all possible.

2

u/vr4lyf Aug 13 '24

I do this and also send it as a slack msg.

The sheets api let's me create charts and graphs to add to the slack msg

2

u/Funny_Ad_3472 Aug 13 '24

In order to write a script that scrapes data from your emails, the format of that email that contains thay information you want to scrape should be consistent all the time. I have written a script that scrapes info from emails from a particular form. Maybe you can look at it and build on your own. If you have difficulty, maybe lemme know. https://codespaces.bss.design/boostrap.html This one extracts the data from a particular form, but I'm sure you can build on it.

1

u/Verolee Aug 13 '24

Ask GPT or Claude.