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

filter does not working #16

Open
wanghaisheng opened this issue Apr 25, 2022 · 1 comment
Open

filter does not working #16

wanghaisheng opened this issue Apr 25, 2022 · 1 comment
Labels

Comments

@wanghaisheng
Copy link

        print('k',k,from_day,until_day,filters)
        //k ComputerScience 2022-04-25 2022-04-25 {'categories': ['cs', 'eess'], 'abstract': ['healthcare', 'medical', 'hospital']}
        scraper = arxivscraper.Scraper(category=k, date_from=from_day,date_until=until_day,filters=filters)
        tmp = scraper.scrape()
        print(tmp)
@Mahdisadjadi
Copy link
Owner

Not sure if I understood your code correctly, but this worked for me:

import arxivscraper.arxivscraper as ax
import pandas as pd

scraper = ax.Scraper(
    category="cs",
    date_from="2022-04-25",
    date_until="2022-04-26",
    t=10,
    filters={"abstract": ["healthcare", "medical", "hospital"]},
)
output = scraper.scrape()
cols = ("id", "title", "categories", "abstract", "doi", "created", "updated", "authors")
df = pd.DataFrame(output, columns=cols)

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