An application that helps find "Good Morning" Images Automatically.
This project is no longer maintained. Do not contact me for any assistance or any bugs that you may find in this project.
For this project, you will require Python 3.8.
Run the following as a superuser in a terminal:
sudo apt-get update
sudo apt-get install -y libappindicator1 fonts-liberation
mkdir temp
cd temp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
- Before installing Chromedriver, run:
sudo apt-get update
sudo apt-get install -y unzip xvfb libxi6 libgconf-2-4
sudo apt-get install default-jdk
- Go to https://sites.google.com/a/chromium.org/chromedriver/home.
- Under the heading "All versions available in Downloads", click on the link next to "Latest stable release".
- Download your operating system's Chromedriver. Assumably it is in the
Downloads
folder. - Navigate to the downloads folder.
- Unzip the
zip
file usingunzip chromedriver_*.zip
- Run the following commands:
sudo mv chromedriver /usr/bin/chromedriver
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
- Download the repository and extract it into a folder. Let's call that folder the Root Folder.
- Using a terminal, navigate to the Root Folder
- (Optional) Create a virtual environment. Run the following commands:
python -m venv venv --prompt "Good Morning Image Finder"
source venv/bin/activate
- Install the needed libraries by running:
pip install -r requirements.txt
- Within the Root Directory, create two things:
- The first is a file named
settings.yaml
. - The second is a directory named
imgs
.
- The first is a file named
- Copy and paste the following text into
settings.yaml
:
send_email:
email_host: smtp.gmail.com
email_user: [email protected]
email_password: your_email_password
email_port: 587
receive_email:
recipients:
- [email protected]
- [email protected]
- [email protected]
- Replace
[email protected]
andyour_email_password
with your Gmail email address and password. - By replacing the example recipients in the
recipients
list, add in the recipients that you want to send the email to. - Next, open up
main.py
. Under# CONSTANTS
, change the values of the variables as you wish.
Note: Read Configuring the Project For Your Needs first! While inside the Root Directory (and within your virtual environment, if you have created one), run:
python main.py
MIT License
Copyright © Ryan-Kan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.