rss module: prettify & reorganize to allow for easily adding extra modules
This commit is contained in:
parent
92cf375480
commit
63d4198fd9
6 changed files with 66 additions and 58 deletions
|
@ -7,10 +7,9 @@ from . import twint
|
|||
from . import archive
|
||||
|
||||
|
||||
from more_itertools import unique_everseen
|
||||
|
||||
|
||||
# TODO move to .common?
|
||||
def merge_tweets(*sources):
|
||||
from more_itertools import unique_everseen
|
||||
yield from unique_everseen(
|
||||
chain(*sources),
|
||||
key=lambda t: t.id_str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue