sherlock icon indicating copy to clipboard operation
sherlock copied to clipboard

Adding back in youtube possibly?

Open Pabsb opened this issue 4 years ago • 8 comments

  • [x] I'm asking a question regarding Sherlock
  • [x] My question is not a tech support question.

Question

For adding youtube back you would need to change the URL to https://www.youtube.com/user/{} to find the user search if I am not mistaken and it would return back if it exists or not.

Pabsb avatar Dec 02 '21 00:12 Pabsb

We used to have YouTube but the issue is that there is now a popup which asks us to agree to their privacy policies before it actually gives us a response to whether or not the account exists. If we find a way to fix this, YouTube will be added back :)

sdushantha avatar Dec 11 '21 17:12 sdushantha

Maybe Invidious could work?

pistasjis avatar Mar 07 '22 20:03 pistasjis

@Odyssey346 I'm currently quite busy but feel free send a PR :+1:

sdushantha avatar Mar 08 '22 09:03 sdushantha

"YouTube Channel": {
    "errorType": "status_code",
    "request_method": "GET",
    "urlProbe": "https://invidious.slipfox.xyz/c/{}",
    "url": "https://youtube.com/c/{}/",
    "urlMain": "https://www.youtube.com/",
    "username_claimed": "electroboom",
    "username_unclaimed": "noonewouldeverusethis7"
  },
  "YouTube User": {
    "errorType": "status_code",
    "request_method": "GET",
    "urlProbe": "https://invidious.slipfox.xyz/user/{}",
    "url": "https://youtube.com/user/{}/",
    "urlMain": "https://www.youtube.com/",
    "username_claimed": "pewdiepie",
    "username_unclaimed": "noonewouldeverusethis7"
  },

P3nt3st3r123 avatar Oct 11 '22 07:10 P3nt3st3r123

@P3nt3st3r123 feel free to send a PR :)

sdushantha avatar Oct 11 '22 08:10 sdushantha

@sdushantha @P3nt3st3r123 Can I take this up?

everlearner avatar Oct 15 '22 09:10 everlearner

we can bypass thee google agreement by adding this cookie in headers :

"headers": {
      "Cookie": "CONSENT=YES+cb.20210418-17-p0.it+FX+917; "
    }, 

mrsofiane avatar Oct 17 '22 12:10 mrsofiane

Actually! They using the cookies CONSENT=YES+ Backend of invidious https://github.com/iv-org/invidious/blob/221d47212753620076b44d670acc7cfcaba6d151/src/invidious/yt_backend/connection_pool.cr image

=> with CONSENT=YES+ in cookie, we might bypass "consent" popup

P3nt3st3r123 avatar Oct 17 '22 14:10 P3nt3st3r123

YouTube has been added :) https://github.com/sherlock-project/sherlock/blob/5671077de321d34c216b8381c726093aa7ac9c62/sherlock/resources/data.json#L2094-L2114

sdushantha avatar Feb 16 '23 19:02 sdushantha