transferwee, branch HEAD Download/upload file via wetransfer.com ddeb05d476531f202aea1a6b2e9b47188d2c79b1 2019-12-15T11:33:04Z 2019-12-15T11:33:04Z download: Unquote filenames Leonardo Taccari iamleot@gmail.com commit 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. 6ae8fc2adf06cff947d35e08dd211628536ec1be 2019-09-27T08:50:59Z 2019-09-28T12:06:46Z Bug fix "NameError: name 'exit' is not defined" sharevb sharevb@gmail.com commit 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 d8e59ef966a8f9baa7000ca985dbfe6afe0e4fec 2019-09-22T16:31:12Z 2019-09-22T16:31:12Z _prepare_request_data: Improve comment Leonardo Taccari iamleot@gmail.com commit d8e59ef966a8f9baa7000ca985dbfe6afe0e4fec parent ed22bf688bc013dac5b4903ab43951727c54bccb Author: Leonardo Taccari <iamleot@gmail.com> Date: Sun, 22 Sep 2019 18:31:12 +0200 _prepare_request_data: Improve comment ed22bf688bc013dac5b4903ab43951727c54bccb 2019-09-22T09:51:43Z 2019-09-22T09:51:43Z download/upload: Inject cookies and headers (for X-CSRF-Token) Leonardo Taccari iamleot@gmail.com commit 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. 5d921f6b936a0ce688ee9301c0a567fbea8bc7c8 2019-06-02T13:03:10Z 2019-06-02T13:03:10Z upload: Raise exceptions instead of just returning None when errors occurs Leonardo Taccari iamleot@gmail.com commit 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. 234eec526ff552e0a7365b5c4330fee00d01846a 2019-06-01T14:29:23Z 2019-06-01T14:29:23Z check: Bump sleep time to workaround flaky tests Leonardo Taccari iamleot@gmail.com commit 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 5efdf478d3bd09be1f33cd7571effc95d7424487 2019-06-01T14:18:56Z 2019-06-01T14:18:56Z Adjust the shebang to just invoke python3 Leonardo Taccari iamleot@gmail.com commit 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. 3b3afe4fcd8686532317cd827d295802a41d6d4d 2019-05-31T16:30:13Z 2019-05-31T16:30:13Z upload: Fix upload of files with an intermediary path (fix issue #4) Leonardo Taccari iamleot@gmail.com commit 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! 2f96ab33a51812a830e4d36a8d60982b3cdd73f9 2019-03-26T18:24:19Z 2019-03-26T18:24:19Z Adjust `.../email' and `.../link' uploads _prepare_{email,link}_upload() Leonardo Taccari iamleot@gmail.com commit 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(). 15e83d26b305044188428e9d17977d99d0d6b513 2019-01-14T15:47:36Z 2019-01-14T15:47:36Z Add a TODO file Leonardo Taccari iamleot@gmail.com commit 15e83d26b305044188428e9d17977d99d0d6b513 parent 46cc085314a73da9aea95b804b43deaa2289f2ae Author: Leonardo Taccari <iamleot@gmail.com> Date: Mon, 14 Jan 2019 16:47:36 +0100 Add a TODO file 46cc085314a73da9aea95b804b43deaa2289f2ae 2019-01-06T21:08:36Z 2019-01-06T21:08:36Z README.md: Add build status icon Leonardo Taccari iamleot@gmail.com commit 46cc085314a73da9aea95b804b43deaa2289f2ae parent 8af62af6f02900f297adb930f1c9be3008565d14 Author: Leonardo Taccari <iamleot@gmail.com> Date: Sun, 6 Jan 2019 22:08:36 +0100 README.md: Add build status icon 8af62af6f02900f297adb930f1c9be3008565d14 2019-01-06T20:54:17Z 2019-01-06T20:54:17Z Adjust the shebang to avoid hardcoded python3.7 and use env instead Leonardo Taccari iamleot@gmail.com commit 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 51f9fc3b6f8bf328584ed264dfb36ca29ca3eeda 2019-01-06T20:51:26Z 2019-01-06T20:51:26Z Use xenial instead of trusty Leonardo Taccari iamleot@gmail.com commit 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.) 7f2009b6f37d9c9aa735b7c009544fc20f389712 2019-01-06T20:43:06Z 2019-01-06T20:43:06Z Use spaces instead of tab (seems that Travis is not happy with tabs!) Leonardo Taccari iamleot@gmail.com commit 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!) 9fa4bf64823027ea9b4dc8217d46179202998acd 2019-01-06T20:39:35Z 2019-01-06T20:39:35Z Add an initial .travis.yml Leonardo Taccari iamleot@gmail.com commit 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!) 6af0b64011f941cd9ca77419d3f199534eb07932 2018-12-30T17:24:45Z 2018-12-30T17:24:45Z tests: Add a check.sh test script for transferwee Leonardo Taccari iamleot@gmail.com commit 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. 5ae4f014ce753dfbdc90c36b92bab2a65f0cb9ff 2018-12-30T12:49:44Z 2018-12-30T12:49:44Z download_url: Fix syntax of else added in the last commit Leonardo Taccari iamleot@gmail.com commit 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 c7812039c637b1722384c2866968d23f1bb52987 2018-12-30T11:43:21Z 2018-12-30T11:43:21Z download_url: Handle possible incorrect URL by returning None Leonardo Taccari iamleot@gmail.com commit 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! 55d967a2ce835bed3da438d465cf4bb23a19d535 2018-10-16T19:55:49Z 2018-10-16T19:55:49Z Document that if `-t' option is used then a `--' is needed Leonardo Taccari iamleot@gmail.com commit 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 b98db25d560b7aff4f2f9cfe15ce2d0597163655 2018-09-29T18:58:37Z 2018-09-29T18:58:37Z Change the shebang to use Python 3.7 Leonardo Taccari iamleot@gmail.com commit 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 2afafc85334038e6c1b9e6ef8996be58cebed601 2018-06-04T08:32:41Z 2018-06-04T08:32:41Z README.md: Add two real examples for upload and download subcommands Leonardo Taccari iamleot@gmail.com commit 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 d6c2f12ba0e84b963b1528bf061579665aee00a5 2018-05-13T21:44:19Z 2018-05-13T21:44:19Z transferwee.py: Address flake8 warnings/errors Leonardo Taccari iamleot@gmail.com commit d6c2f12ba0e84b963b1528bf061579665aee00a5 parent 70f63eeb899a215c897ea0a8fb7cefd3945d27c6 Author: Leonardo Taccari <iamleot@gmail.com> Date: Sun, 13 May 2018 23:44:19 +0200 transferwee.py: Address flake8 warnings/errors 70f63eeb899a215c897ea0a8fb7cefd3945d27c6 2018-05-08T13:18:52Z 2018-05-08T13:18:52Z transferwee.py: Improve documentation Leonardo Taccari iamleot@gmail.com commit 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() 421546ff5f1b226f9088dd62b6b2d3aa5ae1ba9e 2018-05-08T13:05:17Z 2018-05-08T13:05:17Z README.md: Add an anchor to wetransfer.com Leonardo Taccari iamleot@gmail.com commit 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 17c9da77dcb9daa3e92447aff4206f0d52e3a4cc 2018-05-08T12:04:48Z 2018-05-08T12:04:48Z transferwee: Simplify the check for duplicates filenames Leonardo Taccari iamleot@gmail.com commit 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. b1574d0c0d1aa345d26549e322c5b10286876572 2018-05-08T09:09:54Z 2018-05-08T09:09:54Z README.md: Document all the URLs supported by `download' action Leonardo Taccari iamleot@gmail.com commit 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. 5a9d91dabf54b03c5e7663bc893fb4d1a71e9830 2018-05-07T23:42:33Z 2018-05-07T23:42:33Z README.md: Add a README to briefly document transferwee Leonardo Taccari iamleot@gmail.com commit 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 bc502b6b7558d6583b79edeb3c528bc996b4e49a 2018-05-07T22:41:09Z 2018-05-07T22:41:09Z transferwee.py: Delete all commented JSON response examples Leonardo Taccari iamleot@gmail.com commit 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). 552965b43fb08c01ea2607112146482d50ca9519 2018-05-07T22:24:06Z 2018-05-07T22:24:06Z Initial commit Leonardo Taccari iamleot@gmail.com commit 552965b43fb08c01ea2607112146482d50ca9519 Author: Leonardo Taccari <iamleot@gmail.com> Date: Tue, 8 May 2018 00:24:06 +0200 Initial commit