Code Monkey home page Code Monkey logo

movie-noti's Introduction

movie-noti

원하는 URL에서 필요한 부분을 크롤링해 텔레그렘 봇으로 결과를 보내준다.

 ex) 대전CGV에서 다음주 월요일 IMAX관 예매 가능하면 알려줘 

movie_crawler.py를 사용하며 crawling_first.py와 telegram_bot.py를 통해 연습 할 수 있다.

텔레그렘 봇을 사용하기 위한 토큰값과 채팅아이디는 확인후 빈칸을 채워 넣어야 한다.


  1. 가상환경 설치 원하는 폴더로 이동

     ex) cd python, E:
    
  2. python -m venv movie_noti

     가상환경 movie_noti 폴더 생성
    
  3. movie_noti 폴더 내 /Sctips/activat.bat 실행하여 가상환경 실행

  4. pip install bs4 requests 사용

     bs4-0.0.1 requests-2.22.0
    
  5. movie_noti 폴더에 movie_crawler.py 파일 생성

  6. 텔레그렘 봇 사용

     pip install python-telegram-bot
    
  7. aws 인스턴스 시작

  8. 우분투 업데이트

  9. apschedular 설치

  10. 깃 또는 파일질라를 이용해 서버에 파일 업로드

  11. nohup python3 movie_crawler.py를 우분투에서 실행

    서버 연결이 끊겨도 정삭적으로 백그라운드에서 실행
    

원하는 URL에서 필요한 부분을 찾아오는 방법은 검색

movie-noti's People

Contributors

crevee 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.