Skip to main content

paybybot

Simple bot that sends you an email when you didn’t pay your parking on https://www.paybyphone.fr/

Installation on a Raspberry PI (about 30 minutes)

Install Chromium

Firefox doesn’t support headless mode on Debian yet.

sudo apt-get install chromium-browser

Install Chromedriver

  1. Go to the page of the latest armhf build on https://launchpad.net/ubuntu/trusty/+package/chromium-chromedriver

  2. Use this link in

    wget http://launchpadlibrarian.net/361669488/chromium-chromedriver_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb
  3. Install gdebi

    sudo apt-get install gdebi
  4. Install chromedriver

    sudo gdebi chromium-chromedriver*.deb
  5. Put chromedriver in your path

    sudo mv /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver

Sources:

Install pip

sudo apt-get install python3-pip

Install paybybot

pip3 install paybybot
# next line is there to find the paybybot command
echo 'export PATH=~/.local/bin:$PATH' >> .bashrc

Configure your credentials

In ~/.paybybot:

{Your phone number}:{PayByPhone password}

In ~/.email-creds:

{Your email address}:{Email password}

For your email account, I advise you to use an app password. See here to configure one in Gmail.

Add a cron task

crontab -e

and write

50 8 * * * ~/.local/bin/paybybot

to run paybybot everyday at 8:50

Configure your timezone correctly

For both crontab and the logs.

sudo raspi-config

then Localisation Options > Change Timezone

Metadata

Release files for paybybot 0.0.4

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

Source distribution (sdist)

Source distribution for paybybot 0.0.4
File Size Uploaded Provenance
paybybot-0.0.4.tar.gz 7.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for paybybot 0.0.4
File Interpreter ABI Platform
paybybot-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / paybybot-0.0.4.tar.gz

Download URL paybybot-0.0.4.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d7866d3c0468ed89e53c365c109f29363e4feb3654f9e1eabc69c891e237a6f5
BLAKE2b-256 checksum
How to use checksums
ca76d9f8688d4cb962436ce4223e79e7056ed0d4b839275973af2cf164db42b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.7

Release files / paybybot-0.0.4-py3-none-any.whl

Download URL paybybot-0.0.4-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb04ab3f257d4c909981ec94ffb50e1dcb52550146486dd1c1d10545e71cf995
BLAKE2b-256 checksum
How to use checksums
79ec75c98fc5a994fbfeb72d03fdb4b0044198e5248e9aac4f81b7c86180cd63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.7

Security for paybybot 0.0.4

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