#NEWLINE# @ staticmethod #NEWLINE# def get_open_questions( topic ) : #NEWLINE# #INDENT# url = ( ( 'http://www.quora.com/' + topic ) + '/questions' ) #NEWLINE# html_doc = urllib2 . urlopen ( url ) #NEWLINE# soup = BeautifulSoup ( html_doc . read ( ) ) #NEWLINE# raw_data = str ( soup . find_all ( 'div' , class_ = 'QuestionText' ) ) #NEWLINE# soup = BeautifulSoup ( raw_data ) #NEWLINE# title = soup . get_text ( ) #NEWLINE# dict = { #NEWLINE# #INDENT# 'question_titles' : title , #NEWLINE# 'topic' : topic , #NEWLINE# #UNINDENT# } #NEWLINE# return dict