Introduction: Pi - the News Reader

Picture of Pi - the News Reader

This is a project based on Raspberry Pi. It is a 'bot' which goes to the internet to fetch news headlines and reads them for you. It also uses a voice recognition system to interact with you.

Step 1: See the Project in Action

Step 2: Complete Tutorial

News Site -

Voicecommand Tutorials: (for indentation of the for loops, look at my code in the video)


import subprocess
import requests

from bs4 import BeautifulSoup

import textwrap

head = 'mpg123 -q ' tail = ' &'

url = ""

r = requests.get(url)

soup = BeautifulSoup(r.content)

g_data = soup.find_all("div",{"class":"nstory_intro"})

for item in g_data:

shorts = textwrap.wrap(item.text, 100)

for sentence in shorts:

sendthis = sentence.join(['"', '"'])

print(head + sendthis + tail)

print subprocess.check_output (head + sendthis + tail, shell=True)


About This Instructable




More by alpesh.vitha:Pi - The news readerSling Shot Controller for Angry BirdsPedal Powered Mobile Charger
Add instructable to: