Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for list-tweets #42

Merged
merged 1 commit into from
Oct 19, 2021
Merged

Conversation

travisbrown
Copy link
Owner

By default the list-tweets command for twcc only returns status IDs. This PR adds two additional options (which may be used together).

The --retweets option adds a column with the format <retweeted status ID>;<retweeted user ID>;<retweeted user screen name>. For example from the output for twcc list-tweets --retweets MrAndyNgo:

1392908537018212353,1392891833785757703;16076032;ggreenwald
1392908234265034754,1392905751832764427;566744765;ShelbyTalcott
1392900507090313216,1392900061873401859;28614262;townhallcom
1392506414187249670,1390793185048383490;908044479629799425;NYPDHateCrimes
1392294324948258817,1392281556019032066;695054484083470336;politicalelle
1390846273566113792,1390838871953379328;896731633704947712;TPostMillennial
1390756893052731392,1390736998760009730;1963387334;MiaCathell
1390579853443821572,1390093085367996422;326401304;theCT
1389746317291704322,1389737992126976007;34367582;TimRunsHisMouth
1389083400305201154,1389053818411827200;826261914;ConceptualJames

The --media option adds another column with a ;-separated list of media URLs. Again for twcc list-tweets --media MrAndyNgo:

1450153609325391876,https://twitter.com/SubjectAccesss/status/1450152514200952835/video/1
1450128743964545027,https://twitter.com/PoAmBrotherhood/status/1450125808312283136/video/1
1449915595764477955,https://twitter.com/Heiner4A/status/1449483464596676610/video/1
1449913808659615745,https://twitter.com/oaktreeupheaval/status/1449267641995124739/video/1
1449911442346496002,https://twitter.com/rbb24/status/1449112721522401283/video/1
1449911223403831298,https://twitter.com/ferdinandknapp/status/1449103442685972483/video/1
1449823709791928329,https://twitter.com/snakeandstars/status/1449332094274965511/video/1
1449546300014346240,https://twitter.com/ScooterCasterNY/status/1449469395940544512/video/1
1449033670963122183,https://twitter.com/TomasMorales_iv/status/1449030628628860929/video/1
1448784470371414017,https://twitter.com/esilverman11/status/1448690732357799942/video/1

If the two options are used together, the second column will include retweet info and the third will be media URLs. If neither option is specified, you'll get the old behavior (only status IDs).

@travisbrown travisbrown merged commit 76529e1 into main Oct 19, 2021
@travisbrown travisbrown deleted the topic/extra-list-tweet-info branch October 19, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant