Code Monkey home page Code Monkey logo

appo's Introduction

appo

Content Alert. Monitoring for Website Changes

Getting Started

$ git clone https://github.com/muhammedikinci/appo
$ cd appo
$ cd AppoAlert
$ dotnet run

Prerequisites

  • Dotnet Core 3.0.0-preview7-27912-14^

References

In AppoAlert.csproj

  • System.Drawing.Common
  • System.Windows.Forms
<ItemGroup>
    <Reference Include="System.Drawing.Common">
        <HintPath>..\..\..\..\..\..\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.0.0-preview7-27912-14\System.Drawing.Common.dll</HintPath>
    </Reference>
    <Reference Include="System.Windows.Forms">
        <HintPath>..\..\..\..\..\..\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.0.0-preview7-27912-14\System.Windows.Forms.dll</HintPath>
    </Reference>
</ItemGroup>

Dependencies

Usage

Search in web content

// search content
>> add-rule sc http://localhost 1000 Happy!
>> start 0

Detect changes

// changes content
>> add-rule cc http://localhost 1000
>> start 0
// All Rules
>> rules

// Remove rule
>> remove-rule 0

// Remove all rules
>> remove-all

Load rules from file.

>>load
>>7 Rules loaded successfully

>>rules

│ RuleID: 0   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

│ RuleID: 1   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

│ RuleID: 2   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

│ RuleID: 3   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

│ RuleID: 4   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

│ RuleID: 5   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

│ RuleID: 6   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

──────────────────────────────────────
Total Rules: 7
Running Now: 0
Idled: 7
──────────────────────────────────────
>>

Save rules and load

>>add-rule cc http://localhost 1000
Success: New rule added. Rule Id 0
>>save
>>Rules saved successfully

>>rules

│ RuleID: 0   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

──────────────────────────────────────
Total Rules: 1
Running Now: 0
Idled: 1
──────────────────────────────────────
>>remove-all
Success: 0 rule is stopped.
Rules removed
>>load
>>1 Rules loaded successfully

>>rules

│ RuleID: 0   │ URL: http://localhost   │ RefreshTime: 1000   │ isRunning: 0   │

──────────────────────────────────────
Total Rules: 1
Running Now: 0
Idled: 1
──────────────────────────────────────
>>

Detect changes with the specified content

>>add-rule cc http://countdowntest.test/ 1000 <div id="defaultCountdown" class="hasCountdown">16 Hours 44 Minutes</div> 
Success: New rule added. Rule Id 0
>>start 0
0 Started!
>>RULE WORKER >> <RULE:0> The specified content was changed or removed.
>>rules

│ RuleID: 0   │ URL: http://countdowntest.test/   │ RefreshTime: 1000   │ isRunning: 0   │

──────────────────────────────────────
Total Rules: 1
Running Now: 0
Idled: 1
──────────────────────────────────────

Commands

Command Name Status
add-rule type url time content OK
load OK
save OK
stop rule_id OK
start rule_id OK
remove-rule rule_id OK
remove-all OK
rules OK
start-all OK
stop-all OK

Features

Rule Action Options

Action Status
Open program NONE YET
Send Mail NONE YET
Print Alert OK
Print message in command prompt/terminal OK

Working On SystemTray

OS Status
Linux NONE YET
Windows NONE YET
MacOs NONE YET

License

This project is licensed under the MIT License - see the LICENSE file for details

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.