YouTube clipper

Here is a simple clipper intended to be used with YouTube to pull basic video info

{
"schemaVersion": 3,
"fieldMappings": [
    {
        "fieldName": "Video Title",
        "fieldType": "singleLineText",
        "defaultValue": {
            "type": "cssSelector",
            "opts": {
                "cssSelector": "h1.title"
            }
        }
    },
    {
        "fieldName": "Video Description",
        "fieldType": "multilineText",
        "defaultValue": {
            "type": "cssSelector",
            "opts": {
                "cssSelector": "#description > yt-formatted-string"
            }
        }
    },
    {
        "fieldName": "Video URL",
        "fieldType": "singleLineText",
        "defaultValue": {
            "type": "pageUrl",
            "opts": null
        }
    },
    {
        "fieldName": "Video Duration",
        "fieldType": "singleLineText",
        "defaultValue": {
            "type": "cssSelector",
            "opts": {
                "cssSelector": "#movie_player > div.ytp-chrome-bottom > div.ytp-chrome-controls > div.ytp-left-controls > div > span.ytp-time-duration"
            }
        }
    },
    {
        "fieldName": "View Count",
        "fieldType": "singleLineText",
        "defaultValue": {
            "type": "cssSelector",
            "opts": {
                "cssSelector": "#count > yt-view-count-renderer > span.view-count.style-scope.yt-view-count-renderer"
            }
        }
    }
]

}

2 Likes