• 3 Posts
  • 21 Comments
Joined 3 months ago
cake
Cake day: July 18th, 2024

help-circle




  • I’ll click on the link you sent me, and start reading carefully, trying to find the answer. Here’s how it went. I am not faking or deliberately trying any wrong things here. I’m just grabbing the most central solution it’s presenting me on any given page, and trying it.

    Here’s the progress:

    or those who come across this after the latest Data API revision (31st January, 2024), they provided the forHandle query parameter to get data of a handle/username. You can refer to this answer for details here: stackoverflow.com/a/78074066/2665606 – Saqib Ahmed Commented Feb 29 at 10:01

    Cool. I click on that question.

    YouTube released a revision on 31st January 2024 to add a forHandle parameter in the channel list API that does exactly what OP asks.

    You can call the channel list API with forHandle to get the channel ID and the upload playlist for that user/handle that you can subsequently use to fetch the videos.

    GET https://www.googleapis.com/youtube/v3/channels

    Query parameters:

    forHandle=FolkartTr OR @FolkartTr OR %40FolkartTr (this allows the ‘@’ sign as well as URL encoding of it) key=<your API key> part=contentDetails

    Cool.

    $ wget -O - https://www.googleapis.com/youtube/v3/channels\?forHandle=Lindybeige
    --2024-10-01 01:19:52--  https://www.googleapis.com/youtube/v3/channels?forHandle=Lindybeige
    Resolving www.googleapis.com (www.googleapis.com)... 2a00:1450:4009:822::200a, 2a00:1450:4009:826::200a, 2a00:1450:4009:823::200a, ...
    Connecting to www.googleapis.com (www.googleapis.com)|2a00:1450:4009:822::200a|:443... connected.
    HTTP request sent, awaiting response... 403 Forbidden
    2024-10-01 01:19:52 ERROR 403: Forbidden.
    

    Oh. I need an API key. Okay, that one’s useless.

    I read another answer.

    If I understood correctly, your problem is that you can’t do anything from such a c/ channel id with the Channels: list of the YouTube Data API v3. If you’re just looking for the channel id linked to this id then because as YouTube Data API v3 doesn’t work for this, I would recommend you to use my open-source YouTube operational API, indeed by requesting https://yt.lemnoslife.com/channels?cId=FolkartTr you’ll receive a JSON with id equals to the channel id linked to the provided cId value.

    That means nothing to me.

    I hit back. We’re back at the original page you linked me to:

    To obtain the channel id you can view the source code of the channel page and find either data-channel-external-id=“UCjXfkj5iapKHJrhYfAF9ZGg” or “externalId”:“UCjXfkj5iapKHJrhYfAF9ZGg”.

    UCjXfkj5iapKHJrhYfAF9ZGg will be the channel ID you are looking for.

    Already covered. It doesn’t work.

    An easy answer is, your YouTube Channel ID is UC + {YOUR_ACCOUNT_ID}. To be sure of your YouTube Channel ID or your YouTube account ID, access the advanced settings at your settings page

    And if you want to know the YouTube Channel ID for any channel, you could use the solution @mjlescano gave.

    https://www.googleapis.com/youtube/v3/channels?key={YOUR_API_KEY}&forUsername={USER_NAME}&part=id If this could be of any help, some user marked it was solved in another topic right here.

    Are you getting sick of reading these? So am I! I want to remind that DDG gave me the answer at the top of the page, as a tool that would solve the problem for me.

    At any channel page with “user” url for example http://www.youtube.com/user/klauskkpm, without API call, from YouTube UI, click a video of the channel (in its “VIDEOS” tab) and click the channel name on the video. Then you can get to the page with its “channel” url for example https://www.youtube.com/channel/UCfjTOrCPnAblTngWAzpnlMA.

    Edit:

    Above is not working any more. But we can open Developer Tools (cmd + option + I) and try to find the URL there. Search by channel_id for some channels, it will show you, but NOT for all the channels.

    By the way, if this is your own channel – you can go here https://developers.google.com/youtube/v3/docs/channels/list and make request with part snippet and mine true.

    Oh, I found this answer. Thank you, just works!

    Edit:

    Just in case you need UC channel id of any channel by the “YouTube handle”, you can also use ‘API Explorer’ on the right of this page https://developers.google.com/youtube/v3/docs/channels/list and enter forHandle with your ‘API key’ (let me share screenshots below)

    Sure, let’s try the Cmd+Option+I solution.

    Hey! Look at that. www.youtube.com wants to use my microphone. I can:

    • Allow while visiting this site
    • Allow this time
    • Never allow

    I think we’re done here. For all I know I would have been able to find it in the network tab of developer tools while searching for the channel, but I think the point is made. I didn’t say that the answer didn’t exist anywhere on SO, I said that the things I was trying because either Google or SO were telling me they were the answer were not working.

    Edit: I reread your comment and got confused. For me, the screenshot you’re showing has 26 points, and shows up below all of the answers that I showed above, which have 259, 79, 32, and 30 points respectively. How many points does it have on your page, to show as the second highest answer? I didn’t deliberately stop reading right before the answer. I absolutely made a sincere effort to find the answer on that page, documenting my progress as I went.



  • When smartphones were new, I started dating a girl who would roll over in bed first thing in the morning, pick up her phone, and start scrolling. I thought it was incredibly weird. Why not life? Why computer? Now, I do the same thing, and it’s normal. Or rather it was until a couple of weeks ago.

    The scary thing is that I’ll start to get antsy as the one-hour mark comes near. I’ll keep checking the clock for when I can pick it up and get my stimulation. So far it is working most days, though, and it feels like it improves the rest of the day for me.
















  • St. Michael’s on his mountain in the sea-roads of the north
    (Don John of Austria is girt and going forth.)
    Where the grey seas glitter and the sharp tides shift
    And the sea folk labour and the red sails lift.
    He shakes his lance of iron and he claps his wings of stone;
    The noise is gone through Normandy; the noise is gone alone;
    The North is full of tangled things and texts and aching eyes
    And dead is all the innocence of anger and surprise,
    And Christian killeth Christian in a narrow dusty room,
    And Christian dreadeth Christ that hath a newer face of doom,
    And Christian hateth Mary that God kissed in Galilee,
    But Don John of Austria is riding to the sea.
    Don John calling through the blast and the eclipse
    Crying with the trumpet, with the trumpet of his lips,
    Trumpet that sayeth ha!
    Domino gloria!
    Don John of Austria
    Is shouting to the ships.

    King Philip’s in his closet with the Fleece about his neck
    (Don John of Austria is armed upon the deck.)
    The walls are hung with velvet that is black and soft as sin,
    And little dwarfs creep out of it and little dwarfs creep in.
    He holds a crystal phial that has colours like the moon,
    He touches, and it tingles, and he trembles very soon,
    And his face is as a fungus of a leprous white and grey
    Like plants in the high houses that are shuttered from the day,
    And death is in the phial, and the end of noble work,
    But Don John of Austria has fired upon the Turk.
    Don John’s hunting, and his hounds have bayed—
    Booms away past Italy the rumour of his raid
    Gun upon gun, ha! ha!
    Gun upon gun, hurrah!
    Don John of Austria
    Has loosed the cannonade.

    The Pope was in his chapel before day or battle broke,
    (Don John of Austria is hidden in the smoke.)
    The hidden room in man’s house where God sits all the year,
    The secret window whence the world looks small and very dear.
    He sees as in a mirror on the monstrous twilight sea
    The crescent of his cruel ships whose name is mystery;
    They fling great shadows foe-wards, making Cross and Castle dark,
    They veil the plumèd lions on the galleys of St. Mark;
    And above the ships are palaces of brown, black-bearded chiefs,
    And below the ships are prisons, where with multitudinous griefs,
    Christian captives sick and sunless, all a labouring race repines
    Like a race in sunken cities, like a nation in the mines.
    They are lost like slaves that swat, and in the skies of morning hung
    The stair-ways of the tallest gods when tyranny was young.
    They are countless, voiceless, hopeless as those fallen or fleeing on
    Before the high Kings’ horses in the granite of Babylon.
    And many a one grows witless in his quiet room in hell
    Where a yellow face looks inward through the lattice of his cell,
    And he finds his God forgotten, and he seeks no more a sign—
    (But Don John of Austria has burst the battle-line!)
    Don John pounding from the slaughter-painted poop,
    Purpling all the ocean like a bloody pirate’s sloop,
    Scarlet running over on the silvers and the golds,
    Breaking of the hatches up and bursting of the holds,
    Thronging of the thousands up that labour under sea
    White for bliss and blind for sun and stunned for liberty.
    Vivat Hispania!
    Domino Gloria!
    Don John of Austria
    Has set his people free!

    Cervantes on his galley sets the sword back in the sheath
    (Don John of Austria rides homeward with a wreath.)
    And he sees across a weary land a straggling road in Spain,
    Up which a lean and foolish knight forever rides in vain,
    And he smiles, but not as Sultans smile, and settles back the blade…
    (But Don John of Austria rides home from the Crusade.)