GithubHelp home page GithubHelp logo

yas0nia / news_aggregator_novaia_gazeta Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cdies/news_aggregator

1.0 0.0 0.0 32 KB

Telegram bot for scraping regional news websites in russia, Digital Resistance Lab hackathon, Berlin May 2023

Python 99.75% Dockerfile 0.25%

news_aggregator_novaia_gazeta's Introduction

News aggregator

Installation:

  1. Clone this repository and cd to the its folder.

  2. Create config.py file with required credentials (see config_example.py). This file shoud be in the same folder with all the scripts.

  3. Install all required dependecies - pip install -r requirements.txt

  4. Start telegram_parser.py, to authenticate through telethon(https://docs.telethon.dev/en/stable/) and receive bot.session, gazp.session files required for bot's work.

IMPORTANT: use your telephone number when requested, do NOT use your bot API key as it won't be able to forward messages as a bot, you do it 'through' your account.

  1. Run any parser available or run python main.py to start all the parsers

Running a Docker image

  1. Make sure Docker is installed on your computer if you use Windows or MacOS.

  2. Clone repository and cd to the its folder.

  3. Create config.py file with required credentials (see config_example.py). This file shoud be in the same folder with all the scripts.

  4. Run docker build --tag dockerbot . to build an image.

  5. After that, run docker run -it dockerbot. IMPORTANT: use your telephone number when requested, do NOT use your bot API key as it won't be able to forward messages as a bot, you do it 'through' your account.

news_aggregator_novaia_gazeta's People

Contributors

cdies avatar yas0nia avatar

Stargazers

Igor Bronshtein 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.