Git Product home page Git Product logo

lovebizhi-collector's Introduction

Lovebizhi Collector

This is a nodejs script that uses lovebizhi apis to collect wallpapers, and auto change wallpapers for OS X. Chinese Post

Usage

If you haven't installed nodejs, you can use Homebrew to install it.

brew install node
  1. Clone this script.
  2. node install to install all the dependencies.
  3. Add a new file config.
  4. Put OUTPATH="/path/to/your/folder/for/wallpapers" in config.

The following shell commands will do all the work above. You just need to change "/path/to/your/folder/for/wallpapers" to the absolute path in which you want to store your collected wallpapers.

OUTPATH="/path/to/your/folder/for/wallpapers"
mkdir lovebizhi-collecor
cd lovebizhi-collecor
git clone "https://github.com/songchenwen/lovebizhi-collector.git" .
npm install
touch config
echo "OUTPATH=\"$OUTPATH\"" > config

Then you can run run.sh to begin collectting the wallpapers.

sh run.sh

Auto Start

There is a shell script you can use to add a LaunchAgent to the OS X system to auto run the collector at an interval.

sh add_launch_agent.sh

Configuration

You can edit the following lines in index.js to configure this script.

var categories = [API.categories.landscape, API.categories.plant];
var screenWidth = 2560;
var screenHeight = 1600;
var maxFileCount = 100;

The available catetories are listed below:

  • API.categories.moviestar
  • API.categories.landscape
  • API.categories.beauty
  • API.categories.plant
  • API.categories.animal
  • API.categories.game
  • API.categories.cartoon
  • API.categories.festival
  • API.categories.car
  • API.categories.food
  • API.categories.sport

lovebizhi-collector's People

Contributors

songchenwen avatar

Watchers

James Cloos avatar 空の境界 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.