Skip to main content

Save all files from an external page

Project description

https://travis-ci.org/collective/redturtle.filesretriever.svg?branch=master Coveralls Latest Version Egg Status https://img.shields.io/pypi/pyversions/redturtle.filesretriever.svg?style=plastic:alt:Supported-PythonVersions License

RedTurtle Files Retriever

Utility view to retrieve massive files from a remote page.

View

There is an helper view (/files-retriever) that you can call on every Plone folderish context.

Files will be saved in that context.

Restapi endpoints

There are two endpoints:

  • @files-list (POST): accept an url and some CSS selectors, and returns a list of found links in the page.

  • @save-files (POST): accept a list of urls/titles and will download resources and save them in the current context.

Translations

This product has been translated into

  • English

  • Italian

Installation

Install redturtle.filesretriever by adding it to your buildout:

[buildout]

...

eggs =
    redturtle.filesretriever

and then running bin/buildout

Contribute

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.0.3 (2025-03-31)

  • Handle wrong ssl certs also when download data. [cekk]

1.0.2 (2025-03-31)

  • Add custom Cipher adapter for requests session to allow download files from servers with old/wrong ssl certs. [cekk]

1.0.1 (2024-06-18)

  • Better handle edge-cases in content-type ad disposition headers. [cekk]

1.0.0 (2021-12-27)

  • Initial release. [cekk]

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page