Coder Social home page Coder Social logo

Running? about fpl HOT 7 CLOSED

amosbastian avatar amosbastian commented on June 2, 2024
Running?

from fpl.

Comments (7)

amosbastian avatar amosbastian commented on June 2, 2024

Hi @jeo96x it works for me. I did the following after pulling into a clean folder using Python 3.6:

python -m venv venv
. venv/bin/activate
python setup.py install
python
>>> from fpl import FPL
>>> fpl = FPL()
>>> players = fpl.get_players()
>>> for player in players:
...     print(player.name)
... 
Cech
Leno
Koscielny
...

Keep in mind that get_players() is currently very slow because it has to request all players from the Fantasy Premier League API - I'll probably work on improving the quality of this package in the future, but I'm currently pretty busy unfortunately. Could you show the code that is giving you the error?

from fpl.

jeo96x avatar jeo96x commented on June 2, 2024

I was trying to run it differently, thank you is there any chance you could help me with my application of your code?

from fpl.

amosbastian avatar amosbastian commented on June 2, 2024

Of course, if you have any questions just let me know @jeo96x!

from fpl.

jeo96x avatar jeo96x commented on June 2, 2024

Is it possible to write this data into a spreadsheet, and if so could it be done like a pivot table? example: I want to see Man Utd v Leicesters game and all the points from the players in that game, and keep it updated weekly

from fpl.

amosbastian avatar amosbastian commented on June 2, 2024

I'm not sure what a pivot table is, but yes you could easily save the data to a CSV file and use that. Personally I haven't used Excel, but I have used a Google spreadsheet with Python before (using gspread), which was easy enough (can set a cron job and update it automatically). If you have any more implementation details that would be great and I'd be more than willing to help you out with the project.

from fpl.

jeo96x avatar jeo96x commented on June 2, 2024

perfect is it alright if I email you about this?

from fpl.

amosbastian avatar amosbastian commented on June 2, 2024

Sure, you can send an email to [email protected] or contact me on Discord at Amos#4622!

from fpl.

Related Issues (20)

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.