Code Monkey home page Code Monkey logo

Comments (7)

coffeewithdonut avatar coffeewithdonut commented on August 20, 2024 1

@fusir @coffeewithdonut We're continuing effort to fix this, can you check now and feedback us if it's working better?

No issues anymore thank you

from sdk.

Kikobeats avatar Kikobeats commented on August 20, 2024

Hello, thanks for reaching. Microlink is using a headless browser under the hood. I think this is happening because we are sending too much traffic to YouTube and they shadow ban us for a while.

It needs to be investigated, thanks for reporting, I will report back after a better understanding of what's happening.

from sdk.

Kikobeats avatar Kikobeats commented on August 20, 2024

@fusir is it working better these days? We implemented changes 🙂

from sdk.

coffeewithdonut avatar coffeewithdonut commented on August 20, 2024

@Kikobeats I'm still seeing issues with this; it seems to pull video titles/descriptions sporadically. Otherwise, defaults back to – YouTube / Share your videos with friends, family, and the world

from sdk.

Kikobeats avatar Kikobeats commented on August 20, 2024

@coffeewithdonut did you try is passing prerender parameter is working better?

In that way it's going to ensure to use a headless browser:
https://microlink.io/docs/api/parameters/prerender

from sdk.

coffeewithdonut avatar coffeewithdonut commented on August 20, 2024

@Kikobeats Yes, I've had more success with prerender set to false for YouTube links because Google seems to intercept the headless browser requests. It also seems like there is a cache layer that prerender false fetches from, popular videos tend to work, or videos I've fetched previously, but new videos initially return responses as below.

Here are some example responses

Prerender false:

{
  lang: null,
  author: null,
  title: 'watch?v=Y25LDO6OLzQ',
  publisher: 'YouTube',
  image: {
    url: 'https://img.youtube.com/vi/Y25LDO6OLzQ/maxresdefault.jpg',
    type: 'jpg',
    size: 44575,
    height: 720,
    width: 1280,
    size_pretty: '44.6 kB'
  },
  date: '2024-04-22T01:05:06.000Z',
  description: null,
  url: 'https://www.youtube.com/watch?v=Y25LDO6OLzQ',
  logo: {
    url: 'https://www.youtube.com/favicon.ico',
    type: 'ico',
    size: 1150,
    height: 16,
    width: 16,
    size_pretty: '1.15 kB'
  }
}

Prerender true:

{
  lang: null,
  author: null,
  title: 'index?continue=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DY25LDO6OLzQ&q=EgSG0aUUGIvulrEGIjAJjJxx2b-Y1a2_sb7ANF15KR3j8TezYD32d6H29gmpBoNh0pu6xWEuejAFvHcRpfsyAXJaAUM',
  publisher: 'YouTube',
  image: null,
  date: '2024-04-22T01:04:33.000Z',
  video: null,
  description: null,
  url: 'https://www.google.com/sorry/index?continue=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DY25LDO6OLzQ&q=EgSG0aUUGIvulrEGIjAJjJxx2b-Y1a2_sb7ANF15KR3j8TezYD32d6H29gmpBoNh0pu6xWEuejAFvHcRpfsyAXJaAUM',
  logo: {
    url: 'https://www.google.com/favicon.ico',
    type: 'ico',
    size: 5430,
    height: 16,
    width: 16,
    size_pretty: '5.43 kB'
  }
}

from sdk.

Kikobeats avatar Kikobeats commented on August 20, 2024

@fusir @coffeewithdonut We're continuing effort to fix this, can you check now and feedback us if it's working better?

from sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.