Giter VIP home page Giter VIP logo

google-trend-wallpaper's Introduction

Google-Trend-Wallpaper

A python and shell script to set the wallpaper to a wordcloud of the most trending google searches.

This project is inspired from process-wallpaper. You can check it out for the wordcloud of most resource hungry processes running in your system.

Screenshot

Dependencies

  • python3
  • gsettings or feh To set the generated wordcloud as the wallpaper
  • xvfb To simulate a display and run everything in memory
  • firefox web browser

Python dependencies

pip install -r requirements.txt
  • selenium To scrape the data from Google trends
  • pyvirtualdisplay Python wrapper for xvfb
  • wordcloud To generate the wordcloud
  • PIL Python imaging library

NOTE You will need to download the webdriver for selenium. Geckodriver (webdriver for firefox) can be downloaded from here.

Setup

  • Clone this repo
git clone https://github.com/shardul08/Google-Trend-Wallpaper.git
  • Change directory to the repo
cd Google-Trend-Wallpaper
  • Run setup.sh with
./setup.sh

This will install all the required dependencies and set the wallpaper.

Usage

Run ./updateWallpaper.sh to update the wallpaper to the wordcloud of the latest trends.

You can set your region/country to get the trending searches in line #30 of generateWallpaper.py

You can set the number of days for which you want the trending searches in line #31 of generateWallpaper.py

NOTE If the wallpaper is not set automatically, you can set wallpaper.png as the wallpaper manually.

If you want the wallpaper to refresh/update every hour, you can add a cron job to run the script every hour.

To add a cron job, run

crontab -e

append the following

0 * * * * cd path/to/script/directory && ./updateWallpaper.sh > /tmp/wallpaper.log > 2>&1

This will refresh the wallpaper every hour. You can customize this command to refresh the wallpaper as often you want.

google-trend-wallpaper's People

Contributors

gableroux avatar shardul08 avatar

Watchers

 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.