Code Monkey home page Code Monkey logo

sleuth's Introduction

Sleuth

Sleuth is a utility which watches the Fortnite News Feed for changes then shares it on Twitter.

As seen on @FNMasterCom...

Requirements

A Fortnite-API API Key is required to obtain the News Feed data, Twitter API credentials are required to Tweet the image.

Usage

Open configuration_example.json in your preferred text editor, fill the configurable values. Once finished, save and rename the file to configuration.json.

  • language: Set the language for the News Feed data (Supported Languages)
  • twitter: Set enabled to false if you wish for the news to not be Tweeted
  • ignoredTitles: Array of News Feed titles which should not be Tweeted
  • ignoredBodies: Array of News Feed bodies which should not be Tweeted
  • hashtags: Array of strings which should be converted to hashtags

Sleuth is designed to be ran using a scheduler, such as cron.

python newsfeed.py

Credits

sleuth's People

Contributors

ethanc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pirica

sleuth's Issues

Weird error...

Don't know what this is, wondering of you could help.

Traceback (most recent call last):
  File "newsfeed.py", line 174, in <module>
    Sleuth.main(Sleuth)
  File "newsfeed.py", line 34, in main
    diff = Sleuth.Diff(self, news)
  File "newsfeed.py", line 82, in Diff
    oldNews = json.loads(Utility.ReadFile(self, "news", "json", "data/"))
  File "C:\Users\Samue\AppData\Local\Programs\Python\Python37-32\lib\json\__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "C:\Users\Samue\AppData\Local\Programs\Python\Python37-32\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\Samue\AppData\Local\Programs\Python\Python37-32\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

is this normal?

Sleuth - Fortnite News Feed watcher
https://github.com/EthanC/Sleuth

[12:10:55] Loaded configuration
[12:10:56] Retrieved the current Fortnite News Feed
[12:10:56] No changes found in News Feed
and no img saved or posted on twitter

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.