📜  python代码示例中的snapchat api

📅  最后修改于: 2022-03-11 14:45:58.448000             🧑  作者: Mango

代码示例1
>>> from snapchat import *
>>> me = SnapChat("sdushantha")
>>> me.check_username()
'sdushantha is already taken!'
>>> # Since the usename is taken, that means it is a valid username
>>> me.get_snapcode(bitmoji=False, size=500)
(..., 'PNG', '500x500')
>>> # The dotted part (...) is the raw data of the image
>>> # You use this data to write it into a file or do whatever you like