raj-khare / yt-migrate Goto Github PK
View Code? Open in Web Editor NEWImport all your YouTube subscriptions from one account to another
Home Page: https://raj-khare.github.io/yt-migrate/
Import all your YouTube subscriptions from one account to another
Home Page: https://raj-khare.github.io/yt-migrate/
Error 401: invalid_client
The OAuth client was not found.
I am trying to transfer 228 subscriptions to a new account. I created a fresh gcloud account (i.e. no API calls yet). I was only able to transfer 86 accounts before my quota reached. I then created a new account to see if I could transfer any additional (new quota). However, I am reaching the quota before any subscriptions are transferred.
Method name | Requests | Error %
youtube.subscriptions.insert | 397 | 35.77%
youtube.subscriptions.list | 8 | 12.5%
The app is making 13,387 queries in order to transfer these accounts, or 58 queries per subscription.
According to docs - Subscriptions: insert
Quota impact: A call to this method has a quota cost of 50 units in addition to the costs of the specified resource parts.
Knowing that, we probably need to implement some filtering before inserting subscriptions. Because it appears that inserts are happening on subscriptions that have already been transferred.
badRequest (400) | subscriptionDuplicate | The subscription that you are trying to create already exists.
I have followed the steps to generate a new api key and oauth token.
I have pasted in these new tokens per your instructions.
The program gets to the sign in prompt however it shows this:
https://accounts.google.com/signin/oauth/error?authError=Cg9pbnZhbGlkX3JlcXVlc3QSO1Blcm1pc3Npb24gZGVuaWVkIHRvIGdlbmVyYXRlIGxvZ2luIGhpbnQgZm9yIHRhcmdldCBkb21haW4uIJAD&client_id=441054768889-57ccl03bjfr3mrns5kcas5geusu4jjb2.apps.googleusercontent.com
Hello, I'm in an urgency of migrating my suscriptions from one channel to another, Could that be possible?, I didn't understand last step.
I've set up script and keys with Google Cloud as described.
The app successfully launched, I've managed to login to account and script found 365 subscriptions. Though when I try to login to second account which I want transfer subscribtions to, the auth window open, I logging in in it, but after it is closed in main window I am getting authError
cb=gapi.loaded_0?le=scs:226 GET https://content-youtube.googleapis.com/youtube/v3/subscriptions?order=alphabetical&part=snippet&mine=true&maxResults=50&key=AIzaSyCgJVEo4KllGvzGJ_e8lP0oG_GUWLVhoec 401 vh @ cb=gapi.loaded_0?le=scs:226 h @ cb=gapi.loaded_0?le=scs:226 wh @ cb=gapi.loaded_0?le=scs:227 (anonymous) @ cb=gapi.loaded_0?le=scs:227 d @ cb=gapi.loaded_0?le=scs:166 b @ cb=gapi.loaded_0?le=scs:161
the api is set up in "Testing" mode with both emails from first and second accounts whitelisted.
Hi @raj-khare,
First of all thank you for sharing this project.
I'm trying to transfer my subscriptions (~350) and as you expected i reach quota limit at about 100 requests.
Do you think i can complete the rest of subscriptions in the next days?
Thanks
I created an AWS EC2 instance and "installed" yt-migrate there. I created a DNS record pointing to the IP, so that I can enter eg. http://ytm.example.org/ and get to my yt-migrate copy.
On the OAuth Consent screen, I entered example.org in the list of authorized domains (because ytm.example.org gets shortened to the top private domain; I own the real top private domain).
In the credentials of the OAuth 2.0 client, I added http://ytm.example.org both at Authorized JavaScript origins and Authorized redirect URIs.
Entered the API key and the client ID in main.js. But sign in always fails with "Error: Sign-in failed", no matter what browser I use.
Can you please clarify how to create a minimum set of the OAUTH consent screen and the oauth client?
Is the following okay?
Internal - works only if you've got a G Suite - is that right?
Public - really have to wait 4-6 weeks?
Scopes?
Authorized domains - what do you enter there?
Hello,
I have followed the instruction with creating keys to be able to export/import Subs. But when I authenticate I get this message
Sign in with Google temporarily disabled for this app
and
This app has not been verified yet by Google in order to use Google Sign In.
API key OK
generated API key and Client id OK
I am an IT guy, I somewhat understand what goes on, but I need some pointers.
Whenever I click on 'Choose your old account' I got Permission denied to generate login hint for target domain
, what might be the issue, I have enabled the youtube data api, I have replace key and ID with my own key and ID. Please help thanks.
When I try to transfer a channel with 700 subscribers to another channel it used all of 10000 quotas yet the transfer is just partially completed.
I have done all the steps and I use the google account that I will be transferring my subscription as the google cloud user with the keys and all.
I was now finally able to migrate the majority of subscriptions. I tried again today, and it told me, that 3 out of 4 subs had been transferred and I might be out of quota.
Then I just clicked on "initiate transfer" again, and now it showed 3 out of 8 succeeded? Clicked once more, now 3 out of 12 and then 3 out of 16. I bet, if I'd click again, I'd get 3/20, 3/24, 3/28 and so on.
What's going on there?
Hi,
I have absolutely zero experience in programming but I really need to migrate my YouTube subscriptions. Could you help me with that?
Thanks in advance,
Oliwer.
(I can delete this post later, I just didn't know how to contact you.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.