Comments (2)
const headers = {
'authorization': `SAPISIDHASH ${SAPISIDHASH}`,
'content-type': 'application/json',
'cookie': cookie,
'x-origin': 'https://studio.youtube.com/',
'user-agent': USER_AGENT,
}
try {
const options = {
method: 'GET',
url: 'https://studio.youtube.com/getAccountSwitcherEndpoint',
headers,
};
const resp = await axios(options);
const rx = new RegExp(/clientCacheKey":.*?"(.*?)"/gm)
const youtube_accounts_ids = [...resp.data.matchAll(rx)].map(e => e[1])
console.log(youtube_accounts_ids)
} catch (error) {
throw Error('error getAccountSwitcherEndpoint' + error)
}
from youtube-studio.
Hello there. Thank you both for contributing. @blueveno if you feel not satisfied with the already provided suggestion, feel free to reopen the issue. Closing.
from youtube-studio.
Related Issues (20)
- Cannot read property 'Symbol(Request internals)' of null HOT 2
- i dont know to how set up HOT 1
- Create a live strem type WEBCAM HOT 1
- Trim Video Length HOT 1
- Option to set comment options. HOT 3
- UnhandledPromiseRejectionWarning: HOT 4
- What are botguardResponse and challenge for ? HOT 3
- How can i generate new sessionToken with new challenge and old botguardResponse?
- how to HOT 2
- Websocket closed when trying to upload large videos HOT 2
- Video Rejected HOT 1
- New method to resolve sessionToken HOT 10
- I cant get sessionToken HOT 3
- Thumbnail and tags support for video upload HOT 1
- Getting 400 Error while uploading video
- Cannot use setEndScreen anymore. It requires sessionToken HOT 3
- How can i get SESSION_TOKEN without entering to youtube studio in python automatically? HOT 4
- I want to know about this code , is this still working (as YouTube changed its interface) or is it now a dead code
- Typescript support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-studio.