def TweetUnAnsweredJavaScriptQuestions(): s = StackExchange() todate = int(time.time()) fromdate = todate - 1200 # last 1-hour questions = s.get_noanswered_questions(tagged='javascript', fromdate=fromdate, todate=todate, pagesize=15) _tweet('SOJavaScript', questions, 'unanswered', 'JavaScript', 'StackOverflow')
def TweetUnAnsweredCppQuestions(): s = StackExchange() todate = int(time.time()) fromdate = todate - 7200 # last 2-hours questions = s.get_noanswered_questions(tagged='c++', fromdate=fromdate, todate=todate, pagesize=15) _tweet('CppSO', questions, 'unanswered', 'Cpp', 'StackOverflow')
def TweetUnAnsweredHadoopQuestions(): s = StackExchange() todate = int(time.time()) fromdate = todate - 21600 # last 6-hours questions = s.get_noanswered_questions(tagged='hadoop', fromdate=fromdate, todate=todate, pagesize=15) _tweet('HadoopSO', questions, 'unanswered', 'Hadoop', 'StackOverflow')