Skip to main content

Web Scraping Library

Project description

###Title With Youtube Scraper you can scrape search results and extract the contents produced by the search result.

###Descrption

  • In youtube scraper if we provide URL for searching MsExcel in google search then it will give us the json data which contains the video title ,video link ,youtbe channel ,video length ,etc.
  • Below you can see the sample JSON data which have been created through scraping using this scraper.

JSON sample data

{
    "Scraper_People_also_watched": [
        {
            "auto": "Technology for Teachers and Students",
            "simple_endpoint_block_style_scope_thumbnail_link": "/watch?v=rwbho0CgEAE",
            "simple_endpoint_style_scope_video": "The Beginner's Guide to Excel - Excel Basics Tutorial",
            "snippet_container_one_line_style_scope_video": [
                {
                    "link": "/watch?v=rwbho0CgEAE",
                    "text": "\n\n\n\n\n\n\nThe Beginner's Guide to Excel - Excel Basics Tutorial\n\n\n\n\n\n\n\n\n\n\n\n\n\nTechnology for Teachers and Students\n\n\n  \n    Technology for Teachers and Students\n  \n\n\n\n\n\n\n\u2022\n\n\n13M views\n4 years ago\n\n\n\n\n\n\n\n"
                },
                {
                    "link": "/user/robobent",
                    "text": "\n\n\n\n\n\nTechnology for Teachers and Students\n\n\n  \n    Technology for Teachers and Students\n  \n\n\n\n\n\n\n"
                },
                {
                    "text": "\n\n\nIf you like this video, here's my entire playlist of Excel tutorials: http://bit.ly/tech4excel Learn the basics of using Microsoft Excel,\u00a0...\n\nIf you like this video, here's my entire playlist of Excel tutorials: http://bit.ly/tech4excel Learn the basics of using Microsoft Excel,\u00a0...\n\n  From the video description\n\n\n"
                },
                {
                    "text": ""
                },
                {
                    "text": ""
                }
            ],
            "style_scope_thumbnail": "21:47",
            "style_scope_video": "CC",
            "style_scope_video_block": [
                {
                    "text": "13M views"
                },
                {
                    "text": "4 years ago"
                }
            ]
        }

Run Scraper

from youtube_search_result_scraper import *
link="https://www.youtube.com/results?search_query=ms+excel"
data=run_youtube_search_result_scraper(link)

How it works?

  • It takes URL of youtube page with a search keyword to scrape the data.
  • It generates the json data which contains the information of the youtube search result.
  • It gives the title, link , a small description of video ,video length etc in the form of json data.

Examples

Below are some of the examples of URLs using which you can scrape:

Queries/ Feedback

If you have some queries or feedback please contact us at following
Telegram
Email

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtube_search_result_scraper-1.0.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file youtube_search_result_scraper-1.0.2.tar.gz.

File metadata

  • Download URL: youtube_search_result_scraper-1.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for youtube_search_result_scraper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0caec913da0e75b6e1f1d6b1d7b7f7c6137a89069d5a9ccd29a7d23924eea616
MD5 ff52e884254246c6b07ca0384722b57b
BLAKE2b-256 baa10e4b6e345d218f19619adacb4adfeeca29dfa5c2db4ddea35ff8e73c239c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page