Coder Social home page Coder Social logo

youtubecrawler's Introduction

YouTubeCrawle Wrapper for python

Why This wrapper?

This is wrapper is not limited to videos only it can scrape both channel and videos  seperately ;D 

Have a look below

Help

  • Install Using pip
pip3 install youtubecrawler

Documentation

Initialize Wrapper

For Asyncio:

  • If you are using asyncio or asynced function
from youtubecrawler.synced import crawl

yt=crawl(video_name="xyz)

For Synced

  • i.e Without any async function
from youtubecrawler.crawl import crawl



yt=crawl(video_name="xyz)

You can also use


yt=crawl(video_link=link)

yt=crawl(video_id=video_id)

Wrapper Is Capable of

For Video

Getting Video Views

Getting video tags

Getting Video Description

Getting Video Title

Getting Likes and Dislikes

Getting Upload Time

Getting Uploader Information

For channels Can Scrape Any info about the channel Like

Last Date Joined

Latest Video Details

Latest Community Post

Channel Description

Info about other channels of the video

Subs of the channel ( by name)

Videos

  • Use await .... if you are using asynced one

Gather everything in a single call

video=yt.VideoDetails()

Gather Info Separately

Get Views of the video


veiws=yt.veiws()

Get tags of the video

tags=yt.keyword()

Get video link

link=yt.videolink()

Likes and dislikes of the video

likes=yt.likes_dislikes()[1]
dislikes=yt.likes_dislikes()[2]

Get Upload time

uploadtime=yt.videoUploadTime()

Get Video Title

title=yt.VidTitle()

Get video description

description=yt.description()

Get Uploader Information


uploader=yt.channel()

Get Video Views

views=yt.views()

Get Video Link

videolink=yt.videolink()

Channels

** For Asynced function**

from youtubecrawler.synced import channel
ch=channel(channelname="CarryMinati")

For Non Synced

from youtubecrawler.channel import channel
ch=channel(channelname="CarryMinati")


Other parameters

> ch = channel(channellink=channellink)
> ch = channel(channelid='/channel/UC0IWRLai-BAwci_e9MylNGw')
  • Use await .... if you are using asynced one

Get Subs of the channel Use full with name

subs=ch.subs()

Get Latest Video

subs=ch.latest_video()

Get Latest Community Post

post=ch.latest_community()

Get That user other channels

otherchannels=ch.spareChannels()

Get links of about

aboutlinks=ch.links()

youtubecrawler's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.