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

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

Open
Meterwhite opened this issue Jul 19, 2022 · 2 comments

Comments

@Meterwhite
Copy link

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

@shawnlauzon
Copy link

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

@iel-milabs
Copy link

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

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

No branches or pull requests

3 participants