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

How to filter combinations of keywords instead of just single keywords? (about combine_folder_multiprocess.py) #16

Open
Jacobzwj opened this issue Dec 18, 2023 · 0 comments

Comments

@Jacobzwj
Copy link

Thank you for sharing your code. It's been incredibly helpful in extracting the specific Reddit data I need!

However, I've encountered an issue. I can successfully use the command:
python3 combine_folder_multiprocess.py reddit --field title --value cold,fever --output pushshift
to fetch submissions with titles containing either "cold" or "fever".

But, when I try to search for specific keyword combinations like "common cold" or "fever symptoms" using:
python3 combine_folder_multiprocess.py reddit --field title --value common cold,fever symptoms --output pushshift
I encounter the following error:

combine_folder_multiprocess.py: error: unrecognized arguments: cold,fever symptoms

Could you advise on how to filter for phrases (some words with space) instead of single words?

Looking forward to your guidance, and thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant