Code Monkey home page Code Monkey logo

tumbl-down's Introduction

tumbl-down

An automatic image downloader for Tumblr blogs and other image-focused sites. The program uses its own dedicated parser, using web scraping and public API that doesn't require tokens.

Dependencies

This project is built on latest Python 3 version (currently 3.9), which you need in order to test and run this program. Backwards compatibility towards old Python 3 or Python 2 versions is not considered; continue at your own risk.

Setting up virtualenv

This project uses python virtualenv for dependency management. This set-up needs to be done only once, and any subsequent python executions are to be done inside the venv. To set up, on the root project directory, run:

virtualenv -p python3 venv

You may also replace venv with the name of your choice. Also replace every subsequent occurrences of venv with your name of choice.

Enter source venv/bin/activate on your terminal to enable virtualenv before proceeding to the next step.

Install dependencies

To install dependencies, run:

pip install -r requirements.txt

Note: It is possible to forgo creating virtual environment and install dependencies in your bare OS; However, it is recommended to use virtualenv and install dependencies there, to avoid dependency version conflicts or other complications arising from shared libraries.

Running

Enter virtualenv by entering source venv/bin/activate on your terminal, if applicable. On the root project directory, run python tumbl-down.py [options] <service> <account_id...> (values in <> are mandatory). To see available options, run python tumbl-down.py -h.

Testing

Enter virtualenv by entering source venv/bin/activate on your terminal, if applicable. On the root project directory, run python -m unittest <test_package_name>. For example, to run test file test/tumblr_feed.py, run python -m unittest test.tumblr_feed.

License

This project is licensed under BSD (3-clause).

tumbl-down's People

Contributors

cherryband avatar

Watchers

 avatar

tumbl-down's Issues

Unit test depends on network connection

I had a wrong idea of a unit test, and it turns out that unit test should run very fast and therefore cannot depend on external network. I have to divide up the functions I currently have and make them self-contained in terms of their functionality.

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.