mediumbot

所属分类:DeFi
开发工具:Python
文件大小:10KB
下载次数:0
上传日期:2021-10-15 22:58:06
上 传 者sh-1993
说明:  Telegram机器人每天向一个频道发送defi项目博客新闻。
(Telegram bot that sends defi project blog news to a channel on a daily basis.)

文件列表:
LICENSE (1067, 2021-10-16)
run (0, 2021-10-16)
run\pi_run.sh (390, 2021-10-16)
scraping_config.json (1333, 2021-10-16)
src (0, 2021-10-16)
src\main.py (3666, 2021-10-16)
src\mediumcrawler (0, 2021-10-16)
src\mediumcrawler\__init__.py (185, 2021-10-16)
src\mediumcrawler\article.py (1722, 2021-10-16)
src\mediumcrawler\categories.py (857, 2021-10-16)
src\mediumcrawler\crawler.py (3293, 2021-10-16)
src\mediumcrawler\listfilters.py (536, 2021-10-16)
src\mediumcrawler\urls.py (208, 2021-10-16)
src\telegramsender.py (2358, 2021-10-16)

# mediumbot ## Purpose The crypto space is often too fast to keep track of. Never miss the start of a cool farming opportunity or the genesis group of a new project again! Most projects host their blog at [medium](https://medium.com/.com/), so this bot scrapes through the blog posts, filters them for interesting opportunities and sends the results to a telegram group (click [here](https://t.me/joinchat/O5aS5xkp0zI4Zjli) to join). ## Configuration The parameters for the scraping are found in the [scraping config](scraping_config.json): * **daysSincePublishing:** Scrapes articles from these many days ago * **searchTags:** Only articles with these tags are searched * **keywords:** For all articles within the tags, only articles containing at least one of these keywords are recorded * **blacklist:** If there are obvious scam-projects or article spammers, project containing these keywords will not be recorded * **minLikes:** To filter for projects with certain traction, projects with at least this many likes are displayed at the top of the telegram message * **categories:** To divide the blog posts into several categories for readability The parameters for the telegram bot should be saved in a separate private file called bot_config.json in the root folder since especially the bot token should not be shared. The file should have the following format: ```json { "BOT_TOKEN": "telegramBotToken", "CHAT_ID": "telegramChatId" } ``` ## Automation If you want to automate the bot, you can do so e.g. by creating a cronjob for [pi_run.sh](run/pi_run.sh) on a raspberry pi. The pi_run.sh script: * Pulls the latest version of the scraping config from github * Executes the main script and sends it to a telegrambot **Remember to add the bot_config.json file as well as install beautifulsoup4 for python3 and create your [bot](https://core.telegram.org/bots) + chatgroup on telegram!**

近期下载者

相关文件


收藏者