Code Monkey home page Code Monkey logo

bing_pointer's Introduction

Bing Pointer

Protractor automated bing search for collecting daily searching points.

##Dependencies:

JDK

  • Linux:
$ sudo apt install openjdk-8-jre-headless
  • Windows:

Install [JDK] (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)

Node.js

  • Linux:
$ sudo apt install python-software-properties
$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
$ sudo apt install nodejs
  • Windows:

Install [Node.js] (https://nodejs.org/en/download/)

Chrom(ium) browser (depending on your OS)

How To Use:

Linux:

In mobile.config.js and desktop.config.js uncomment the the line corresponding to your OS (you could use any custom path you want):

const pathToChromeProfile = '/home/user/.config/chromium/Default/BING';
$ git clone https://github.com/exbarboss/bing_pointer.git
$ cd bing_pointer/
$ cd node_modules/.bin/
$ sudo ./webdriver-manager update
$ sudo ./webdriver-manager start

This will start the server. In another terminal window execute the following to emulate desktop search (assuming you are inside bing_pointer/node_modules/.bin/):

$ sudo ./protractor ../../desktop.config.js

or to emulate mobile search run:

$ sudo ./protractor ../../mobile.config.js

Windows

In mobile.config.js and desktop.config.js uncomment the the line corresponding to your OS (you could use any custom path you want):

const pathToChromeProfile = 'C:/Users/user/AppData/Local/Google/Chrome/User Data/BING';
git clone https://github.com/exbarboss/bing_pointer.git
cd bing_pointer/
cd node_modules/.bin/
webdriver-manager update
webdriver-manager start

This will start the server. In another cmd window execute the following to emulate desktop search (assuming you are inside bing_pointer/node_modules/.bin/):

$ protractor PATH_TO_PROJECT:/bing_pointer/desktop.config.js

or to emulate mobile search run:

$ protractor PATH_TO_PROJECT:/bing_pointer/mobile.config.js

Add path for webdriver to Path environment variable i.e. DRIVE:\bing_pointer\node_modules\.bin\.

To automate this process setup a new task in Windows Task Scheduler that will run daily:

  • On actions tab add new Action
  • Program/Script: Powershell.exe
  • Add arguments: -ExecutionPolicy Bypass DRIVE:\bing_pointer\runner.ps1

Note

You will need to terminate Ctrl + C the first execution and log in with your Microsoft account to get points properly, otherwise it will not work.

bing_pointer's People

Contributors

eng1n88r 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.