Skip to content

alonmln/ILNewsDiff

This branch is 63 commits ahead of xuv/NYTdiff:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

20c0227 · Jun 8, 2022

History

72 Commits
Dec 12, 2021
Feb 3, 2021
Sep 5, 2016
Feb 1, 2021
Sep 5, 2016
Jun 8, 2022
Feb 3, 2021
Dec 24, 2021
Feb 24, 2021
Jan 30, 2021
Jan 6, 2022
Feb 9, 2022
Feb 24, 2021
Jan 31, 2021
Dec 12, 2021
Feb 22, 2022
Jun 8, 2022
Dec 13, 2021
Feb 26, 2021
Feb 3, 2021
Feb 27, 2021

Repository files navigation

ILNewsDiff

See feed here: https://twitter.com/ILNewsDiff

Interested in contributing to this project? Send us a direct message on twitter

A Twitter bot that keeps track of changes made in Israeli news websites.

Currently tracking:

How does it work?

Once a minute the code queries news feeds and compares them to a previous state saved in a local SQLite DB.

If an interesting change is found, a tweet is published with the diff.

The first tweet of a diff is always the article itself as a link, and all the subsequent changes are chained by order.

What is interesting?

A change that

  • Has happened and is not there because of a delay in the RSS feed. The code queries the article's page to look for the change.
  • Is not comprised of only whitespace or punctuation.
  • Has a difference of more than one letter (Though adding/removing a question mark '?' is interesting)

Installation

  • The phantomjs binary needs to be installed, and the path updated in the run_diff.sh file.
  • pip install -r requirements.txt

Twitter keys are needed.

Credits

For contributing to this repo:

Based on @j-e-d's code for the Twitter bot @nyt_diff.
RSS feed fetching added for @xuv's Twitter bot @lesoir_diff

About

Code for the ILNewsDiff Twitter account

Resources

Stars

Watchers

Forks

Languages

  • Python 92.9%
  • CSS 3.5%
  • HTML 2.4%
  • Shell 1.2%