Git Product home page Git Product logo

company-watcher's Introduction

Competitor Alerter

A free competitor RSS and Alert based on Notion and Google alerts Generate a Feeder RSS config file, sorted by categories to watch your competitors news

NOTION-DATABASE <-> Google Alerts <-> RSS App

A Notion database is used as a source of companies and keywords names to watch for Names and keywords are automatically synced with Google alerts RSS generator Google Alerts RSS urls are collected and merge in a ready to use Feeder config file

Screenshots

Notion source DB Google News Dashboard RSS Generator Dashboard Feeder Screen 1 Feeder Screen 2

Quick start

Init a seed session based on Google Alerts readme

$ docker pull  m07ak/main-company-watcher:latest
$ docker run --env-file ./.env -v [YOUR_LOCAL_PATH_TO_SEED_CONFIG]:[GOOGLE_ALERT_CONFIG] m07ak/main-company-watcher:latest

Installation

$ git clone --recurse-submodules https://github.com/M07ak/company-watcher.git

On ubuntu

Project

$ cd company-watcher
$ apt-get -y install chromium-browser python3-selenium
$ pip install -r requirements.txt

Google Alerts

  • In google-alerts submodule
$ python setup.py install

On VsCode with devcontainer extension

  • Commands:
    • Remote-Containers: Rebuild Container or
    • Remote-Containers: Reopen in Container

With docker

  • First config .env variable following instructions
$ docker pull  m07ak/main-company-watcher:latest
$ docker run --env-file ./.env -v [YOUR_LOCAL_PATH_TO_SEED_CONFIG]:[GOOGLE_ALERT_CONFIG] m07ak/main-company-watcher:latest

Configuration

Environment variables

Copy .env.template into .env and/or .devcontainer/devcontainer.env (if you plan to use Vs Code Devcontainers) Replace placeholder with your values


   NOTION_TOKEN

   NOTION_SOURCE_DATABASE_PAGE_ID

  • A Notion database ID based on the following example: Example

   NOTION_OUTPUT_GOOGLE_NEWS_DASHBOARD_PAGE_ID

  • A Notion void page id. This page will be used to generate a Dashboard to quickly browse Google News
  • This page will be overwritten each time the program will be run
  • Example of dashboard generated with the previously defined source example Dashboard
  • To find a page id, you can use the simple cli in this projet, with your NOTION_TOKEN in env:
    python search_notion_page_id.py  --search "The page name"
    

   NOTION_OUTPUT_RSS_PAGE_ID

  • A Notion void page id. This page will be used to generate a Dashboard to export Feeder config or get raw RSS urls
  • This page will be overwritten each time the program will be run
  • Example of dashboard generated with the previously defined source example Dashboard
  • To find a page id, you can use the simple cli in this projet, with your NOTION_TOKEN in env:
    python search_notion_page_id.py  --search "The page name"
    

   GITHUB_TOKEN

  • A Github personal access token with permission to use Gist Documentation

   FEEDER_GIST_ID

  • A Github Gist unique id to save feeder config file output

   GOOGLE_EMAIL

  • A Google acccount email
  • Even though I've never had a problems, I recommend to use a dedicated Google account, to be sure that in case of problem, your real Google account won't be banned

   GOOGLE_PASSWORD

  • A Google acccount password
  • Even though I've never had a problems, I recommend to use a dedicated Google account, to be sure that in case of problem, your real Google account won't be banned

   GOOGLE_ALERT_CONFIG

  • A local path to save your Google session

Usage

Generate content

  • Run program to populate Notion pages
$ python3 run.py

Rss feeds

  • Export file written in Gist to opml file and import it in Feeder app Play Store F-droid

Build

docker build . --file=dockerfiles/news-feeding-dockerfile -t m07ak/news-feeder-company-watcher:latest
docker build . --file=dockerfiles/main-dockerfile -t m07ak/main-company-watcher:latest

company-watcher's People

Contributors

m07ak avatar

Watchers

 avatar

Forkers

augustgerro

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.