|
DownloadsFAQ
Downloads FAQ
Downloads FAQ
Google Code no longer offers downloads functionality for new projects. Existing projects with downloads will see no visible changes until January 14, 2014 and will no longer have the ability to create new downloads starting on January 15, 2014. All existing downloads in these projects will continue to be accessible for the foreseeable future. How do I move my project’s downloads to Google Drive?
Can I use my existing Google Drive account?Google Drive gives 15 GB of free storage to every user. You can use your existing Google Drive account to host downloads provided you have sufficient unused free storage in this account. What if I need more than 15 GB for my project's downloads?Yes, you can purchase additional storage for your Google Drive account. Can I label files on Google Drive?Google Drive doesn't currently support labels. Depending on the use of labels in your project, you may be able to simulate this functionality by embedding labels in file names or creating separate sub-folders for labels. Can I see the download count for downloads on Google Drive?Unfortunately Google Drive doesn't support this feature at present. Is there a way to automate the copying of these files?You can use this Python script to automate the copying of files in your project’s current downloads: import sys
import feedparser
import urllib
import urlparse
def download_from_atom(feed_url):
d = feedparser.parse(feed_url)
links = [l.href for e in d.entries for l in e.links if l.rel == 'direct']
for link in links:
print("Downloading %s" % link)
filename = urlparse.urlsplit(link).path.split("/")[-1]
urllib.urlretrieve(link, filename)
def main(args):
if len(args) != 2:
print("download_from_atom.py <atom feed>")
return
download_from_atom(args[1])
if __name__ == '__main__':
main(sys.argv)To use this script:
By default, this script only copies a maximum of 20 files belonging to active downloads in your project. If you want to copy more than 20 files, use the max-results query parameter. E.g., the following invocation will copy up to 100 files from a project’s active downloads python download_from_atom.py <atom feed url>?max-results=100 |