You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+33-16Lines changed: 33 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,17 @@ Welcome to Price-Tracker. Hope you could save money with this little app. This p
6
6
7
7
Given an `xpath` and a link, one could extract price information from the website. Although `xpath` and the link could become invalid at anytime, we could still hope for the best and track down the trend for the price of interest.
8
8
9
+
## Requirements
10
+
11
+
Starting from v0.3.0, this project relies on an external API call [pushover](https://pushover.net/) which pushes notifications directly to your phones or desktops. The app is about 5USD which is worth the money in my view as you get neat messages right there on your phone. Also, you could build as many as app with their service if you like.
12
+
13
+
After setting up your pushover account, you need to create an app for this application. Then,
14
+
you got two tokens, one for your user account and one for the app. That is it.
15
+
16
+
For the each record in datastore, you could overwrite the user and the device key such that
17
+
your messages are only delivered to specific persons or devices. By default, the app would send
18
+
messages to all devices in your account.
19
+
9
20
## Build
10
21
11
22
Dependencies:
@@ -19,12 +30,6 @@ In the project directory, run
19
30
go build
20
31
```
21
32
22
-
## Important fix in chromedp
23
-
24
-
In `vendor/github.com/chromedp/chromedp/runner/runner.go:248`, change to `if r.cmd != nil && r.cmd.Process != nil {` as chromium did not shutdown properly and there is no harm sending signalterm anyway.
25
-
26
-
Comment out `vendor/github.com/chromedp/chromedp/runner/runner.go:11`.
27
-
28
33
## Setup and Serve
29
34
30
35
Once you have compiled this project, a binary executable named `pricetracker` should be sitting in your directory. There are some important environment variables that you want to setup before running it.
@@ -36,26 +41,38 @@ To setup environment variables, do
0 commit comments