You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It took me a while to debug to see the problem.
The following example code on the front page will fail if we have any sub-folder in the main folder, we can check the key furl to check whether it's a folder or a file prior to call download function on that link to avoid script fail (the exception "Link is dead" is not meaningful in this case).
from get_fshare import FSAPI
URL = 'https://www.fshare.vn/folder/THFVWDY4YT'
bot = FSAPI(email="Your email", password="Your password")
bot.login()
sillicon_valley_ss1 = bot.get_folder_urls(URL)
for episode in sillicon_valley_ss1:
# Should check whether it's a file or folder, sometime we have sub-folder.
print(episode['name'], bot.download("https://www.fshare.vn/file/{}".format(episode['linkcode'])))
The text was updated successfully, but these errors were encountered:
It took me a while to debug to see the problem.
The following example code on the front page will fail if we have any sub-folder in the main folder, we can check the key furl to check whether it's a folder or a file prior to call download function on that link to avoid script fail (the exception "Link is dead" is not meaningful in this case).
I include the check in my script: https://github.com/haindvn/FShareDownloader
(fdownload.py line #137)
The text was updated successfully, but these errors were encountered: