This PR adds support for searching multiple categories in the fetch_arxiv() function in monitor/main.py. Currently, the function only searches for articles in the cs.AI category. With this PR, we introduce an array of categories that can be searched, allowing for more flexibility in the search query.
Summary of Changes
Added an array of categories at the top of monitor/main.py to store the categories to be searched.
Modified the fetch_arxiv() function to iterate over the array of categories and perform the search for each category.
Appended the results of each search to the articles list, ensuring that all the results are returned by the function.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/multiple-categories-search
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds support for searching multiple categories in the
fetch_arxiv()
function inmonitor/main.py
. Currently, the function only searches for articles in thecs.AI
category. With this PR, we introduce an array of categories that can be searched, allowing for more flexibility in the search query.Summary of Changes
monitor/main.py
to store the categories to be searched.fetch_arxiv()
function to iterate over the array of categories and perform the search for each category.articles
list, ensuring that all the results are returned by the function.This PR addresses Issue #1.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.