aaronpk / XRay

X-Ray returns structured data from any URL
https://xray.p3k.app
MIT License
90 stars 15 forks source link

Provided HTML not being used with twitter.com URLs #114

Closed barnabywalters closed 6 months ago

barnabywalters commented 1 year ago

When trying to parse a twitter.com URL with custom HTML (in this case from granary.io to add mf2 markup), the provided HTML is ignored and the twitter fetcher is used, despite no API keys being provided to the XRay object.

$xray->parse('https://twitter.com/example/statuses/123456789', '<div class="h-entry">•••');

It’s a bit of an edge case, but it’d be nice if XRay would always parse from the provided HTML if it’s present, especially if the fetcher which takes over (in this case twitter) isn’t able to make API requests due to no twitter API keys being provided.

aaronpk commented 6 months ago

dropping twitter support in the next release