-
-
Notifications
You must be signed in to change notification settings - Fork 315
Open
Description
Twitter is now a fully logged-on website: you cannot access a tweet without an account.
So, the extractor will try to request the twitter.com/xxx/status/xxx
but will follow location on /home (with the login screen) and will attempt to call the oembed API with /home
URI.
The only fix that I found to disable this behavior is to disable the "follow redirection" behavior on cURL.
$client = new CurlClient();
$client->setSettings([
'follow_location' => false
]);
$embed = new Embed(new Crawler($client));
We may use the cookie to inject the auth_token
cookie, but I'm not sure the token won't change after a few hours/days.
This may impact other embeds, so if you have a better solution, please let me know!
Metadata
Metadata
Assignees
Labels
No labels