8000 GitHub - mayoralito/ps5-finder: Automated way to check if a website have PS5 on stock
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mayoralito/ps5-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< 8000 a title="send_email.py" aria-label="send_email.py, (File)" class="Link--primary" href="/mayoralito/ps5-finder/blob/main/send_email.py">send_email.py
 
 
 
 
 
 

Repository files navigation

Python Basic Configuration

Pre-requisities to run Selenium with Python

In order to run the program you would need

Creating Virtual Environment

Resources: https://docs.python.org/3/tutorial/venv.html

Extract:

# To create a virtual environment, decide upon a directory where you want to place it, and run the venv module as a script with the directory path:

python -m venv ~/envs/target
source ~/envs/target/bin/activate

You can alternative run source ~/envs/target-env/bin/activate for this you have to create a folder named envs

Install Dependencies

Run below command

python -m pip install -r requirements.txt

Issues

  • On macOS you might need to accept manually to run chromedriver on your computer using the Security & Privacy under General tab.
  • You would have to expose the chromedriver file to PATH so it's accessible for execution

Notes

chromedriver direct link for mac - https://chromedriver.storage.googleapis.com/87.0.4280.88/chromedriver_mac64.zip

Sending email: Use this link to enable "less secure" access to a gmail account this feature is only avaiable if MFA is disabled. https://myaccount.google.com/lesssecureapps

Full tutorial https://realpython.com/python-send-email/

Running the script

export EMAIL_TO = "email@domain.com"
export EMAIL_SOURCE = "<your-email@gmail.com>"
read -s EMAIL_SOURCE_PASSWORD

then

export EMAIL_SOURCE_PASSWORD

And finally launch the script

python launcher.py

You can set a cron job and trigger the script, remember to set the environment vairables before running the script.

About

Automated way to check if a website have PS5 on stock

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0