vuetubeapp / vuetube-extractor Goto Github PK
View Code? Open in Web Editor NEWA core API library for VueTube
Home Page: https://vuetube.app
License: MIT License
A core API library for VueTube
Home Page: https://vuetube.app
License: MIT License
Hi there,
It seems like the service worker endpoint (sw.js
) will sometimes fail to return the config data (depending on where/when the extractor is running).
This can be fixed by using /sw.js_data
instead, which doesn't return any js/html, and is likely what provides data to sw.js
.
See this issue for more context.
Can a roadmap be added and a guide be added too to this project (VueTube Extractor). I want to contribute but don't know how this can be integrated and what is expected.
No response
This one is slightly complicated by how Youtube's android/ios API responds. Whereas most other aspects of the API respond in a fairly straightforward manner, the order of the comment and the data for the comments are separated.
For example, given this request
curl --request POST \
--url 'https://www.youtube.com/youtubei/v1/next?key=AIzaSyDCU8hByM-4DrUqRUYnGn-3llEO78bcxq8' \
--header 'Content-Type: application/json' \
--data '{
"context": {
"client": {
"clientName": "ANDROID",
"clientVersion": "17.20",
"hl": "en"
}
},
"continuation": "Eg0SC2RRdzR3OVdnWGNRGAYyJSIRIgtkUXc0dzlXZ1hjUTAAeAJCEGNvbW1lbnRzLXNlY3Rpb24%3D"
}'
The response will be in two parts as follows (parts are cut for readability)
{
"continuationContents": {
"itemSectionContinuation": {
"contents": [
{
"elementRenderer": {
"newElement": {
"childElements": [
{
"type": {
"componentType": {
"model": {
"commentThreadModel": {
"hidePinnedComments": true,
"trackingParams": "CK0REMJ1GI4CIhMIzvLZhsmM_QIVXKFLBR1JegGU",
"hideSeparator": false,
"commentKey": "EhpVZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZyAoKAE%3D",
"sharedKey": "EgAgKygB",
"surfaceKeys": {
"commentSurfaceKey": "Eh1VZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZy8xMiBPKAE%3D",
"toolbarSurfaceKey": "Eh1VZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZy8xMiBGKAE%3D"
},
"pinnedStateKey": "EhpVZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZyBNKAE%3D",
"composerDraftEntityKey": "N/A",
"inlineRepliesKey": "empty_inline_replies"
}
}
}
}
}
]
}
}
}
]
}
},
"frameworkUpdates": {
"entityBatchUpdate": {
"mutations": [
{
"entityKey": "EhpVZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZyAoKAE%3D",
"type": "ENTITY_MUTATION_TYPE_REPLACE",
"payload": {
"commentEntityPayload": {
"key": "EhpVZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZyAoKAE%3D",
"properties": {
"commentId": "UgzarqjaaPC7TbFINNx4AaABAg",
"content": {
"content": "1 BILLION views for Never Gonna Give You Up! Amazing, crazy, wonderful! Rick ♥️"
},
"publishedTime": "1y ago",
"replyLevel": 0,
"authorButtonA11y": "Rick Astley",
"toolbarStateKey": "EhpVZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZyAsKAE%3D",
"translateButtonEntityKey": "EhpVZ3phcnFqYWFQQzdUYkZJTk54NEFhQUJBZyD_ASgB"
},
"author": {
"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
"displayName": "Rick Astley",
"avatarThumbnailUrl": "https://yt3.ggpht.com/BbWaWU-qyR5nfxxXclxsI8zepppYL5x1agIPGfRdXFm5fPEewDsRRWg4x6P6fdKNhj84GoUpUI4=s88-c-k-c0x00ffffff-no-rj",
"isVerified": false,
"isCurrentUser": false,
"isCreator": true,
"channelCommand": {
"innertubeCommand": {
"browseEndpoint": {
"browseId": "UCuAXFkgsw1L7xaCfnd5JJOw",
"canonicalBaseUrl": "/channel/UCuAXFkgsw1L7xaCfnd5JJOw"
}
}
},
"innerBadgeA11y": "Rick Astley, Official Artist Channel",
"isArtist": true
},
"toolbar": {
"likeCountLiked": "1.1M",
"likeCountNotliked": "1.1M",
"replyCount": "500",
"creatorThumbnailUrl": "https://yt3.ggpht.com/BbWaWU-qyR5nfxxXclxsI8zepppYL5x1agIPGfRdXFm5fPEewDsRRWg4x6P6fdKNhj84GoUpUI4=s88-c-k-c0x00ffffff-no-rj",
"likeButtonA11y": "Like this comment along with 1.1M other people",
"engagementToolbarStyle": {
"value": "ENGAGEMENT_TOOLBAR_STYLE_VALUE_DEFAULT"
},
"likeCountA11y": "1.1M likes",
"replyCountA11y": "500 replies"
},
"avatar": {
"image": {
"sources": [
{
"url": "https://yt3.ggpht.com/BbWaWU-qyR5nfxxXclxsI8zepppYL5x1agIPGfRdXFm5fPEewDsRRWg4x6P6fdKNhj84GoUpUI4=s88-c-k-c0x00ffffff-no-rj",
"width": 88,
"height": 88
}
]
},
"accessibilityText": "Rick Astley",
"avatarImageSize": "AVATAR_SIZE_XS",
"endpoint": {
"innertubeCommand": {
"browseEndpoint": {
"browseId": "UCuAXFkgsw1L7xaCfnd5JJOw",
"canonicalBaseUrl": "/channel/UCuAXFkgsw1L7xaCfnd5JJOw"
}
}
}
}
}
}
}
]
}
}
}
Note the commentKey
and entityKey
fields under continuationContents
and frameworkUpdates
respectively. I am not sure how best to parse this, so any input will be appreciated.
Of course, there is the workaround of calling the web version of the API instead, but that will mean the comments in VueTube will not be able to access some app-exclusive features from the Youtube app without some serious workarounds.
This issue tracks the state of core systems for the extractor rewrite (located in the youtube-new directory).
Features both planned and implemented are described in the youtube-new documentation
The requester covers any feature that interacts with remote APIs
For some reason all requester tests fail with github actions. This behavior cannot be replicated on a local environment.
This might be a problem with how GH actions is set up, or it may be something else. Further investigation is warranted.
Tests should pass across all platforms
Tests fail on github only
0.1.0
v14.x
No response
No response
It would appear visitorData has a few complications and that not all randomly generated 11 character string is valid. This results in not so uncommon cases where the home page test fails despite everything else working as expected
home page tests should work all the time
sometimes home page tests fails with error: " No section contents"
No response
This issue will outline the needed features before VueTube Extractor is able to completely replace the current solution employed by VueTube.
This will be updated often. Stay tuned.
Update: Due to the new rewrite, this checklist no longer reflects the actual state of the extractor. However, it will continue to be updated as the rewrite catches up to version 1's feature sets
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.