Skip to content

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

@Jacobzwj

Description

@Jacobzwj

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions