Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joemcmahon/wetransfer-slurp

Fetches WeTransfer emails from an IMAP server and downloads the linked files
https://github.com/joemcmahon/wetransfer-slurp

Last synced: 11 days ago
JSON representation

Fetches WeTransfer emails from an IMAP server and downloads the linked files

Awesome Lists containing this project

README

        

# wetransfer-slurp

Downloads WeTransfer mails from a GMail account, extracts WeTransfer links, and downloads them.
This script is set up to be configured via environment variables:
- USERNAME
- PASSWORD

It writes to `/tmp`.

## "GMail isn't letting me log in!"

This is because GMail doesn't want you to give your password to third parties to access
it on your behalf. There are two options to fix this:
- Turn on "allow less secure apps". This is not saying that the app is full of security
holes, but that it's an app that has your credentials, and giving your credentials to
a third party app might allow them to be compromised.
- The better solution: turn on two-factor authentication for the account, and then set
an application-specific password for wetransfer-slurp to use. This password is meant
only to be used by wetransfer-slurp, and can be revoked by you at any time, making it
safer (if you think wetransfer-slurp has compromised the password, you can simply
imvalidate that password without locking yourself out completely).

## Running with Docker

It is strongly suggested you build a Docker image using the supplied Dockerfile, and run
the script like this:

```bash
docker build -t wetransfer-slurp:latest .

docker run --rm \
-e USERNAME='[email protected]' \
-e PASSWORD='imapmailpassword` \
-v /your/desired/location:/tmp \
wetransfer-slurp:latest
```