As far as I can see, there is no ‘dehydrate’ option in twarc2.

I was just about to use the dehydrate option to create my file of tweet ids (on which to use ‘hydrate’) only to see there is no dehydrate option.

twarc does have dehydrate, of course.

I’m sure that I’m simply misunderstanding something and would really appreciate some expert advice.
Thanks
Mike

I think this may be the answer to my own question, i.e. it’s now a plug-in.

https://pypi.org/project/twarc-ids/

I’d still appreciate confirmation from someone more expert than me.

(Also, does the new ‘flatten’ option mean that hydrating a list of tweet ids is redundant?)

Thanks
Mike

1 Like

Yeah that IDs / dehydrate command should really be in the main one, not as a plugin. I was going to move that but didn’t get round to it.

No, flatten turns 1 API request per line into 1 tweet per line, the difference being that each tweet then contains all the expansions inline with each tweet. For example here: Twitter v2 Full API response and expanded tweets · GitHub

Hydrating turns a list of IDs into tweet objects, which are saved as 1 API request per line

Thanks for the clarification, Igor. Really appreciate it.

This is going to be super-useful.

Mike

1 Like