The repo is open to contributions. Contributions can be made in the form of:
- No-code contributions
- Code contributions. (See Setting up the development environment for instructions on setting up the development environment.)
- Adding new features
- Improving existing features
- Improving the codebase
- Check out sites like Hacker News and Medium for new blogs. Find blogs that are relevant to the bot, which is anything related to programming, possibly popular ones.
- Check out the files in the data/blogs directory. The files are named after the category of the blogs they contain. For example, data/blogs/company_blogs.opml contains the list of company blogs. Check if the blog you found is already present in any of the files.
- If the blog is not present in any of the files, find the RSS feed of the blog by following the steps below:
- Open the blog in a browser.
- Right click on the page and click on
View Page Source
. - Use
Ctrl + F
orCmd + F
(In MacOS) to search forrss
orfeed
. - If you find a link has the word
feed
in it and/or ends with.xml
, copy the link and paste it in a new tab. - If the page that opens contains a list of posts, then you have found the feed. If not, the blog does not have a feed and unfortunately cannot be added to the bot. (You can try contacting the blog owner and asking them to add a feed.)
- Open the file in the data/blogs directory that is relevant to the blog you found. For example, if you found a company blog, open data/blogs/company_blogs.opml.
- Click on the edit button on the top right corner of the file. It looks like a pencil.
- You will see multiple lines like
<outline type="rss" ... />
. Duplicate one of the lines and edit the attributes as follows:title
: The title of the blog.text
: One-line description of the blog. (Optional)xmlUrl
: The URL of the feed you found in step 3.htmlUrl
: The URL of the blog you found in step 1.
- Click on the
Commit changes
button near the top-right corner of the page. Add a commit message likeAdd <blog name>
. You can also add a description describing where you found the blog and why you think it is relevant to the bot. Then click on thePropose changes
button. - A new page will open. Add a title and description for the pull request and click on the
Create pull request
button.
- Install Python 3.9 or higher
- Copy
.env.example
to.env
- Fill out the required tokens in
.env
- Telegram specific can be obtained by creating a bot by following these instructions
- Discord specific can be obtained by creating a bot by following these instructions
- Change the config files in
config/
as required python3 -m venv venv && source venv/bin/activate
pip3 install -r requirements-dev.txt
pre-commit install
Run the commands python3 main.py daily
or python3 main.py weekly
to run the bot in daily or weekly mode respectively.