Skip to main content

websitemailer

This will take a screenshot of a website and send it to a set of email addresses. This can be useful for dashboards, or other frequently updating websites that you want to have automatically delivered to your inbox.

Description

To run the script, you can either use command line arguments, a configuration file, or a mix of both.

Installation

To install, simply run:

pip install websitemailer

Running

To run it by command line, run:

python -m websitemailer.main <cmd line args>

For example, this would take a screenshot of google.com and send it through smtp.gmail.com.:

python -m websitemailer.main -s smtp.gmail.com -u <smtp username> -p <smtp password> -r http://www.google.com -t <to email address> -f <from email address>

You can also use a config file.:

mailings: [{
   'to_emails': ['bcdotnotifications1@gmail.com'],
   'from_email': 'bcdotnotifications1@gmail.com',
   'subject': 'Test config subject1',
   'message': 'Test message1',
   'url': ['http://www.google.com']
   },
   {
   'to_emails': ['bcdotnotifications1@gmail.com'],
   'from_email': 'bcdotnotifications1@gmail.com',
   'subject': 'Test config subject2',
   'message': 'Test message2',
   'url': ['http://www.yahoo.com']
   }]

smtp-server: 'test_server_config'
smtp-username: 'test_username_config'
smtp-password: 'test_password_config'
chrome-bin: 'c:\testbin\config'

Testing

To run the test suite, run:

python -m tox -e py39 -- --email_username bcdotnotifications@gmail.com --email_password eV^5d97% --smtp_server smtp.gmail.com --pop_server pop.gmail.com

Sometimes, Gmail will reject the login from the tests. In that case, you need to log into the account, and then go to https://accounts.google.com/DisplayUnlockCaptcha

Note

This project has been set up using PyScaffold 4.0.2. For details and usage information on PyScaffold see https://pyscaffold.org/.

Metadata

Release files for websitemailer 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for websitemailer 1.1.1
File Size Uploaded Provenance Actions
websitemailer-1.1.1.tar.gz 1.2 MB Without provenance Details for websitemailer-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for websitemailer 1.1.1
File Interpreter ABI Platform Actions
websitemailer-1.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for websitemailer-1.1.1-py2.py3-none-any.whl

Total release size: 1.2 MB

Release files / websitemailer-1.1.1.tar.gz

Download URL websitemailer-1.1.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
c1d47d8fd7e4c8ef15ba8384626b24564586ae947fb59029c250c6b37a58fa61
BLAKE2b-256 checksum
How to use checksums
617fe1f99e9a840a98f56334fd0d528d946dcaec32ffac81d20b77b10eaf785c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / websitemailer-1.1.1-py2.py3-none-any.whl

Download URL websitemailer-1.1.1-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8ac45fe817a46366a6a8460e8cb128f979539fe19bde514f8c18e154e834023b
BLAKE2b-256 checksum
How to use checksums
187d85d4f19972d0244e8a019ef1e0f130d4d3c950a31a08068a782e01105804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for websitemailer 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page