Git Product home page Git Product logo

surebet-finder's Introduction

surebet-finder

Surebet finder bot

Installation

Clone the repo and run

npm install

Then, you need to set an API key from https://oddsapi.io/ in the env as API_KEY. You can do it by setting it manually or by creating a .env file at the root of the project.

Configuration

Modify the config.js file at your convenience.

Sample config

const config = {
  allowExchanges: true, // Include exchange brokers
  earnings: 100, // How much profit is targeted
  verbose: true // Display results on the shell
};

module.exports = config;

Usage

Run the bot

npm start

The results will be written in output.json

Issues

If you find an issue, feel free to contact me or open an issue on github. You can also contribute by creating a pull request.

Disclaimer

I can't be charged for any abusive usage or problem of this software. Be sure you have the proper rights before you run it.

surebet-finder's People

Contributors

l-portet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

surebet-finder's Issues

Error: Request failed with status code 404

hi, i tried to run the code but it gives me this error:

C:\Users\\Documents\GitHub\surebet-finder>npm start

> [email protected] start
> node index.js

Error: Unable to call API
C:\Users\\Documents\GitHub\surebet-finder\node_modules\axios\lib\core\createError.js:16
  var error = new Error(message);
              ^

Error: Request failed with status code 404
    at createError (C:\Users\\Documents\GitHub\surebet-finder\node_modules\axios\lib\core\createError.js:16:15)
    at settle (C:\Users\\Documents\GitHub\surebet-finder\node_modules\axios\lib\core\settle.js:17:12)
    at IncomingMessage.handleStreamEnd (C:\Users\pandi\Documents\GitHub\surebet-finder\node_modules\axios\lib\adapters\http.js:237:11)
    at IncomingMessage.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1346:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
    ...

I have recently started programming and I do not know how to solve the problem. I changed the baseURL in the aggregator.js file but the problem is not solved.

Sorry for my bad english, hope you can solve the problem.

Error: Unable to call API

Hello Friend. help me please ... I have this error:

Error: Unable to call API
(node:7608) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (C:\Program Files\nodejs\Nova pasta\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Program Files\nodejs\Nova pasta\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Program Files\nodejs\Nova pasta\node_modules\axios\lib\adapters\http.js:236:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1221:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:7608) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:7608) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Don't work

  1. Created api.env in the root directory
  2. Placed there

some env variables

API_KEY=my APi key
3. Got error

c:\temp\surebet-finder-master\index.js:2
const apiKey = require('dotenv').config().parsed.API_KEY;
^
TypeError: Cannot read property 'API_KEY' of undefined
at Object. (c:\temp\surebet-finder-master\index.js:2:49)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js
:71:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\1\AppData\Roaming\npm-cache_logs\2020-07-10T09_19_16_384Z
-debug.log

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.