reiest / Futbin-price-updater

Goes through last 500 sales of a player and returns buy prices and more data
5 stars 1 forks source link

Futbin have upgraded their security! DOES NOT WORK ANYMORE

Futbin Price Finder

A price finder which gets the last 500 sales of players and calculate buy prices, and looks at other data which is useful

Installation

Click on the green code button and click Download ZIP:

If you are not familiar with terminal/cmd, the easiest for you is to store the folder on your desktop.

  1. Make sure you have python3 installed.
  2. If you are on:
    • Mac: open terminal
    • PC: cmd
    • Or other shells
  3. All modules that can be installed by running this:
    
    cd Desktop/Futbin-price-updater/

pip install -r requirements.txt

Note: if you did not store this program on your desktop, change the *Desktop* part in the first line.

# How to use
## 1. You only have to do this first step once
Go to [futbin](https://www.futbin.com/22/players)'s player page and choose your own filters based on which players you want. You dont want to have too many players if you are going to learn all of their prices. I have selected all icons between 200 and 450'000 coins. My URL will look like this:

![Players page](fig/Futbinlink.png)

Copy your URL and open [findID.py](findID.py). Change your URL on line 16:
```python
URL = 'https://www.futbin.com/22/players?page=1&xbox_price=200-450000&version=icons'

Make sure it says /22/players... because it might be an error if not. Fixed

You are now ready to run findID.py using the terminal/cmd:

python3 findID.py

When you run findID.py, you will be prompted to type in the name of the folder you want to create. In my instance i call it "icons450" because it's icons under 450k. This will create a new folder with a text- and excelfile.

Checklist:

2. Find buy prices based on sales history (repeating step)

This is the part you have to do every time you want to update your prices.

Open sales.py and change line 11, 12 and 13.

platform = "xone"  # Xbox = xone,    Playstation = ps,   PC = pc
directory = "icons450"  # Change to directory you want to use (category)
want_pdf = 1 # Change to 1 if you want pdf with graphs, and 0 for no pdf

The directory should be set to the folder you want to use. I want to find the price of icons. You can set this to the folder you just created if you want. The idea is that you can create multiple groups of players. Ex: Icons under 450k, all hero cards, silvers etc... If you want to make a new group, follow step 1. You only have to follow step 1 if you want a new group/filter.

Checklist:

Now you are ready to run sales.py by typing this in your terminal/cmd

python3 sales.py

When the program is done, it will open your sheet for you.

Result and examples

Sheet

In the lowest, average and highest, the lowest and highest 2% of sales are omitted beacuse they are misleading. It removes the deviation.

Explaination (will use Gomez (line 12) as example):

Shortest explenation / summary

If you dont have a group of players or want a new one:

Every time you want to update players' prices: