Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track changes #5

Open
xamgore opened this issue Aug 15, 2018 · 0 comments
Open

Track changes #5

xamgore opened this issue Aug 15, 2018 · 0 comments

Comments

@xamgore
Copy link
Owner

xamgore commented Aug 15, 2018

Sometimes people post news and change them in time (like, 1 hour, 1 day). It is important to update instant view previews too.

Grab RSS feed, go through items:

  • if the item is new:
    1. send link to telegram
    2. save messages' ids
    3. save text of the item's text
  • if the item is old:
    1. compute hash
    2. check with stored hash
      • if same: do nothing
      • else: update telegram messages and resave hash

Links must have the following format:

https://mmcs.sfedu.ru/...?rhash=...&h={item text hash}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant