Gmail BOT to perform specific tasks.

jpthompson

Newbie
Joined
Sep 6, 2015
Messages
6
Reaction score
5
Hey, Im looking for a developer that can create a program to perform specific automated tasks in multiple gmail accounts.

The system must use a browser with residential proxies.

We will have a spreadsheet with verified gmail accounts so the program must be able to login to the accounts using the data from the spreadsheet.

It must be able to perform the following tasks:
  • Login to the account
  • Check spam
  • Open emails
  • Mark as not spam
  • Mark as important
  • Click a link

It must be able to emulate as a real user, so the program must be able to connect to unique residential proxies and perform the above tasks.

Please let me know if this kind of script is possible, thanks.
 
Yeah, it's possible. You can achieve this using browser automation software like Selenium or Puppeteer. Here's a simple Puppeteer bot I just made that logs in on Gmail. You can tell it to use a different account and proxy or launch multiple instances at the same time.

gmail.png
 
Yeah, it's possible. You can achieve this using browser automation software like Selenium or Puppeteer. Here's a simple Puppeteer bot I just made that logs in on Gmail. You can tell it to use a different account and proxy or launch multiple instances at the same time.

View attachment 247141
To add on to this, Playwright is also a nice option.
 
Yeah, it's possible. You can achieve this using browser automation software like Selenium or Puppeteer. Here's a simple Puppeteer bot I just made that logs in on Gmail. You can tell it to use a different account and proxy or launch multiple instances at the same time.

View attachment 247141
Ok great, can we connect and discuss further? Sorry for the late reply i never seen any notification about your reply.
 
Did you figure it out? Always sad to see interesting threads to not get a follow up
Hi, i did not get any response from above. I spoke to several other developers but none of them have the experience. I did a lot of research and learned its just as easy to create script that connects to gmail via IMAP and app password, that way it does not require login from a browser. I already started developing the script with a frontend and so far so good but still lots of tweeks needed to fine tune it.
 
Hi, i did not get any response from above. I spoke to several other developers but none of them have the experience. I did a lot of research and learned its just as easy to create script that connects to gmail via IMAP and app password, that way it does not require login from a browser. I already started developing the script with a frontend and so far so good but still lots of tweeks needed to fine tune it.
Respect and like for an actual follow up! Thanks!
 
Hey, Im looking for a developer that can create a program to perform specific automated tasks in multiple gmail accounts.

The system must use a browser with residential proxies.

We will have a spreadsheet with verified gmail accounts so the program must be able to login to the accounts using the data from the spreadsheet.

It must be able to perform the following tasks:
  • Login to the account
  • Check spam
  • Open emails
  • Mark as not spam
  • Mark as important
  • Click a link

It must be able to emulate as a real user, so the program must be able to connect to unique residential proxies and perform the above tasks.

Please let me know if this kind of script is possible, thanks.

You wanted to develop a web browser bot for warming up your gmail/gmail smtp account.
We have good experience developing a warmup system. If you have good budget for the bot you can pm me.
 
Hey, Im looking for a developer that can create a program to perform specific automated tasks in multiple gmail accounts.

The system must use a browser with residential proxies.

We will have a spreadsheet with verified gmail accounts so the program must be able to login to the accounts using the data from the spreadsheet.

It must be able to perform the following tasks:
  • Login to the account
  • Check spam
  • Open emails
  • Mark as not spam
  • Mark as important
  • Click a link

It must be able to emulate as a real user, so the program must be able to connect to unique residential proxies and perform the above tasks.

Please let me know if this kind of script is possible, thanks.
Sounds like a good work, with a fair budget i can develope all you need
 
It's possible if you can code the bot.
 
the bot works best if you also create the appropriate gmail accounts yourself and do not purchase them
 
Hey, Im looking for a developer that can create a program to perform specific automated tasks in multiple gmail accounts.

The system must use a browser with residential proxies.

We will have a spreadsheet with verified gmail accounts so the program must be able to login to the accounts using the data from the spreadsheet.

It must be able to perform the following tasks:
  • Login to the account
  • Check spam
  • Open emails
  • Mark as not spam
  • Mark as important
  • Click a link

It must be able to emulate as a real user, so the program must be able to connect to unique residential proxies and perform the above tasks.



Please let me know if this kind of script is possible, thanks.
Hope this works for u.

Code:
import os
import base64
from google.oauth2 import service_account
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError

# Load your Google Cloud service account key JSON file
credentials = service_account.Credentials.from_service_account_file('your-service-account-key.json',
                                                                   scopes=['https://www.googleapis.com/auth/gmail.modify'])

# Authenticate and build the Gmail API client
gmail_service = build('gmail', 'v1', credentials=credentials)

# Function to list Gmail labels
def list_labels():
    results = gmail_service.users().labels().list(userId='me').execute()
    labels = results.get('labels', [])
    if not labels:
        print('No labels found.')
    else:
        print('Labels:')
        for label in labels:
            print(label['name'])

# Function to check spam emails
def check_spam_emails():
    try:
        response = gmail_service.users().messages().list(userId='me', labelIds=['SPAM']).execute()
        messages = response.get('messages', [])
        if not messages:
            print('No spam emails found.')
        else:
            for message in messages:
                message_info = gmail_service.users().messages().get(userId='me', id=message['id']).execute()
                print('Subject:', message_info['subject'])
                print('Snippet:', message_info['snippet'])
    except HttpError as error:
        print(f'An error occurred: {error}')

# Function to mark an email as not spam
def mark_as_not_spam(message_id):
    try:
        gmail_service.users().messages().modify(userId='me', id=message_id, body={'removeLabelIds': ['SPAM']}).execute()
        print(f'Marked email {message_id} as not spam.')
    except HttpError as error:
        print(f'An error occurred: {error}')

# Function to mark an email as important
def mark_as_important(message_id):
    try:
        gmail_service.users().messages().modify(userId='me', id=message_id, body={'addLabelIds': ['IMPORTANT']}).execute()
        print(f'Marked email {message_id} as important.')
    except HttpError as error:
        print(f'An error occurred: {error}')

# Function to click a link (by opening an email)
def click_link_in_email(message_id):
    try:
        message = gmail_service.users().messages().get(userId='me', id=message_id).execute()
        for part in message['payload']['parts']:
            if part['mimeType'] == 'text/html':
                data = part['body']['data']
                html_content = base64.urlsafe_b64decode(data).decode('utf-8')
                # Here you can parse the HTML content to find and click links.
                # This part will depend on your specific use case.
                print('Opened email and processed links.')
                break
    except HttpError as error:
        print(f'An error occurred: {error}')

# Example usage
if __name__ == '__main__':
    list_labels()
    check_spam_emails()
    # Provide a message_id to mark as not spam, mark as important, and click links.
    message_id = 'YOUR_MESSAGE_ID'
    mark_as_not_spam(message_id)
    mark_as_important(message_id)
    click_link_in_email(message_id)
 
Back
Top