transferwee, branch HEADDownload/upload file via wetransfer.com
ddeb05d476531f202aea1a6b2e9b47188d2c79b12019-12-15T11:33:04Z2019-12-15T11:33:04Zdownload: Unquote filenamesLeonardo Taccariiamleot@gmail.comcommit ddeb05d476531f202aea1a6b2e9b47188d2c79b1
parent 6ae8fc2adf06cff947d35e08dd211628536ec1be
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 15 Dec 2019 12:33:04 +0100
download: Unquote filenames
Introduce a _file_unquote() function to unquote filename so file will
be downloaded without %-encoded names properly extended.
Should address issue #9.
6ae8fc2adf06cff947d35e08dd211628536ec1be2019-09-27T08:50:59Z2019-09-28T12:06:46ZBug fix "NameError: name 'exit' is not defined"sharevbsharevb@gmail.comcommit 6ae8fc2adf06cff947d35e08dd211628536ec1be
parent d8e59ef966a8f9baa7000ca985dbfe6afe0e4fec
Author: sharevb <sharevb@gmail.com>
Date: Fri, 27 Sep 2019 10:50:59 +0200
Bug fix "NameError: name 'exit' is not defined"
Got "NameError: name 'exit' is not defined" in python 3.7 after compiling using pyinstaller
d8e59ef966a8f9baa7000ca985dbfe6afe0e4fec2019-09-22T16:31:12Z2019-09-22T16:31:12Z_prepare_request_data: Improve commentLeonardo Taccariiamleot@gmail.comcommit d8e59ef966a8f9baa7000ca985dbfe6afe0e4fec
parent ed22bf688bc013dac5b4903ab43951727c54bccb
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 22 Sep 2019 18:31:12 +0200
_prepare_request_data: Improve comment
ed22bf688bc013dac5b4903ab43951727c54bccb2019-09-22T09:51:43Z2019-09-22T09:51:43Zdownload/upload: Inject cookies and headers (for X-CSRF-Token)Leonardo Taccariiamleot@gmail.comcommit ed22bf688bc013dac5b4903ab43951727c54bccb
parent 5d921f6b936a0ce688ee9301c0a567fbea8bc7c8
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 22 Sep 2019 11:51:43 +0200
download/upload: Inject cookies and headers (for X-CSRF-Token)
X-CSRF-Token is now needed for most wetransfer API calls, retrieve
them via _prepare_request_data() and inject it together with cookies.
5d921f6b936a0ce688ee9301c0a567fbea8bc7c82019-06-02T13:03:10Z2019-06-02T13:03:10Zupload: Raise exceptions instead of just returning None when errors occursLeonardo Taccariiamleot@gmail.comcommit 5d921f6b936a0ce688ee9301c0a567fbea8bc7c8
parent 234eec526ff552e0a7365b5c4330fee00d01846a
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 2 Jun 2019 15:03:10 +0200
upload: Raise exceptions instead of just returning None when errors occurs
Previously when trying to upload non-existing filenames or duplicate
filenames None was returned and printed and transferwee exited with
status 0 without providing useful information. Respectively raise
FileNotFoundError() and FileExistsError() exceptions when that happens.
Should fix issue #5.
234eec526ff552e0a7365b5c4330fee00d01846a2019-06-01T14:29:23Z2019-06-01T14:29:23Zcheck: Bump sleep time to workaround flaky testsLeonardo Taccariiamleot@gmail.comcommit 234eec526ff552e0a7365b5c4330fee00d01846a
parent 5efdf478d3bd09be1f33cd7571effc95d7424487
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sat, 1 Jun 2019 16:29:23 +0200
check: Bump sleep time to workaround flaky tests
5efdf478d3bd09be1f33cd7571effc95d74244872019-06-01T14:18:56Z2019-06-01T14:18:56ZAdjust the shebang to just invoke python3Leonardo Taccariiamleot@gmail.comcommit 5efdf478d3bd09be1f33cd7571effc95d7424487
parent 3b3afe4fcd8686532317cd827d295802a41d6d4d
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sat, 1 Jun 2019 16:18:56 +0200
Adjust the shebang to just invoke python3
Pointed out via issue #3.
3b3afe4fcd8686532317cd827d295802a41d6d4d2019-05-31T16:30:13Z2019-05-31T16:30:13Zupload: Fix upload of files with an intermediary path (fix issue #4)Leonardo Taccariiamleot@gmail.comcommit 3b3afe4fcd8686532317cd827d295802a41d6d4d
parent 2f96ab33a51812a830e4d36a8d60982b3cdd73f9
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 31 May 2019 18:30:13 +0200
upload: Fix upload of files with an intermediary path (fix issue #4)
upload() accidentally considered only the basename of files leading
to errors when trying to upload files with an intermediary path
(absolute or relative).
Thanks to @marcelpaulo for reporting it via issue #4!
2f96ab33a51812a830e4d36a8d60982b3cdd73f92019-03-26T18:24:19Z2019-03-26T18:24:19ZAdjust `.../email' and `.../link' uploads _prepare_{email,link}_upload()Leonardo Taccariiamleot@gmail.comcommit 2f96ab33a51812a830e4d36a8d60982b3cdd73f9
parent 15e83d26b305044188428e9d17977d99d0d6b513
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 26 Mar 2019 19:24:19 +0100
Adjust `.../email' and `.../link' uploads _prepare_{email,link}_upload()
The API for `.../email' and `.../link' no longer expects just
filenames but a list of files where the files contain their basename
and their size.
Introduce a _file_name_and_size() method to return such dict and use it in
_prepare_{email,link}_upload() and _prepare_file_upload().
15e83d26b305044188428e9d17977d99d0d6b5132019-01-14T15:47:36Z2019-01-14T15:47:36ZAdd a TODO fileLeonardo Taccariiamleot@gmail.comcommit 15e83d26b305044188428e9d17977d99d0d6b513
parent 46cc085314a73da9aea95b804b43deaa2289f2ae
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 14 Jan 2019 16:47:36 +0100
Add a TODO file
46cc085314a73da9aea95b804b43deaa2289f2ae2019-01-06T21:08:36Z2019-01-06T21:08:36ZREADME.md: Add build status iconLeonardo Taccariiamleot@gmail.comcommit 46cc085314a73da9aea95b804b43deaa2289f2ae
parent 8af62af6f02900f297adb930f1c9be3008565d14
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 6 Jan 2019 22:08:36 +0100
README.md: Add build status icon
8af62af6f02900f297adb930f1c9be3008565d142019-01-06T20:54:17Z2019-01-06T20:54:17ZAdjust the shebang to avoid hardcoded python3.7 and use env insteadLeonardo Taccariiamleot@gmail.comcommit 8af62af6f02900f297adb930f1c9be3008565d14
parent 51f9fc3b6f8bf328584ed264dfb36ca29ca3eeda
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 6 Jan 2019 21:54:17 +0100
Adjust the shebang to avoid hardcoded python3.7 and use env instead
51f9fc3b6f8bf328584ed264dfb36ca29ca3eeda2019-01-06T20:51:26Z2019-01-06T20:51:26ZUse xenial instead of trustyLeonardo Taccariiamleot@gmail.comcommit 51f9fc3b6f8bf328584ed264dfb36ca29ca3eeda
parent 7f2009b6f37d9c9aa735b7c009544fc20f389712
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 6 Jan 2019 21:51:26 +0100
Use xenial instead of trusty
(Python 3.7 needs OpenSSL 1.0.2+ that is not present in trusty.)
7f2009b6f37d9c9aa735b7c009544fc20f3897122019-01-06T20:43:06Z2019-01-06T20:43:06ZUse spaces instead of tab (seems that Travis is not happy with tabs!)Leonardo Taccariiamleot@gmail.comcommit 7f2009b6f37d9c9aa735b7c009544fc20f389712
parent 9fa4bf64823027ea9b4dc8217d46179202998acd
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 6 Jan 2019 21:43:06 +0100
Use spaces instead of tab (seems that Travis is not happy with tabs!)
9fa4bf64823027ea9b4dc8217d46179202998acd2019-01-06T20:39:35Z2019-01-06T20:39:35ZAdd an initial .travis.ymlLeonardo Taccariiamleot@gmail.comcommit 9fa4bf64823027ea9b4dc8217d46179202998acd
parent 6af0b64011f941cd9ca77419d3f199534eb07932
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 6 Jan 2019 21:39:35 +0100
Add an initial .travis.yml
(WARNING: Completely untested and I have still not really RTFM!)
6af0b64011f941cd9ca77419d3f199534eb079322018-12-30T17:24:45Z2018-12-30T17:24:45Ztests: Add a check.sh test script for transferweeLeonardo Taccariiamleot@gmail.comcommit 6af0b64011f941cd9ca77419d3f199534eb07932
parent 5ae4f014ce753dfbdc90c36b92bab2a65f0cb9ff
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 30 Dec 2018 18:24:45 +0100
tests: Add a check.sh test script for transferwee
check.sh tests transferwee by uploading a test file, downloading
it and then comparing the uploded one and downloaded one via cmp(1)
to check if they are the same.
5ae4f014ce753dfbdc90c36b92bab2a65f0cb9ff2018-12-30T12:49:44Z2018-12-30T12:49:44Zdownload_url: Fix syntax of else added in the last commitLeonardo Taccariiamleot@gmail.comcommit 5ae4f014ce753dfbdc90c36b92bab2a65f0cb9ff
parent c7812039c637b1722384c2866968d23f1bb52987
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 30 Dec 2018 13:49:44 +0100
download_url: Fix syntax of else added in the last commit
c7812039c637b1722384c2866968d23f1bb529872018-12-30T11:43:21Z2018-12-30T11:43:21Zdownload_url: Handle possible incorrect URL by returning NoneLeonardo Taccariiamleot@gmail.comcommit c7812039c637b1722384c2866968d23f1bb52987
parent 55d967a2ce835bed3da438d465cf4bb23a19d535
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 30 Dec 2018 12:43:21 +0100
download_url: Handle possible incorrect URL by returning None
Thanks to @gilbertotcc for spotting this problem!
55d967a2ce835bed3da438d465cf4bb23a19d5352018-10-16T19:55:49Z2018-10-16T19:55:49ZDocument that if `-t' option is used then a `--' is neededLeonardo Taccariiamleot@gmail.comcommit 55d967a2ce835bed3da438d465cf4bb23a19d535
parent b98db25d560b7aff4f2f9cfe15ce2d0597163655
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 16 Oct 2018 21:55:49 +0200
Document that if `-t' option is used then a `--' is needed
b98db25d560b7aff4f2f9cfe15ce2d05971636552018-09-29T18:58:37Z2018-09-29T18:58:37ZChange the shebang to use Python 3.7Leonardo Taccariiamleot@gmail.comcommit b98db25d560b7aff4f2f9cfe15ce2d0597163655
parent 2afafc85334038e6c1b9e6ef8996be58cebed601
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sat, 29 Sep 2018 20:58:37 +0200
Change the shebang to use Python 3.7
2afafc85334038e6c1b9e6ef8996be58cebed6012018-06-04T08:32:41Z2018-06-04T08:32:41ZREADME.md: Add two real examples for upload and download subcommandsLeonardo Taccariiamleot@gmail.comcommit 2afafc85334038e6c1b9e6ef8996be58cebed601
parent d6c2f12ba0e84b963b1528bf061579665aee00a5
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 4 Jun 2018 10:32:41 +0200
README.md: Add two real examples for upload and download subcommands
d6c2f12ba0e84b963b1528bf061579665aee00a52018-05-13T21:44:19Z2018-05-13T21:44:19Ztransferwee.py: Address flake8 warnings/errorsLeonardo Taccariiamleot@gmail.comcommit d6c2f12ba0e84b963b1528bf061579665aee00a5
parent 70f63eeb899a215c897ea0a8fb7cefd3945d27c6
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 13 May 2018 23:44:19 +0200
transferwee.py: Address flake8 warnings/errors
70f63eeb899a215c897ea0a8fb7cefd3945d27c62018-05-08T13:18:52Z2018-05-08T13:18:52Ztransferwee.py: Improve documentationLeonardo Taccariiamleot@gmail.comcommit 70f63eeb899a215c897ea0a8fb7cefd3945d27c6
parent 421546ff5f1b226f9088dd62b6b2d3aa5ae1ba9e
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 8 May 2018 15:18:52 +0200
transferwee.py: Improve documentation
- Add a description to briefly describe what transferwee does
- Document the type of URLs supported by download_url()
- Add a reference to download_url() to download()
421546ff5f1b226f9088dd62b6b2d3aa5ae1ba9e2018-05-08T13:05:17Z2018-05-08T13:05:17ZREADME.md: Add an anchor to wetransfer.comLeonardo Taccariiamleot@gmail.comcommit 421546ff5f1b226f9088dd62b6b2d3aa5ae1ba9e
parent 17c9da77dcb9daa3e92447aff4206f0d52e3a4cc
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 8 May 2018 15:05:17 +0200
README.md: Add an anchor to wetransfer.com
17c9da77dcb9daa3e92447aff4206f0d52e3a4cc2018-05-08T12:04:48Z2018-05-08T12:04:48Ztransferwee: Simplify the check for duplicates filenamesLeonardo Taccariiamleot@gmail.comcommit 17c9da77dcb9daa3e92447aff4206f0d52e3a4cc
parent b1574d0c0d1aa345d26549e322c5b10286876572
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 8 May 2018 14:04:48 +0200
transferwee: Simplify the check for duplicates filenames
We can just use set() and avoid the `*' completely.
b1574d0c0d1aa345d26549e322c5b102868765722018-05-08T09:09:54Z2018-05-08T09:09:54ZREADME.md: Document all the URLs supported by `download' actionLeonardo Taccariiamleot@gmail.comcommit b1574d0c0d1aa345d26549e322c5b10286876572
parent 5a9d91dabf54b03c5e7663bc893fb4d1a71e9830
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 8 May 2018 11:09:54 +0200
README.md: Document all the URLs supported by `download' action
Document all the URLs supported and add a short description about them.
5a9d91dabf54b03c5e7663bc893fb4d1a71e98302018-05-07T23:42:33Z2018-05-07T23:42:33ZREADME.md: Add a README to briefly document transferweeLeonardo Taccariiamleot@gmail.comcommit 5a9d91dabf54b03c5e7663bc893fb4d1a71e9830
parent bc502b6b7558d6583b79edeb3c528bc996b4e49a
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 8 May 2018 01:42:33 +0200
README.md: Add a README to briefly document transferwee
bc502b6b7558d6583b79edeb3c528bc996b4e49a2018-05-07T22:41:09Z2018-05-07T22:41:09Ztransferwee.py: Delete all commented JSON response examplesLeonardo Taccariiamleot@gmail.comcommit bc502b6b7558d6583b79edeb3c528bc996b4e49a
parent 552965b43fb08c01ea2607112146482d50ca9519
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 8 May 2018 00:41:09 +0200
transferwee.py: Delete all commented JSON response examples
They are not very useful and if we decide to document the API it is probably a
better idea to do that on a separate text file (not directly via comments).
552965b43fb08c01ea2607112146482d50ca95192018-05-07T22:24:06Z2018-05-07T22:24:06ZInitial commitLeonardo Taccariiamleot@gmail.comcommit 552965b43fb08c01ea2607112146482d50ca9519
Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 8 May 2018 00:24:06 +0200
Initial commit