I have searched some code about bitbucket-api (here)
How to download "zip" by using Bitbucket-api and Python on Windows10 ?
I use :
Python 3.5.0
Bitbucket-api 0.5.0 (from pip install bitbucket-api
)
Windows 10
-----update
Do I miss parameter in bb.repository.archive() ?
>>>from bitbucket.bitbucket import Bitbucket
>>>USERNAME = 'CCC'
>>>PASSWORD = 'BBB'
>>>bb = Bitbucket(USERNAME, PASSWORD, repo_name_or_slug="Py-Bitbucket-api")
>>>success, result = bb.repository.get()
>>>print (bb.repository.get())
True{......}
>>>success, archive_path = bb.repository.archive()
>>> print (success, archive_path)
True C:\....\Temp\tmp_zxpa_14
It download some tmp files.(tmp_zxpa_14....)
But it not a zip .
Do I miss some parameter?
BTW
I wandt to download one of file in my repo.
Can Bitbucket-api specify the file to download? How to modify my code?