snscrape icon indicating copy to clipboard operation
snscrape copied to clipboard

DATETIME description in help

Open Potracheno opened this issue 3 years ago • 3 comments

Should be useful description for people like me who found it in the code because of lack explanation in a help.

PS Thanks for great tool. Would be great if you give a brief description about how to use it as a library.

Potracheno avatar Dec 07 '22 19:12 Potracheno

That's a very esoteric explanation, it'll just look like gibberish to new people in my opinion.

TheTechRobo avatar Dec 07 '22 20:12 TheTechRobo

Yeah, this is probably only helpful to people who have worked with strftime or an equivalent function before. But I guess it's as close as it gets to a common and compact date format ... format. Perhaps this is better suited for the (soon™-coming) documentation instead? It's also incomplete, by the way; --since accepts Unix timestamps as well.

JustAnotherArchivist avatar Dec 08 '22 07:12 JustAnotherArchivist

I've copy-pasted it exactly from 172 line in _cli.py. I guess we all strive to develop and use better software with at least clear explained help. I use it this way snscrape --since $(date -d '-1 day' '+%Y-%m-%d'). I didn't know another way if not to find time format in the code. It's seems much more "gibberish to new people in my opinion." then any help, isn't it ?

Potracheno avatar Dec 08 '22 08:12 Potracheno