Last change
on this file since 10 was 10, checked in by cheese, 7 years ago |
#1 handling exception: etag or modified is/are missed
|
File size:
363 bytes
|
Rev | Line | |
---|
[4] | 1 | #-*- coding: utf-8 -*-
|
---|
| 2 | from feed2telegram import Feed2Telegram
|
---|
| 3 |
|
---|
| 4 | url = 'http://hikarinoakariost.info/feed'
|
---|
| 5 | token = '' # @hikarinoakariost_feeder_bot
|
---|
[9] | 6 | chat_id = ''
|
---|
[4] | 7 |
|
---|
| 8 | Feed2Telegram(url,
|
---|
| 9 | token,
|
---|
[9] | 10 | chat_id,
|
---|
[10] | 11 | lambda entry: entry['link'],
|
---|
[7] | 12 | callback_get_entries=lambda entries: reversed(entries),
|
---|
[6] | 13 | continue_on_error=True,
|
---|
[4] | 14 | ).start()
|
---|
| 15 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.