Pinboard-Recipe
Pinboard-Recipe copied to clipboard
How to get tags from user input?
Hi! I'm interested in only fetching articles that contain a particular tag. It's easy to add the tags
parameter into the code, but how could one pass this argument from the command line?
The eventual command might then be something like ebook-convert Pinboard.recipe "tags-from-user-input" --title=Title
.
I know it should be something fairly simple with str(sys.argv[1]
, but considering the recipes are further handled by ebook-convert, I'm confused and, being a non-programmer, haven't got it to work thus far.
Thanks for any help/workaround, and for providing this recipe in the first place!
Good question. To be honest, I only ever use these recipes through the Calibre GUI, so I'm not sure whether ebook-convert
can pass command line arguments to the recipe script.
If you only use a few tags, one workaround might just be to make a few copies of the recipe, each hard-coded to retrieve a different tag.
Yes, that's exactly what I did for now, but looks like I need more flexibility, considering I also use Pinboard to collect notes/links for my running projects. I gues I'll ask the people in mobileread.com forums for some advice. Thanks very much for your reply!
2013/12/30 Jim [email protected]
Good question. To be honest, I only ever use these recipes through the Calibre GUI, so I'm not sure whether ebook-convert can pass command line arguments to the recipe script.
If you only use a few tags, one workaround might just be to make a few copies of the recipe, each hard-coded to retrieve a different tag.
— Reply to this email directly or view it on GitHubhttps://github.com/anoved/Pinboard-Recipe/issues/2#issuecomment-31328058 .
No prob. If you find a solution, please do come back and share it!
Sure, no problem!
2013/12/30 Jim [email protected]
No prob. If you find a solution, please do come back and share it!
— Reply to this email directly or view it on GitHubhttps://github.com/anoved/Pinboard-Recipe/issues/2#issuecomment-31354243 .