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 TweetFeaturedJavaScriptQuestions(): s = StackExchange() todate = int(time.time()) fromdate = todate - 28800 # last 8-hours questions = s.get_featured_questions(tagged='javascript', fromdate=fromdate, todate=todate, pagesize=15) _tweet('SOJavaScript', questions, 'featured', 'JavaScript', 'StackOverflow')
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 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')
def TweetFeaturedCSharpQuestions(): s = StackExchange() todate = int(time.time()) fromdate = todate - 86400 # last 24-hours questions = s.get_featured_questions(tagged='c#', fromdate=fromdate, todate=todate, pagesize=15) _tweet('CSharpSO', questions, 'featured', 'CSharp', 'StackOverflow')
def TweetFeaturedCppQuestions(): s = StackExchange() # NOTE: for now, do not provide fromdate and todate # for featured question on 'C++'; Low traffic # todate = int(time.time()) # fromdate = todate - 86400 # last 24-hours questions = s.get_featured_questions(tagged='c++', # fromdate=fromdate, # todate=todate, pagesize=15) _tweet('CppSO', questions, 'featured', 'Cpp', 'StackOverflow')
def TweetFeaturedHadoopQuestions(): s = StackExchange() questions = s.get_featured_questions(tagged='hadoop', pagesize=15) _tweet('HadoopSO', questions, 'featured', 'Hadoop', 'StackOverflow')