my.reddit: refactor into module that supports pushshift/gdpr (#179)
* initial pushshift/rexport merge implementation, using id for merging * smarter module deprecation warning using regex * add `RedditBase` from promnesia * `import_source` helper for gracefully handing mixin data sources
This commit is contained in:
parent
b54ec0d7f1
commit
8422c6e420
15 changed files with 374 additions and 58 deletions
|
@ -35,9 +35,9 @@ You simply 'import' your data and get to work with familiar Python types and dat
|
|||
- Here's a short example to give you an idea: "which subreddits I find the most interesting?"
|
||||
|
||||
#+begin_src python
|
||||
import my.reddit
|
||||
import my.reddit.all
|
||||
from collections import Counter
|
||||
return Counter(s.subreddit for s in my.reddit.saved()).most_common(4)
|
||||
return Counter(s.subreddit for s in my.reddit.all.saved()).most_common(4)
|
||||
#+end_src
|
||||
|
||||
| orgmode | 62 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue