This is a portofolio script, but it works perfectly. This include the following functional libraries:
- googlesearch-python
- playwright
- re
- smtplib
This script works with google smtp server. If you have 2factor authentification, you need create a password to
conect your email without any errors and problems.
In this tutorial you will see how to generate an app password:
Gmail 2F auth app password It my another portofolio app. This script didn't work with Proxy or VPN. Even if it would work with
Proxy or VPN, you send with your email adress. So... be careful. If you send many emails
and didn't respect GDPR policy, you may have problems. You can find many information about email sender strategy
in internet. This script works for RO_ro Google Search area.
You have a 2f auth password. Its great. Now, you need find a folder with name: "email_sender",
in this folder, you will find a config.py file. Great! You need do complete variable email and password
with your data.
email = '' # here input your email adress
password= '' # here input your password or 2F auth password
If you want to customize the Plain text messages or edit the HTML template,
you can also find the text_data.py file in this folder.
You cand download this script with command:
git clone https://github.com/andreireporter13/email_scraper_and_message_sender.git
After this, you need create special virtual environments. A show how install it on Linux:
python3 -m venv venv_name
After installing venv, you need install libraries:
pip3 install -r requirements.txt
If you want to use this CLI app, you must insert this command:
python3 email_finder_sender_main.py
If you run this script, the questions that you will have to fill in with the necessary data will begin to flow.
Web Automation RO_ro