metadata_fetch icon indicating copy to clipboard operation
metadata_fetch copied to clipboard

I refer to the ReadMe you provided. I cannot parse the data of Twitter.

Open Meterwhite opened this issue 3 years ago • 2 comments

I refer to the ReadMe you provided. I cannot parse the data of Twitter.Did I do something wrong?

Meterwhite avatar Jul 19 '22 07:07 Meterwhite

I am hitting the same problem here. The Twitter metadata by default doesn't include the required data. However, if I use a UserAgentClient to retrieve the data, it works.

The adjustment is in line 23 of metadata_fetch_base.dart

    final response =
        await http.get(Uri.parse(url), headers: {'User-Agent': 'Googlebot'});

I'll submit a PR

shawnlauzon avatar Aug 03 '22 19:08 shawnlauzon

i think it is still not working even with Googlebot user-agent. any update on this ?

iel-milabs avatar Jan 01 '24 18:01 iel-milabs