Commit graph

12 commits

Author SHA1 Message Date
Ethan Dalool
b3db322a78 Rename timesearch directory -> timesearch_modules.
This marks the first in a long series of rename commits.
Hold on to your databases!
2020-01-27 18:32:05 -08:00
Ethan Dalool
bca5addab3 For failed steps, yield fake 0 instead of artificial wait.
Because the caller can impose their own wait between steps
of the generator.
2019-06-25 15:00:38 -07:00
Ethan Dalool
b5160cb6c4 Add some more docstrings here and there. 2018-10-28 22:56:46 -07:00
Ethan Dalool
5b7eb6870f Fix --once livestreams raising a StopIteration. 2018-04-20 23:18:33 -07:00
Ethan Dalool
e6b7ed739b Integrate with Pushshift.io to restore timesearch.
And improve commentaugment.
2018-04-09 19:53:53 -07:00
Ethan Dalool
5eccfb18af Allow a single Livestream instance to work on multiple subs.
-r subreddit1+subreddit2 -u user1+user2 will manage multiple
independent livestream generators and print the results for all.
2018-03-22 17:06:07 -07:00
Ethan Dalool
5d1c2f885d When logging in, reassign the common.r instance. 2018-03-15 19:05:10 -07:00
Ethan Dalool
c185ddaf77 Support usage of filepaths as -r and -u arguments.
Add `tsdb.name_from_path` so that if the user provides a filepath
as the -r or -u option, we can load their database from that
path and also figure out the subreddit / username to fetch the
subreddit / user object properly, without having to add another
cmd arg for specifying a nonstandard path. New constructor argument
fix_name to perform this automatically and return a tuple of
(database, fixed name).
2017-12-13 14:42:56 -08:00
Ethan Dalool
278923a000 Add the NotExclusive exception and common.is_xor. 2017-12-13 14:35:36 -08:00
Ethan Dalool
c87d38a36b Add function generator_printer so it can be used outside.
This way, people who use _as_a_generator can get the same print
statements as the normal version without rewriting it themselves.
2017-12-13 12:48:26 -08:00
Ethan Dalool
60a153fba7 Improve division of labor with _as_generator, add some debugs.
Previously, `livestream` was doing validation and building the
database and then passing it to `_as_a_generator`.
Since that's the only place those things are used, just move them
into there leaving `livestream` looking more simple.
2017-11-21 21:00:02 -08:00
Ethan Dalool
708c774e52 Initial migratory commit from voussoir/reddit. 2017-11-13 19:13:19 -08:00