Open narcisoyu opened 2 years ago
Thanks, @narcisoyu . You are correct that this code was designed for the v1.1 API.
We've not written ingest code for v2, but it should be straightforward. I'm happy to support you to do this if you're willing to have a go
For anyone who finds this. The "Academic API" is the v2 format.
Ultimately, m3 needs data in the format shown in this example file: https://github.com/euagendas/m3inference/blob/master/test/data.jsonl
We have code to go from the v1.1 API to that format, but do not have code to go from the v2 API output to that format. I'd like to add that but do not have capacity at the moment.
Hi! I'm doing a research project about Twitter analysis.
I fetched user data by Twitter Academic API (v2), and after using
M3Twitter.transform_jsonl(...)
I got the following error:I also run the example data provided in
m3inference/test/twitter_cache/
and the function runs perfectly.Then I double-checked the jsonl file, it looks like the two versions of Twitter API (v1 / v2) returns (slightly) different jsonl files (I suppose the example data were made by v1 API). Details please see: https://developer.twitter.com/en/docs/twitter-api/migrate/data-formats/standard-v1-1-to-v2
I'm not sure if my comment makes sense, maybe you could have a look? Thanks in advance!