scottmconway / shopgoodwill-scripts

A collection of scripts for programmatically interacting with Shopgoodwill
GNU General Public License v3.0
51 stars 17 forks source link

Passing the Search Term to alert_on_new_query_results.py #21

Closed ngisvold closed 1 year ago

ngisvold commented 1 year ago

I could not get this to work for the life of me: alert_on_new_query_results.py -q shoes

Not clear to me in the documentation.

I was able to get saved query to run though! Awesome! Thanks so much!

scottmconway commented 1 year ago

The intent with local queries is to store an "advanced query" JSON (mentioned here) in the config file, and then reference it by name when running alert_on_new_query_results.py. The example config has a saved query named tuscon_pick_up_only, shown here. So if you were using the example config, you'd be able to run alert_on_new_query_results.py -q tuscon_pick_up_only.

Please let me know if there are any specific points that could be made clearer in the readme.

ngisvold commented 1 year ago

Sorry, I was confused. I was trying to pass the actual search term through the command line.