muhammedikinci / appo

Content Alert. Detect changes on sites. Add and remove tasks simply with CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • CommandLineParser@2.6.0
  • Newtonsoft.Json@12.0.1

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

About

Content Alert. Detect changes on sites. Add and remove tasks simply with CLI.

License:MIT License


Languages

Language:C# 100.0%