Coder Social home page Coder Social logo

kafagy / fifa-fut-data Goto Github PK

View Code? Open in Web Editor NEW
74.0 18.0 17.0 12.02 MB

Web-scraping script that writes the data of all players from FutHead and FutBin to a CSV file or a DB

License: MIT License

Python 69.76% TSQL 30.24%
webscraping webcrawling python fifa-ultimate-team fifa18 fifa csv futhead mysql soccer

fifa-fut-data's Introduction

HitCount

FIFA FUT Players Data

What is the purpose of this script?

  • The purpose of this repository is to have a script that automatically pulls down all players data from Futhead's website for all FIFA versions starting with FIFA 10. And to pull detialed data from Futbin.com

How to use it?

  • Just run the fifa.py script: python3 futbin.py to get Futbin data. python3 futhead.py to get FutHead data.

Players data ouput format:

  • After running the script the user will have the data saved in a MySQL database and CSV files.

Requirements:

  • Python 3
  • MySQL
  • PIP

You will need to use PIP to install the following libraries:

  • pymysql
  • bs4
  • requests
  • pandas

Note:

  • You will need to sucessfully run the futhead.sql script before running the futhead.py parser.
  • Input database's host, database name, user and password in the futhead.py connection line.
  • Make sure you create tables using the DDL in futhead.sql to be able to correctly encode latin literals when writing to the Database.

fifa-fut-data's People

Contributors

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

fifa-fut-data's Issues

Nations

Could you add the players nations to their data?

problems with error 403

Adding a proxy, generating a user agent and random delays do not help, after 1 day of work, futbin blocks

goalies missing

super work,
however I think in your datasets e.g. FIFA19 the goalkeepers are missing. Can you fix that please?

SyntaxError when running

Hi,

I just found your amazing script and i wanted to try it. But when i execute "python fifa.py" on my Ubuntu 18.04.1 there is this error message:

File "fifa.py", line 104
    '''.format(value), (*player, *attribute))
                        ^
SyntaxError: invalid syntax

I updated python and the needed libraries.

Many greetings

Wrong stats in the Fifa20.csv

I noticed that the in Fifa20.csv are completly wrong. The Overall stat is fine but the attributes of the players are wrong most of the time. For example i checked the stats of Robert Lewandowski because it was a bit odd that he had only 28 shooting and then i found out that these were actualy the stats of Kalidou Koulibaly.

Doest Work With FIFA 22

I was trying to make it work for FIFA 22 but doesn't seem to be working, really looking forward to having working script for FIFA 22

Only first 10k players taken

The database is about nearly 15k players wide, and the main players page only shows the "first 10 thousand players". A fix for it could be separately dumping bronze, then silver, then gold players. As no quality exceeds 10k players, taking them all should be seamless.

Regular DB

Hi i was wondering if you could include the regular Fifa DB

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.