Sunday, July 20, 2014

Teleport, new Andreessen Horowitz startup

By Vasudev Ram

Saw this via a forum:

Teleport is a new startup with co-founders who work or worked at Andreessen Horowitz (a16z.com), a large US VC firm. (Marc Andreessen, who helped create the Netscape browser, is a founder of a16z.com.)

Teleport calls itself a 'search engine for digital nomads.'

About Teleport

Sten Tamkivi, who was a tech leader at Skype, and Balaji Srinivasan, who https://www.counsyl.com/ founded Counsyl, are the founders of Teleport.




- Vasudev Ram - Dancing Bison Enterprises

Contact Page

Moravian countryside

By Vasudev Ram




- Vasudev Ram - Dancing Bison Enterprises

Contact Page



Tuesday, July 8, 2014

Python now most popular intro teaching language at top U.S. univs - CACM

By Vasudev Ram

Just saw this; interesting news for Pythonistas, existing and aspiring:

Python is now the most popular introductory teaching language at top U.S. universities.

The article is on the web site of CACM - Communications of the ACM, which is a journal in which a lot of articles about computing are published.

The Wikipedia page about the ACM says:

[ The Association for Computing Machinery (ACM) is a U.S.-based international learned society for computing. It was founded in 1947 and is the world's largest and most prestigious[1] scientific and educational computing society. It is a not-for-profit professional membership group.[2] Its membership is more than 100,000 as of 2011. Its headquarters are in New York City.
The ACM and the IEEE Computer Society are the primary US umbrella organizations for academic and scholarly interests in computing. Unlike the IEEE, the ACM is solely dedicated to computing. ]

The author of the article is Philip Guo. I had blogged about his web site, Python Tutor, a while ago, here:

Online Python Tutor looks quite interesting.

The image at the top of the post is of Australian black-headed pythons.

Hacker News thread about the CACM article.

- Vasudev Ram - Python training and consulting - Dancing Bison Enterprises

Contact Page

Thursday, June 26, 2014

pafy - Python API for YouTube

By Vasudev Ram


PAFY (Python API For YouTube) is a Python library that does what the name says on the tin - it allows you to access YouTube videos programmatically, get information about them, download them, etc.

Full documentation for Pafy is here.

You can install Pafy with the command: pip install pafy

I tried out Pafy a little, and whatever I tried worked the way the docs said it would.

Here is a simple example of using Pafy to get info about a YouTube video and download it to your machine. I used the video 'Concurrency is not Parallelism' - by Rob Pike, co-inventor of the Go language, in the example. The video is also embedded below:



import pafy

# Concurrency is not parallelism - video URL = "https://www.youtube.com/watch?v=cN_DpYBzKso"
cinp_url = "https://www.youtube.com/watch?v=cN_DpYBzKso"

cinp_video = pafy.new(cinp_url)
cv = cinp_video

print "Info for video 'Concurrency is not Parallelism' by Rob Pike, Commander, Google:"
print 'Title:', cv.title
print 'Length:', cv.length
print 'Duration:', cv.duration
print 'Description:', cv.description

"""
This fragment prints info about the streams available in the video.
streams = cv.streams
for s in streams:
    print(s)
"""

# Get the best stream for the video.
best = cv.getbest()

# Download the best stream.
best.download(quiet=False, filepath=best.title + "." + best.extension)

The Pafy download() method not only downloads the video, it also shows the size downloaded so far as a percentage, the download speed, and the ETA for the download, in real time.

Also check out my earlier post on another YouTube tool in Python:

youtube-dl, a YouTube downloader in Python


- Vasudev Ram - Dancing Bison Enterprises - Python consulting and training

Contact Page