Giter Site home page Giter Site logo

pdjdev / dcbell-python Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 5.0 276 KB

디시인사이드(dcinside) 갤러리의 새 글을 실시간으로 텔레그램 채널봇을 통해 알려주는 스크립트

License: MIT License

Python 100.00%
dcinside python telegram telegram-channel dcbell

dcbell-python's Introduction

dcbell-python

img1

디시인사이드(dcinside) 갤러리의 새 글을 실시간으로 텔레그램 채널봇을 통해 알려주는 스크립트

스크립트 테스트 링크: https://dcbell-test.pbjdev.repl.run/

포크 코드: https://github.com/12si27/dcbell-python-plus
(글, 댓글 키워드 알림이 필요한 경우 위 리포지토리를 참고하세요)

사용 방법

  1. BotFather를 통해 텔레그램 로봇을 생성하고, 알림을 받기 원하는 공개 채널도 생성하여 API 토큰과 채널 링크(@포함)를 준비합니다.
# 텔레그램 설정
TelAPI = "123456789:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # 텔레그램 봇키
TelChan = "@channelid" # 주소
# 갤러리 설정 {'갤러리ID': 최근 글 번호}
gall = {'gall1':0, 'gall2':0}
updTime = 60 # 업데이트 주기 (초)
  1. 1.의 내용을 바탕으로 main.py 에서 위의 값을 원하는 설정으로 바꿉니다. 갤러리는 딕셔너리 형식이므로 {'gall1': 111, 'gall2':222, 'gall3':345, ...} 와 같은 식으로 1개 이상 적어주시면 됩니다.
    업데이트 주기(updTime)는 초 단위이며, 부하를 막기 위해 최소 1분 이상으로 지정해 주시기 바랍니다.

img2

  1. 알림 받을 채널 링크로 가 1.에서 생성했던 봇을 관리자로 추가한 뒤, 코드를 실행하여 알림이 정상적으로 오는지 확인합니다.

dcbell-python's People

Contributors

pdjdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.