예제 #1
0
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')
예제 #2
0
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')
예제 #3
0
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')
예제 #4
0
def TweetFeaturedHadoopQuestions():
    s = StackExchange()
    questions = s.get_featured_questions(tagged='hadoop',
                                         pagesize=15)
    _tweet('HadoopSO', questions, 'featured',
           'Hadoop', 'StackOverflow')