Comments (4)
Hey man that worked!
Thank you a lot!
from prize-pick-predictions.
Hello @ezequiel-kl,
Thank you for reaching out! So the way I designed it to work is that it uses a web driver to "hard scrape" the API from Prize Picks.
Yes, that is the expected output to terminal. I have not yet implemented a system to search up players with a full name more than 2 words, or special characters yet. (Working as a revamped version 2 // full stack as of this moment)
But if you're asking if users are supposed to copy and paste the API info, then no. Technically it works, but I have it to where it uses a web driver instead.
Why would I do this rather than just making a normal API request you may ask? Because Prize Picks does not allow public API, nor do I have an Auth key. While you can copy and paste from the link (which was how I used to have it before LOL) It was now the ideal method I wanted so I used a web driver to open a Firefox tab locally on your computer to web scrape all the API data into the JSON file.
So after you start it it should open a FireFox tab assuming you have FireFox and gecko which is installed on your system...
It will scrape all the prize picks data and put it in the JSON (this was for debugging/testing purposes) then it will start searching up players, etc.
from prize-pick-predictions.
Thank you for your fast reply!
That is exactly what is trying to do but when it opens the Firefox tab, I see that it shows the data, and after this window:
It immediately closes and throws the error that I showed on my initial post
So I opened the link, created an empty pre_formatted_projections.json
and copied the content manually to the file and it worked as you show me on your screenshots.
Tomorrow with the new predictions I will now if I "accidentally" fixed the issue.
Thank you for your support, I really appreciate it.
from prize-pick-predictions.
Hmm im not sure why it's doing that.
Try adding this line of code in the for loop:
print(type(item))
Inside the ./utils/json_parser.py
...
It should be a bunch of dictionaries. And it should print a bunch of <class 'dict'>
s
from prize-pick-predictions.
Related Issues (2)
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 prize-pick-predictions.