Giter Site home page Giter Site logo

ex-ark / warfarmutils Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 17.7 MB

Ruby based tool for browsing efficiently the Warframe Market (http://warframe.market) API

License: GNU General Public License v3.0

Ruby 97.10% Batchfile 2.90%
warframe ruby trade game platinum

warfarmutils's Introduction

Synopsis

This ruby script aim to simplify the browsing of the unofficial Warframe Market website http://warframe.market

Requests the API for multiple items/mods at once, can be given customizable filters, can be used to determine profitable trades and/or best deal.

Bot usage example

usage_example_search_syndicate

Code Example

Get all online buyers for a given pool of items (ex: syndicates items)

files << 'perrin.wf'
files << 'loka.wf'
ctr = WFController.new
ctr.load_files files
all_orders = ctr.query_items
buy_orders = OrderFilter.filter_ingame_buyers(all_orders)
buy_orders.each do |ord|
    # your thing goes here
end

Determine profitable trades ( usage will be changed Soon™)

items =  WFReader.readWFFile 'buy_sell.wf'
s = Smart.new 
profitables = s.threaded_get_all_interesting_items items
## request these items from the API, compare prices, online status
## returns profitable and available trades
profitables.each do |profitable|
  print "#{profitable}\n"       ## display each profitable trade (Object typeof Order)
end

Motivation

Because at the time, warframe.market doesn't support multiple requests, and you have to keep multiples tabs opened to watch an entire pool of items.

Because I'm that lazy.

Because I can.

Installation

##Windows

To quickly run this project simply pick from the build/ directory the app.exe and the db/ directory.

The executable expects params, that are files containing item list.

If you don't want to create your own pool of items just pick any existing .bat launcher you want.

.\start_app_with_perrin.bat

If you don't trust my .exe you will have to setup Ruby environment on your machine. ( => git clone )

ruby app.rb

If you want to modify and then bundle my lib into and .exe install Ocra gem and run

.\export_project_to_bundle_exe.bat .\export_buy_sell_to_bundle_exe.bat

This will remove the build directory and generate a new one accordingly to your current db/ directory and ruby source code.

##Linux

Soon™

Warframe Market API

12 / 2017 https://api.warframe.market/v1/items/HERE_YOUR_ITEM/orders

License

GNU public license v3.0

warfarmutils's People

Contributors

dependabot[bot] avatar ex-ark avatar

Stargazers

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