Youtube bot using Python!

Wouldn’t it be nice to get a video list along with the number of views and link to that video so that you need not visit each and every video of the conference you missed? Well, I have attempted to create such a script inspired by Miguel’s article.

I have used Python’s `requests`, `BeautifulSoup` and `multiprocessing` libraries to make this work.

The idea is simple, select a Python conference from `pyvideo.org` using `requests` module. Parse the request using `BeautifulSoup` and get all the video links of that conference. Visit each and every youtube link and collect stats like, ‘Title’, ‘URL’, and ‘Number of views’ and present it to the user.

The code can be found here. Hope you enjoy it!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s