Skip to content

RunasScript

A-Duck edited this page Jul 6, 2021 · 3 revisions

Run Epic-Scraper-Bot as a Script

Before we Begin

OS packages:

  • python3
  • cron

Python Pckages:

  • requests
  • Telegram
  • python-telegram-bot
  • python-crontab

The python packages can be installed with pip

python -m pip install requests Telegram python-telegram-bot python-crontab

Settings File (Settings.json)

  • TG_Bot_ID: This is the bot ID that you received from @Botfather
  • SERVER_PASSWORD: The value enteres here will be set as the registration password. If left blank; no password will be set.
  • CRON_SCHEDULE: This is the CRON schedule that specifies how often ESB should search for new games.

Example


{
    "TG_Bot_ID": "",
    "SERVER_PASSWORD": "",
    "CRON_SCHEDULE": "* 19 * * *"
}

Running the application


Once the settings file has been set up, you can start the application by running python Startup.py.

This will verify the settings are valid, create a CRON job for the Scraper to run, and start the Telegram bot.

Clone this wiki locally