PhotoSpread.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Pofapi 作者: cmpunches 项目源码 文件源码
def Main():
    output_path = "lol.html"
    config_file = "config.ini"

    config = POFSession.Config( config_file )

    testSession = POFSession(config)
    testSession.login(config.username, config.password)

    galleryData = list()
    users = testSession.searchUsers(config, 100, online_only=True)
    print("Search complete.")
    for user in users:
        photos = testSession.getPhotos(user)
        galleryDataEntry = UserGalleyDataEntry(user, photos)
        galleryData.append(galleryDataEntry)

    html_doc = generate_html_gallery( galleryData )

    save_gallery_to_file( output_path, html_doc )

    open_gallery( output_path )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号