Code Monkey home page Code Monkey logo

ffsend's Introduction

Python client to https://send.firefox.com. Encrypts and decrypts on the fly to reduce memory usage.

Using

Prerequisites:

pip install clint pycryptodome requests requests_toolbelt

Usage is really simple:

python ffsend.py 'https://send.firefox.com/download/abcdef0123/#keykeykey' # download a file to the current directory
python ffsend.py path/to/file # upload a file to Firefox Send

You can also set a download count limit during upload:

python ffsend.py --set-dlimit 20 path/to/file # upload a file to Firefox Send

As of writing (June 20, 2018), the maximum download limit is 20 on send.firefox.com.

Advanced usage

Several commands take a -t/--token parameter, which is the "Owner token" displayed after a successful upload. If you uploaded the file with your browser, the owner token will be in the browser's localStorage.

Getting file information

To get basic information:

python ffsend.py -i 'https://send.firefox.com/download/abcdef0123'

To get more information (including number of times downloaded):

python ffsend.py -i -t TOKEN 'https://send.firefox.com/download/abcdef0123'

Deleting a file

python ffsend.py --delete -t TOKEN 'https://send.firefox.com/download/abcdef0123'

Updating file settings

python ffsend.py --set-dlimit N -t TOKEN 'https://send.firefox.com/download/abcdef0123'

License

Code is copyright Robert Xiao ([email protected]), and is licensed under the Mozilla Public License 2.0.

ffsend's People

Contributors

chungy avatar idrassi avatar nneonneo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.