Skip to main content

Get notification from Discogs

Project description

Discoger

Discoger Bot is a Telegram bot that allows you to be notified when a new sale for a vinyl in your Discogs wantlist is available.

Features

  • Follow Discogs releases or masters and get a Telegram message when a new listing appears (price, condition, shipping origin, suggested price)
  • Synchronize your Discogs wantlist (/wantlist)
  • Scheduled checks (every schedule_time minutes) with Cloudflare-resilient scraping (curl_cffi with browser impersonation, automatic retries)
  • Optional admin alert on Telegram when checks fail (e.g. Cloudflare blocking)

Usage

  1. Search for the Telegram bot "Discoger" or click this link to open a conversation with the bot.

How to use it

Installation

Installation is in three steps, the first is getting credentials from Discogs and Telegram. You need to create a Token.

For Telegram you need contact @BotFather and follow a few simple steps for get your authorization token.

Configuration

After that you need create config.ini file

[DEFAULT]
schedule_time = 30
disable_unofficial = True
log_level = INFO

[discogs]
secret = dbPVkGbCVVffggfgkdfgmlkknzezsbhmscskncno

[telegram]
token = 1766763279:AAFwufBsdfdsfgdfsgfgsfsgdfgsdf
admin_chat_id =
  • schedule_time: minutes between two check cycles
  • disable_unofficial: skip "Unofficial" listings
  • admin_chat_id (optional): your Telegram chat id; if set, you receive a summary message when a check cycle has failures (e.g. ⚠️ Discoger: 5/20 checks en échec ce cycle (dont 5 Cloudflare 403)). Leave empty to disable.

Docker

docker container run -v ./:/root/.config/discoger beudbeud/discoger

Upgrade

If you use the old version of discoger you need to update your database.

Example of database for the version 1.1

chat_id: 249125421
release_list:
- release_id: '288931'
  artist: Aloud
  title: Track Lifting
  url: https://www.discogs.com/fr/master/288931-Julian-Jay-Savarin-Waiters-On-The-Dance
  type: master
  last_sell: {}
- release_id: '26741825'
  artist: Metallica
  title: 72 Seasons
  url: https://www.discogs.com/fr/release/26741825-Metallica-72-Seasons
  type: release
  last_sell: {}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discoger-2.8.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discoger-2.8.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file discoger-2.8.0.tar.gz.

File metadata

  • Download URL: discoger-2.8.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for discoger-2.8.0.tar.gz
Algorithm Hash digest
SHA256 55b1ba6667b9e24e2578a36aab4afe7aa7e329045130c6b8759d665d3287ad35
MD5 5e5429c56e4a64fe99566b7f47e331fb
BLAKE2b-256 cebe1c6ae88ed823d610891cf97978f38ffcc86502d0f5978e575a06000da300

See more details on using hashes here.

File details

Details for the file discoger-2.8.0-py3-none-any.whl.

File metadata

  • Download URL: discoger-2.8.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for discoger-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de751b6e3ec951e6da579c6f32987cb8a586e5f92f4c493e5fd4850d47e5a1de
MD5 375ced7297a82e4cfd4e000afd7a8ce8
BLAKE2b-256 0af4e5f311717bfa24c6645dc2fde61d898e9b5a09605226f434457cc6cb3436

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page