Skip to content

Commit

Permalink
Adding --resume to fb user-infos
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Apr 10, 2024
1 parent 6a919d7 commit 0735bf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -3323,7 +3323,7 @@ Usage: minet facebook user-infos [-h] [-c COOKIE] [--rcfile RCFILE] [--silent]
[--refresh-per-second REFRESH_PER_SECOND]
[--simple-progress] [--throttle THROTTLE]
[-i INPUT] [--explode EXPLODE] [-s SELECT]
[--total TOTAL] [-o OUTPUT]
[--total TOTAL] [--resume] [-o OUTPUT]
user_url_or_user_url_column
# Minet Facebook User Infos Command
Expand Down Expand Up @@ -3361,6 +3361,8 @@ Optional Arguments:
-o, --output OUTPUT Path to the output file. Will consider `-` as
stdout. If not given, results will also be
printed to stdout.
--resume "Whether to resume from an aborted collection.
Need -o to be set.
--rcfile RCFILE Custom path to a minet configuration file. More
info about this here:
https://github.com/medialab/minet/blob/master/do
Expand Down
3 changes: 3 additions & 0 deletions minet/cli/facebook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
# Logic of the `fb` action.
#
from casanova import RowCountResumer

from minet.cli.argparse import command, ConfigAction

# TODO: lazyloading issue
Expand Down Expand Up @@ -265,6 +267,7 @@
""",
variadic_input={"dummy_column": "user_url", "item_label": "user"},
arguments=[*MOBILE_ARGUMENTS],
resumer=RowCountResumer,
)

FACEBOOK_COMMAND = command(
Expand Down

0 comments on commit 0735bf5

Please sign in to comment.