Git Product home page Git Product logo

segelflug-classifieds's Introduction

segelflug-classifieds

Segelflug.de Kleinanzeigen Telegram Bot

This project implements a basic Telegram bot that regularly polls the Segelflug.de Kleinanzeigen page for new items and sends them to a public Telegram channel. The bot is intended to run on a Raspberry Pi, so ARM cross-compilation compatibility is a requirement for any changes.

Usage

$ segelflug-classifieds --help 

USAGE:
    segelflug-classifieds [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -w, --watch      Run continuously and poll the server in random intervals

OPTIONS:
        --max-time <max-time>
            Maximum time to wait between server requests (in minutes) [default: 30]

        --min-time <min-time>
            Minimum time to wait between server requests (in minutes) [default: 10]

        --telegram-chat-id <telegram-chat-id>
            Telegram chat ID [env: TELEGRAM_CHAT_ID] [default: @segelflug_classifieds]

        --telegram-token <telegram-token>        
            Telegram bot token [env: TELEGRAM_TOKEN]

If no Telegram token is provided the application will only output the new items on the console, if a token is provided they will also be sent to the configurable Telegram channel.

In addition to these options a SENTRY_DSN environment variable can also be set to enable error reporting on Sentry.io.

Deployment

As mentioned above, the intended deployment target is a Raspberry Pi. A deploy.sh shell script is included in this repository to simplify the deployment process. This script needs to be configured by setting the TARGET_HOST and TARGET_PATH environment variables.

An example systemd service file is also provided in the systemd folder of this repository.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

segelflug-classifieds's People

Contributors

renovate-bot avatar renovate[bot] avatar turbo87 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

moldhouse

segelflug-classifieds's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Use matchDepNames instead of matchPackageNames

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update Rust crate anyhow to v1.0.83
  • Update Rust crate rss to v2.0.8
  • Update Rust crate serde to v1.0.202
  • Update Rust crate serde_json to v1.0.117
  • Update actions/checkout action to v4.1.5
  • Update Rust crate insta to v1.39.0
  • Update Rust crate tokio to v1.37.0
  • πŸ” Create all rate-limited PRs at once πŸ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
Cargo.toml
  • ammonia =3.3.0
  • anyhow =1.0.81
  • atomicwrites =0.4.3
  • clap =4.4.18
  • lazy_static =1.4.0
  • rand =0.8.5
  • regex =1.10.3
  • reqwest =0.11.27
  • rss =2.0.7
  • scraper =0.17.1
  • sentry =0.31.8
  • serde =1.0.197
  • serde_json =1.0.114
  • serde_urlencoded =0.7.1
  • teloxide =0.12.2
  • tokio =1.36.0
  • tracing =0.1.40
  • tracing-futures =0.2.5
  • tracing-subscriber =0.3.18
  • insta =1.36.1
  • vergen =8.3.1
github-actions
.github/workflows/build-and-deploy.yml
  • actions/checkout v4.1.1
  • Swatinem/rust-cache v2.7.3
  • actions/upload-pages-artifact v2.0.0
  • actions/deploy-pages v2.0.5
.github/workflows/ci.yml
  • actions/checkout v4.1.1
  • Swatinem/rust-cache v2.7.3
  • actions/checkout v4.1.1
  • Swatinem/rust-cache v2.7.3
  • actions/checkout v4.1.1
  • Swatinem/rust-cache v2.7.3
  • actions/checkout v4.1.1
  • Swatinem/rust-cache v2.7.3
regex
rust-toolchain.toml
  • rust 1.73.0
.github/workflows/build-and-deploy.yml
  • cross 0.2.5

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>Turbo87/renovate-config:rust/updateToolchain)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.