Skip to content

Fetches the new releases from Metacritic and sends them to Telegram

Notifications You must be signed in to change notification settings

zmn-hamid/Metacritic-New-Releases-To-Telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metacritic New Releases To Telegram

What is this

I used to check Metacritic's new releases every time and save the Spotify link of the new albums in my Telegram account, so I automated it

Files explanation

Installation

  1. python 3.8 or above, preferrably 3.11 (installed and added to path)

  2. pip install -r requirements.txt

  3. make a private_config.ini file with this structure:

    [api]
    bot_token = token_of_your_bot
    
    
    [database]
    chat_id = the_chat_id_to_send_the_albums_to
    
    [spotify]
    client_id = client_id_of_spotify_app
    client_secret = client_secret_of_spotify_app
    

    bot_token -> from BotFather chat_id -> from Get My ID or Using the link of the message (if is channel or group) client_id and client_secret -> from Spotify Developer Dashboard

  4. change public_config.ini if needed (not necessary): skip_if_date_dont_match -> skips the sending of the album if the date doesn't match with the url log_level -> debug, info, warning, ... read_webpage_from_file -> for developement. read the albums from website or the meta file save_to_webpage_file -> for development. save the content of webpage to the meta file webpage_file_name -> webpages's offline file name (eg meta.html) number_of_fetched_albums -> between 1 and 50. used in spotify's library to increase the chance of finding the album

Usage

python app.py

  • Note: You have to manually stop the bot after the links are sent, using CTRL+C then the program asks you to either save the new releases or not (choose yes if everything went well)

About

Fetches the new releases from Metacritic and sends them to Telegram

Topics

Resources

Stars

Watchers

Forks

Languages