Comments (7)
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.
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.
Of course, if you have any questions just let me know @jeo96x!
from fpl.
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.
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.
perfect is it alright if I email you about this?
from fpl.
Sure, you can send an email to [email protected] or contact me on Discord at Amos#4622!
from fpl.
Related Issues (20)
- How can I see a team based on player's entry? HOT 2
- user.transfer works but returns error for mimetype HOT 3
- Many fixtures are inaccurate HOT 1
- Api giving urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed HOT 3
- Get proper team name from team id
- 403 on login HOT 6
- Optimal captain choice -small fix on enum :)
- Using this script for Allsvenskan.se/api/ HOT 1
- Login fails HOT 12
- user.get_user_history() hangs if user joined after gameweek 1 HOT 1
- unable to get user_information from get_user() HOT 5
- Can we access previous year data from the player object HOT 2
- API requests loop indefinitely if request fails HOT 4
- get_fixtures method not returning fixtures without game week HOT 1
- Transfer function is not executing HOT 1
- Need an option to get my team details of any given gameweek HOT 3
- Nonetype HOT 2
- Adding support for Draft League HOT 2
- Adding list of packages to install / recommended Python Version HOT 1
- Quickstart code example doesn't work for Python 3.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpl.