Beispiel #1
0
def main():
    ok = ok_api.OdnoklassnikiRu()
    ok.getDefAuth()

    db = db_connect.get_db_connect()

    #resp, content = ok.getUploadUrl(gid = 52969628500104, count = 2)

    #resp, dis = ok.getPhotos(53985143554283, 53987273343211)

    imgs = [
        'E:\Grive\BigData\etl\smm\ok\image1.jpg',
        'E:\Grive\BigData\etl\smm\ok\image2.jpg'
    ]

    #574248559595,

    db = db_connect.get_db_connect()
    i = 0
    img_b = []
    for x in db.do_query_all(
            'select topic_image_id, theme_id, img from social.topic_images where topic_image_id > 1'
    ):
        img_b.append(x[2])

    resp, dis = ok.postToGroup(52969628500104, 'Пробная тема', img_buf=img_b)

    print resp
    print dis
Beispiel #2
0
def main():
    db = get_db_connect()
    ok = ok_api.OdnoklassnikiRu()
    ok.getDefAuth()

    ok_srv = ok_services.OkServices(ok, db)

    #
    ok_srv.appendMsgUsers()
Beispiel #3
0
def main():
    db = get_db_connect()
    w = OkWalker(db, '89106455257')
    w.login()
    #develop
    w.post_status(
        'Нужен совет опытного юриста? Я решу ваши проблемы! Звоните 8 915 598-92-07'
    )
    sleep(30)
Beispiel #4
0
def main():
    ok = ok_api.OdnoklassnikiRu()
    ok.getDefAuth()

    db = db_connect.get_db_connect()

    ok_srv = ok_services.OkServices(ok, db)

    ok_srv.addNewFriends()
    ok_srv.collectNewInfo()
Beispiel #5
0
def main():
    db = get_db_connect()
    w = OkWalker(db, '89106455257')
    w.login()

    w.load_all_message()