GithubHelp home page GithubHelp logo

rhiskey / fomagrssfeedreader Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 33 KB

Implementation of RSS Feed Reader and exporting posts to MsSQL

License: GNU General Public License v3.0

Python 100.00%
bitrix rss python rss-reader rss-feed bitrix-cms

fomagrssfeedreader's Introduction

Импорт на СПБ сайт нужно делать с задержкой в 15 мин от времени, которое указано у каждой новости в RSS. Берем:

  • Заголовок новости из тега - <title>
  • Дату и время ставим на момент импорта
  • Текст новости из тега - yandex:full-text с преобразованием в HTML
  • Если параметр WEEKS_DELAY = 0 => новости публикуются за HOURS_DELAY, елси WEEKS_DELAY!=0, то за указанный период в неделях
  1. Install pip install auto-py-to-exe
  2. Build auto-py-to-exe
  3. Navigate to output folder -> run main.exe
  4. Create .env file with config
  5. pip freeze > requirements.txt

Структура .env файла:

# Уровень вывода ошибок в логи
DEBUG=true
# MsSQL DB Connection
DB_SERVER=tcp:localhost	
DB_NAME=
DB_USER=
DB_PASS=
# Период за который новости читаются
WEEKS_DELAY=30
HOURS_DELAY=1

Exit Code: 0 - Завершена работа (0xFFFFFFFF)= -1 1 - Ошибка в main.py 2 - Невозможно спарсить RSS rssTools.py 3 - Ошибка вставки новости в таблицу АНАЛИТИКИ dbConnector.py [b_IBlockElement] 4 - Ошибка вставки в таблицу Financial One [b_IBlockElementInSection] 5 - Ошибка поиска новости в таблице АНАЛИТИКИ dbConnector.py [b_IBlockElement]

fomagrssfeedreader's People

Contributors

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