Last active
September 12, 2017 09:50
-
-
Save alexrashed/b0a41a0da52a9e30a20bd7789d4d4479 to your computer and use it in GitHub Desktop.
Notifications on GLS parcel status changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from urlwatch import filters | |
| import json | |
| class JsonFilter(filters.FilterBase): | |
| __kind__ = 'json' | |
| def filter(self, data, subfilter=None): | |
| self._no_subfilters(subfilter) | |
| data = json.loads(data) | |
| return json.dumps(data, sort_keys=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use https://github.com/thp/urlwatch to watch for status changes of your GLS shipping | |
| name: GLS Parcel Status Changes | |
| kind: url | |
| url: https://gls-group.eu/app/service/open/rest/EU/en/rstt001?match=<your_gls_tracking_number> | |
| filter: json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment