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 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')