{"_id":"@aanton/telegram-webpage-monitor-bot","_rev":"5-ec22d39b686f1a94fae7bd9a316e40db","name":"@aanton/telegram-webpage-monitor-bot","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@aanton/telegram-webpage-monitor-bot","version":"1.0.0","description":"Telegram bot that monitors a block/snippet of a webpage","main":"index.js","keywords":["telegram","bot","monitor","webpage","snippet"],"author":{"name":"Armando Antón","url":"https://github.com/aanton"},"license":"ISC","dependencies":{"axios":"^0.18.0"},"gitHead":"2b2cdf94c26f2f3ec8a7e75b5cfdf3a7b44bedec","_id":"@aanton/telegram-webpage-monitor-bot@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-c+SFUTWZviBqpV2NavCDaf941Ft3tjlFBOCLiiBXVoeVcvzJ03O2n1ftq6xPZqK5eZvFj5/RZy9g4IktEGDocQ==","shasum":"2b275b9679b48e5e2f464284c8f8f8cc5b548790","tarball":"https://registry.npmjs.org/@aanton/telegram-webpage-monitor-bot/-/telegram-webpage-monitor-bot-1.0.0.tgz","fileCount":3,"unpackedSize":3721,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2dsYCRA9TVsSAnZWagAA0I0P/iTc3Iat3433rzAmu9e1\nmVj9M/s6tf3ucvyinrXJ7KKbFcWoI27t/3acNFKR9Al0hOM7ItCG1gdhOVje\n0shQGAtm6gSAwxxYZ6rLWRDLD1MEEBFSj8/rZ5OtFYuCbcCvKXcG4eLxZ+NW\n3T9Mzhb0giojzhlp2P45BqgHOv8CL/JC7rn77cP8Kbxg39OaXex+sOLgJsqR\nw/9vSc7CCBg9ZcmU0R0ZmqZ0VxCs0764sR27qqB7nHkLg8d3JGvuvyHi2Rk1\nXSCvU3Frdw6dj9F/4S5aSRZN/U46TTAUqegKY5sHtNQChDl1y+SxtnMVVlT4\nsPGBDAB9wCKD9AT4q3WpHuxdfTR3W9uN8Y4vzKWVikaaCrR3oLkya87FoWY7\npM2RfDZdQZO8V+mA8zwGCU2DlpVr9RccERS3AhcEGXMpBVDidJOUa36hW/vH\nM9jjX1eEOd/VTYIbu/+flNNPIndT5KE814RnZvxdxH1CYshemj033tBHegWP\nA2EzI0ebWLDfCOKPPu3P3F+XW1jTeM+Beulm5hLvGm6P4EYNiVTUVfAFQYTM\nZHdCvIcpJE/NtHwhuoEe7SVMiPxVwdZEwaFdpojbwgjn2GbdrkWrIpLw14p7\nIoOZfXNvvGgU771I0sMx+9+yPhIqA0KQPVdjwqOiAV/cecUuIo9EQ4YLiJxe\nqxQU\r\n=Zqnx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ5+i7rc1Kzolj3y4uUxE2jH+uHBsrWDS9wuS2DXV8hAIhAJsthta6L89UBsFO+236I570/USkHQUtUuFCxHKSzmf9"}]},"maintainers":[{"name":"aanton","email":"aanton@gmail.com"}],"_npmUser":{"name":"aanton","email":"aanton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telegram-webpage-monitor-bot_1.0.0_1557781271866_0.21117279645987685"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aanton/telegram-webpage-monitor-bot","version":"1.0.1","description":"Telegram bot that monitors a block/snippet of a webpage","repository":{"type":"git","url":"git+https://github.com/aanton/telegram-webpage-monitor-bot.git"},"main":"index.js","keywords":["telegram","bot","monitor","webpage","snippet"],"author":{"name":"Armando Antón","url":"https://github.com/aanton"},"license":"ISC","dependencies":{"axios":"^0.18.0"},"gitHead":"5768ae01dd328c02fd8e04c504e65bde3c645ec3","bugs":{"url":"https://github.com/aanton/telegram-webpage-monitor-bot/issues"},"homepage":"https://github.com/aanton/telegram-webpage-monitor-bot#readme","_id":"@aanton/telegram-webpage-monitor-bot@1.0.1","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-h4nYFFCvB1SVO7PdYhuJQLNTkgpS830+x76CnSBVr4v4VcxzFzk7AUBontk+btSJ6Gt3HM0/qJjbUwaY1WaT2Q==","shasum":"2a82288d8eccd3ea163b1003f5c5f732e2725fc0","tarball":"https://registry.npmjs.org/@aanton/telegram-webpage-monitor-bot/-/telegram-webpage-monitor-bot-1.0.1.tgz","fileCount":3,"unpackedSize":3974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2ezCCRA9TVsSAnZWagAAEkwP/iWx8lWI4KSyNofMd+tl\nfwhCnxTGCpVafeTjqwSwGPC4XkVFLyEbYSD0eHpzbMt5/wCTFdx+dkmvqhYG\nEFpL+ZX4gU1uB1qF7O6RqXjysYYvR3JhbmaAf3AJiolll8KdiRWUuI7Pxuhz\nIKNMYnZ/hElZLO7xByopKwthNU59H573/W3P3JRUXXbd/QdURpF67nlDgrKl\nPOF5zZD9Ulvkz95Eory8kqYynacTNAZ5S+C554p48kt4p5GdOLebHQ0sRBLr\nH/INuFyINS7oQe3JYa3j2cQK5wkhmdHIkLSr0qZcEq5Nx2tfTV4n1D/a0Dnx\nt0IIpSgCKAVaymoW1JnCQZZTsE4frOR2F7yCbRN0Ndfa8mKAM+mzaqZOlXvP\nSl9oBsx+blCy29mJb2SdF0hX8DylTLly81fFvbwC3AZJNTMAFdm4sKrhzVLa\n2CP4HuLfOMbI3XMi1XEH4sUlq3a5VhcVybHr2MU2VOhl9y2+MkEFCEh7ym4B\n4FvPeyt+wMWJuQgcd6df5mOq5dKc8mWbPn9Pq8gwgrnB9vkzCHZK6XMCy5fY\n08fs0zXorA/dAQEFo1a1VSpfFSxa6748AvSge48dXjgGqGKiXy/i53lgfbUZ\nYBEkf7LTzK2Sv3456yf+ttZuCi51FUIU723vS5u93QSb0ULFgN0TcQD3Sz6Y\na0Cn\r\n=Vgu+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsrfqDc80wEfUehhTf2kv6fWD+m4/6kYGkRRQgwiyaFAiEA4k/0vBssis2Pt9BeTgrYwBIY7vjPdBWmNNxcCW0hBuI="}]},"maintainers":[{"name":"aanton","email":"aanton@gmail.com"}],"_npmUser":{"name":"aanton","email":"aanton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telegram-webpage-monitor-bot_1.0.1_1557785793766_0.8523634868228611"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aanton/telegram-webpage-monitor-bot","version":"1.0.2","description":"Telegram bot that monitors a block/snippet of a webpage","repository":{"type":"git","url":"git+https://github.com/aanton/telegram-webpage-monitor-bot.git"},"main":"index.js","keywords":["telegram","bot","monitor","webpage","snippet"],"author":{"name":"Armando Antón","url":"https://github.com/aanton"},"license":"ISC","dependencies":{"axios":"^0.18.0"},"gitHead":"38250cfdee938adc67503ccc8ace67a61e3d94be","bugs":{"url":"https://github.com/aanton/telegram-webpage-monitor-bot/issues"},"homepage":"https://github.com/aanton/telegram-webpage-monitor-bot#readme","_id":"@aanton/telegram-webpage-monitor-bot@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"aanton","email":"aanton@gmail.com"},"dist":{"integrity":"sha512-ov1mL9hRgAyWXqyhyEX7E2vbX1EZTbmqwdiF+x3It7pYWWKM3pk+6U0Mi21MD+Vd+pZ7u3wL/6/Lg6Es58eu4Q==","shasum":"e73fc232cdb7c1d358ff3953b7ed2d8d87c63210","tarball":"https://registry.npmjs.org/@aanton/telegram-webpage-monitor-bot/-/telegram-webpage-monitor-bot-1.0.2.tgz","fileCount":3,"unpackedSize":3879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2mBgCRA9TVsSAnZWagAAX24P/jkTcjeBKs/QGvfOTTcn\nD1H9MNm1GhNfJWzQQngSd9N6J3URsDrQAZIpBZuJzhWejTMcm8zixZigPPFi\nLQnAsOEj4lY6L51wzXsuFIV3R7EgxmaADYM5l3Meitrygg8fTjC0pppLS71c\nN/RqUs63DztxxB5KPrTxoNdnIcFr/AeFfNWr9BBONkvaW8vdvtHFsBrCeijj\nV3SPjDNzanhojbp9rgSESje7oj2jMsD1Vj3gRS+DkoiudZDCr/l6Y3y6iIaO\noUrRFxgawVUuJ6g70TZIzTv7f2/QF/An3HnbXj3pmRkZMzkNiX5diIWwPA7b\nKK0ob/hDOW6pGzV9nw2LY44OKUnEuNC0bauaKF2NMznpJkCLzeiJAlshCwqa\n7R0gBFKTva0Qepoo7LvB3nk0tDNcQIm/OYCNGnNkaLNAM+Jhq/J9b8Y4PK7j\nHg+1kMWcp70RJa7JvrWNCGJ5rIDfvE2xVuxwIvSu++vL7lJwyqdAsvID+vOe\no+eErfpnBMUq6fn92Hmn+2hj7q+6iYBdet2oM1b6S1iMvlG0U1wi3FNeUNq4\nvOzfTsWIPY0tPMtP/nFZcLab8RizzrQJbJV82ZXBznUPDCx4yiy/JJWFBjaf\nwFbRU8qlWqBk6Ax0m/gbOgCXxnJgBNDTIyLq4x+03ObTqVIcadC5+0mPeJHf\n3d9B\r\n=w4Yv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFcGvUVdR1TBk7+BkzdR87KzxzfVKc5Bi0hoGj/mdUxjAiEAiIdPNemUc3vRLfEPc8MSSjIfksiHK6tsFWJqQJIBp2k="}]},"maintainers":[{"name":"aanton","email":"aanton@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telegram-webpage-monitor-bot_1.0.2_1557815391746_0.5973811954768014"},"_hasShrinkwrap":false},"1.0.3":{"name":"@aanton/telegram-webpage-monitor-bot","version":"1.0.3","description":"Telegram bot that monitors a block/snippet of a webpage","repository":{"type":"git","url":"git+https://github.com/aanton/telegram-webpage-monitor-bot.git"},"main":"index.js","keywords":["telegram","bot","monitor","webpage","snippet"],"author":{"name":"Armando Antón","url":"https://github.com/aanton"},"license":"ISC","dependencies":{"axios":"^0.18.1"},"gitHead":"c2d0c0553d4e0ca4815724d59b4bbe01ebd276e5","bugs":{"url":"https://github.com/aanton/telegram-webpage-monitor-bot/issues"},"homepage":"https://github.com/aanton/telegram-webpage-monitor-bot#readme","_id":"@aanton/telegram-webpage-monitor-bot@1.0.3","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9FZXfMgo1yj2xL/LbF4XnlqBKvTP5ukE3yLE/ZEGj893WpnyM/ebcRQS5lcfnVGwBf0mgnZw0NMO38lvFD6yFw==","shasum":"fde20e01fa5fec5cb66f770083046b6d6074c78a","tarball":"https://registry.npmjs.org/@aanton/telegram-webpage-monitor-bot/-/telegram-webpage-monitor-bot-1.0.3.tgz","fileCount":3,"unpackedSize":3879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjplfCRA9TVsSAnZWagAAa20P+wXDwA1uBc7frZJGJFUO\nmnmanyrzk7cVJM4h/8XXuwC62rU0sUtIYdchw/z71RHXD6Lpwzn0zgwbJGxa\n58dCUqTR7WU1GyrPEghktjHeo3pJrl0Bu8GdIuSaU1ToPNIeJb1esH4DHZe7\nSeXu3r71In1mhPG7NJlrda4BXqtQllQ8hbWZ869D0EKPCHAixCL9+k2luxRP\nxCOkbkIn1KdG/2aMbjhDEd8OdvdccQP5H3a2fvAyRtTDIsgZO1Z4rpfQBgSm\noCjIqejGyCaYRMQzB+8EW0a8WNx7fRQTBI32z5QTZuyVKZto8B4j3q7O65PW\nXZQ4Z3uporVhCUm8uAAIcd0v7KooMDAacpdlw82qAkFLnkRb64yOsBzcR66a\nRTr5LDGtpppmgf5JFVQJG4I7hZulmupYCiwXL/ybZWLpcDL3NpyMhvxbOl09\n8yrv43oBHbu55+X7krnZW6CCStoUajIZY/KvIRWX4cAjCIBWA28e4bNYWEPO\nPMbnUlFdEzGefRzQQ/Aqgzw8v+Q787N2kArh6EG3LFChk77kbVueAUqsGSe+\nH54oaSRDi1JhzLWSSy5P9e9ST5cmBtcGQvpBx3JDxwdjGNHY2f2mAjF7ujGx\nNBtC/DALUFBfABkM2SHqB1ECV0OVgd3Z7G9+vVcLnUmo77Z9Nzt2LIsU+no3\ngeK1\r\n=DGx6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyK6uaDB7378RzVOe2HJnneFytGvZyT74kr4IX5sHgDAiEAob9Wm4ibU9TgPqKcdk4sxxTZTWW+HmMi0jbJuw29NCU="}]},"maintainers":[{"name":"aanton","email":"aanton@gmail.com"}],"_npmUser":{"name":"aanton","email":"aanton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telegram-webpage-monitor-bot_1.0.3_1603180894794_0.6570811678310136"},"_hasShrinkwrap":false},"1.0.4":{"name":"@aanton/telegram-webpage-monitor-bot","version":"1.0.4","description":"Telegram bot that monitors a block/snippet of a webpage","repository":{"type":"git","url":"git+https://github.com/aanton/telegram-webpage-monitor-bot.git"},"main":"index.js","keywords":["telegram","bot","monitor","webpage","snippet"],"author":{"name":"Armando Antón","url":"https://github.com/aanton"},"license":"ISC","dependencies":{"axios":"^0.24.0"},"gitHead":"f267427706153a5e4c012be71b15926de8345b51","bugs":{"url":"https://github.com/aanton/telegram-webpage-monitor-bot/issues"},"homepage":"https://github.com/aanton/telegram-webpage-monitor-bot#readme","_id":"@aanton/telegram-webpage-monitor-bot@1.0.4","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-j+AqRXB9SoNZMKc7Jb0i8IDoPMeO69BCVzfu2P8BApNNCQwnTE+X+MszaSdBOP6aZyUIlWQC+qO+st8mi6Wxig==","shasum":"e9bbf65fc1263a1725216fdf91bce4741c4f379a","tarball":"https://registry.npmjs.org/@aanton/telegram-webpage-monitor-bot/-/telegram-webpage-monitor-bot-1.0.4.tgz","fileCount":3,"unpackedSize":3879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr4enCRA9TVsSAnZWagAAr0oP/386QiYB1J8NbguZi1+7\nf6+d2Q8yJP9pdo37eg9XyJlwohcqt94rNIlqGkYzNykE0En4FjqYGYQ6Gq+2\ngmMCWXc3NFIqNo4qNyyHcaJM4C084LAKozMFQTlxaqruVqRR1iSsj1AjvKFG\nKyS2UteMX+u3bv1ys8cohJnxdAqf1jQuYGT6Wt7G4DmOVP/lfDrurija78fE\n4Ef2UiRezsrQt4zsuygEL/Gco8rgwxKRtkviKdGoQ+8XdyUzOjhahBYAfGlG\npEh4CU2V+Bq9AD9EwY2Ty3nnBywPxob6XzKJpyNlJs8QjPSJIWmDZ8mjiRGz\nVKUwMLh5ynHoa/NNuENqGGk3OYGCMsJ2LCVShldIyMaFeU630fWWN8ek/7+7\nniQcY0XcziA6EXjxHi/QW2JYPN7xz3D+OTMuKRr+Y2NZAWogLN5hb/WH3RIf\nNYbLGSDdC7m96in8NGhgd6g1+O5vLY4PMffnVNxSgbh/eAw46NXHe+sxj4au\n9o8cclCzC6HKH3grGALlMO884uAD+xByXXhugxTsX2w3zQKmdPXbedN+LTaa\nOUtEuFA8GybY5CxQNHKAAaCZ4z+Mmouic3oNEgEY6l5Z5yORfcVvkd3tGvTa\nhRP6S1iPpI40UxdNtRJFdzuPKaFvhEWpjvDejClXqCuhVMMaSB7lPG0vFSAD\nIJuT\r\n=+/Nz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARVq9Qjqity5MoRxNgjuQYTd9ZnTI9sJd75jGOhGidWAiBVKm4aHW0t2icjJhgktQZhvAqRWG/kfRZS59pg0AilDA=="}]},"_npmUser":{"name":"aanton","email":"aanton@gmail.com"},"directories":{},"maintainers":[{"name":"aanton","email":"aanton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telegram-webpage-monitor-bot_1.0.4_1638893479711_0.861127281163101"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-13T21:01:11.818Z","1.0.0":"2019-05-13T21:01:12.069Z","modified":"2022-04-04T10:55:11.694Z","1.0.1":"2019-05-13T22:16:34.017Z","1.0.2":"2019-05-14T06:29:51.873Z","1.0.3":"2020-10-20T08:01:34.908Z","1.0.4":"2021-12-07T16:11:19.877Z"},"maintainers":[{"name":"aanton","email":"aanton@gmail.com"}],"description":"Telegram bot that monitors a block/snippet of a webpage","keywords":["telegram","bot","monitor","webpage","snippet"],"author":{"name":"Armando Antón","url":"https://github.com/aanton"},"license":"ISC","readme":"# @aanton/telegram-webpage-monitor-bot\n\nMonitors a webpage detecting when a custom block/snippet has changed & sends a message to a Telegram chat using a Telegram bot.\n\n## Installation\n\n```bash\nnpm install @aanton/telegram-webpage-monitor-bot\n```\n\n## Usage\n\n```js\nconst path = require('path');\nconst cheerio = require('cheerio');\nconst monitorWebpage = require('@aanton/telegram-webpage-monitor-bot');\n\nmonitorWebpage({\n  name: 'first-link-monitor',\n  url: 'https://mydomain.com',\n  storage: path.resolve(__dirname + '/.storage'),\n  telegramBotToken: ...,\n  telegramChatId: ...,\n  telegramSendMessageOptions: {},\n  extractSnippet: function(html) {\n    const $ = cheerio.load(html);\n    return $(\"a[href*='www.mydomain.com']\").first().attr(\"href\");\n})\n  .then(JSON.stringify)\n  .then(console.log)\n  .catch(console.log);\n```\n\n### Configuration parameters\n\n* `name`: Unique name, used in logs\n* `url`: Webpage URL to monitor\n* `url`: Local storage to save the block/snippet extracted from the webpage using the `extractSnippet` function\n* `telegramBotToken`: Telegram bot token\n  * Create a [Telegram bot](https://core.telegram.org/bots) using [BotFather](https://telegram.me/botfather)\n* `telegramChatId`: Telegram chat identifier\n  * It can be a private conversation with the bot (you must send previously a message to the bot), a group conversation (the bot must be a member) or a channel conversation (the bot must be an administrator member)\n  * The chat identifier can be obtained using [@ChannelIdBot](https://t.me/ChannelIdBot)\n* `telegramSendMessageOptions`: Optional [telegram message options](https://core.telegram.org/bots/api#sendmessage)\n  * Use it for enable HTML/Markdown format, disable links preview or disable notifications\n* `extractSnippet`: Function that extracts the snippet from the webpage HTML\n","readmeFilename":"README.md","homepage":"https://github.com/aanton/telegram-webpage-monitor-bot#readme","repository":{"type":"git","url":"git+https://github.com/aanton/telegram-webpage-monitor-bot.git"},"bugs":{"url":"https://github.com/aanton/telegram-webpage-monitor-bot/issues"}}