Skip to content

Commit 6d0e529

Browse files
committed
use kebab-case instead of snake_case for the cli
1 parent 2e4015f commit 6d0e529

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/twarc2_en_us.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,17 @@ conversation:
229229

230230
## Likes
231231

232-
Twarc supports the two approaches that the Twitter API exposes for collecting likes via the `liked_tweets` and `liking_users` commands.
232+
Twarc supports the two approaches that the Twitter API exposes for collecting likes via the `liked-tweets` and `liking-users` commands.
233233

234-
The `liked_tweets` command returns the tweets that have been liked by a specific account. The account is specified by the user ID of that account, in the following example is the account of Twitter's founder:
234+
The `liked-tweets` command returns the tweets that have been liked by a specific account. The account is specified by the user ID of that account, in the following example is the account of Twitter's founder:
235235

236-
twarc2 liked_tweets 12 jacks_likes.jsonl
236+
twarc2 liked-tweets 12 jacks-likes.jsonl
237237

238238
In this case the output file contains all of the likes of publicly accessible tweets. Note that the order of likes is not guaranteed by the API, but is probably reverse chronological, or most recent likes by that account first. The underlying tweet objects contain no information about when the tweet was liked.
239239

240-
The `liking_users` command returns the user profiles of the accounts that have liked a specific tweet (specified by the ID of the tweet):
240+
The `liking-users` command returns the user profiles of the accounts that have liked a specific tweet (specified by the ID of the tweet):
241241

242-
twarc2 liking_users 1460417326130421765 liking_users.jsonl
242+
twarc2 liking-users 1460417326130421765 liking-users.jsonl
243243

244244
In this example the output file contains all of the user profiles of the publicly accessible accounts that have liked that specific tweet. Note that the order of profiles is not guaranteed by the API, but is probably reverse chronological, or the profile of the most recent like for that account first. The underlying profile objects contain no information about when the tweet was liked.
245245

@@ -249,7 +249,7 @@ Note that likes of tweets that are not publicly accessible, or likes by accounts
249249

250250
You can retrieve the user profiles of publicly accessible accounts that have retweeted a specific tweet, using the `retweeted_by` command and the ID of the tweet as an identifier. For example:
251251

252-
twarc2 retweeted_by 1460417326130421765 retweeting_users.jsonl
252+
twarc2 retweeted-by 1460417326130421765 retweeting-users.jsonl
253253

254254
Unfortunately this only returns the user profiles (presumably in reverse chronological order) of the retweeters of that tweet - this means that important information, like when the tweet was retweeted is not present in the returned object.
255255

twarc/command2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def following(T, user, outfile, limit, max_results, hide_progress):
876876
break
877877

878878

879-
@twarc2.command("liking_users")
879+
@twarc2.command("liking-users")
880880
@click.option(
881881
"--limit",
882882
default=0,
@@ -927,7 +927,7 @@ def liking_users(T, tweet_id, outfile, limit, max_results, hide_progress):
927927
break
928928

929929

930-
@twarc2.command("retweeted_by")
930+
@twarc2.command("retweeted-by")
931931
@click.option(
932932
"--limit",
933933
default=0,
@@ -978,7 +978,7 @@ def retweeted_by(T, tweet_id, outfile, limit, max_results, hide_progress):
978978
break
979979

980980

981-
@twarc2.command("liked_tweets")
981+
@twarc2.command("liked-tweets")
982982
@click.option(
983983
"--limit",
984984
default=0,

0 commit comments

Comments
 (0)