Coder Social home page Coder Social logo

parsad23 / motogp-api Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 1.0 81 KB

MotoGP Api: Library that reads the results of the MotoGP, 500cc, Moto2 and Moto3 classes from a website.

License: MIT License

Java 100.00%
api motogp results moto2 moto3 500cc data championship standings race

motogp-api's Introduction

Computador iuriCode

Hi everyone ๐Ÿ‘‹, I'm Parsa !

Data Scientist - MSc in Artificial Intelligence @ University of Bologna

About me:

  • ๐Ÿ’ป Data Scientist at Iconsulting currently working on sales forecasting
  • ๐ŸŽ๏ธ Passionate about AI and Motorsports!
  • ๐Ÿ‘จโ€๐Ÿ’ป Most of my projects are available on my GitHub
  • ๐Ÿ“ง Reach me at [email protected]

GitHub stats:

ParsaD23's GitHub stats ParsaD23

Top Repositories:

My skills:

  • Python C java
  • Keras PyTorch Pandas NumPy Matplotlib scikit-learn
  • Ubuntu Windows

motogp-api's People

Contributors

parsad23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hellequin1600

motogp-api's Issues

Request problem

Hello,

Motorsport stat seems to have changed the whole functioning of their site. So nothing works anymore, do you know what to change or is too much work needed?

Thanks,
Thomas

getSessionResult not working for MotoGP category

Hi Parsa,

I try to do this :
List<RiderSession> gridByRaceNumber = data.getSessionResults(Category.MotoGP, 2015, "FRA", Session.GRID); or this
List<RiderSession> gridByRaceNumber = data.getSessionResults(Category.MotoGP, 2015, 3, Session.RACE);
but it doesn't work.

I just found the origin of the problem but not the solution. The problem is there when the category is MotoGP, do you have any idea of the solution?
If the category is Moto2 or Moto3 there is no problem.

The error log :

com.github.parsad23.motogpapi.exceptions.DataNotAvailableException: The requested session or data does not exist or is not available
	at com.github.parsad23.motogpapi.reader.URLGenerator.getSessionResultsURL(URLGenerator.java:80)
	at com.github.parsad23.motogpapi.reader.SessionResultsReader.getJSONObjectResults(SessionResultsReader.java:25)
	at com.github.parsad23.motogpapi.reader.SessionResultsReader.getSessionResults(SessionResultsReader.java:17)
	at com.github.parsad23.motogpapi.reader.MotoGPData.getSessionResults(MotoGPData.java:45)
	at testsetstsetmain.main.main(main.java:19)

If it can be helpful I make search and find that in URLGenerator.java :

try{
            races = JsonParser.parseString(JsonReader.readJsonFromUrl(url, referer, base_url)).getAsJsonArray();
        } catch (IOException e){
            throw new DataNotAvailableException("Unable to read the JSONArray containing the races: empty String returned...");
 }

races is an empty array and the URL is https://mssproxy.motorsportstats.com/web/3.0.0/seasons/2015-motogp/races/

Thanks a lot in advance,
Respectfully
Thomas

Don't find Race code

Hello, first of all I wanted to congratulate you for your work!

I am doing this issue because I can't find the race codes in the HTML source code of the pages.
Can you send me the URL of a page of one of the circuits where it can be found so that I understand the logic?

Where can I find the code of the circuit of Jerez for example?

Thanks a lot!
Thomas

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.