Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in categories #13

Open
vuillaut opened this issue Sep 15, 2020 · 1 comment
Open

bug in categories #13

vuillaut opened this issue Sep 15, 2020 · 1 comment
Assignees
Labels

Comments

@vuillaut
Copy link

Given the following code and the master version of the library (commit 2a0e00f)

import arxivscraper.arxivscraper as ax
scraper = ax.Scraper(category='stat',
                     date_from='2010-01-01',
                     date_until='2012-02-01',
                     t=10, 
                     filters={'categories':['physics:hep-ex', 'physics:astro-ph'],
                              'abstract':['deep learning']})
output = scraper.scrape()

print(output[0]['categories'])

Returns

cs.lg cs.ai cs.cv cs.ir stat.ml

It seems the categories filter did not work.

@Mahdisadjadi
Copy link
Owner

Mahdisadjadi commented Sep 19, 2020

Thank you for raising the issue. The current implementation of the filter is a logical OR. So if deep learning is in the abstract, it still saves the record even when categories are not among the specified categories. I'll add a note to README.

@Mahdisadjadi Mahdisadjadi self-assigned this Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants