ios-personmd-notifications md-help-circle

Profile

  • Guest
    medal 0
  • Posts: 21
  • Post Likes: 3765

Notifications

  • No Unread Notifications

Suggested
Export (at least) Quali CSV

Do you believe that it would be beneficial to be able to export other .csv tables?

84.38% (27)
Yes
3.13% (1)
No
12.5% (4)
Don't know / Don't care
warning
This thread is closed. Threads older than 6 weeks are closed automatically. To continue this discussion, create a new thread.
angle-double-left ios-arrow-back 1 ios-arrow-forward angle-double-right
md-lock This topic has been closed by the moderator
medal 5104
3 years 25 days ago

Proposal name:
Export (at least) Qualifying CSV

Detailed proposal and possible benefits:
I would like to suggest the possibility to export and download .csv of the other table(s) in the results listing.

Wouldn't it be cool to be able to download other tables of results iGP has to offer?

Team rankings. League rankings. Twitter posts, the number of races Connor fails to qualify and score well in FZO... These are only a few of the things .csv tables help us to quickly generate. I'm sure that your imagination can find plenty of other awesome stuff to do with them.
500x354

Wouldn't you love to be able to produce your own statistics, flowcharts, tables and other unofficial complementary content that the community has to offer?

Those are only a few of the questions I want you to ask yourselves before voting in the poll linked to this post.

Other cool stuff:
Furthermore, I'd like you to go here to check out another interesting post and encourage you to like, share and comment down below with other examples of why this would make your or your friends' iGP lives better.

md-quotelink
medal 5000 Super Mod
3 years 25 days ago
Qualifying csv yes please.
It would also be great if the driver and team name were separated with a delimiter.
md-quotelink
medal 5556 Moderator
3 years 22 days ago
Hi Mihai,

I understand that your suggestion is not limited to qualifying, but here is a workaround (using Javascript) to export qualy results as a CSV file, with teams and drivers split into 2 columns.

How to use it ?


  • Firefox



  1. Open Firefox

  2. Ctrl B (to open bookmarks view)

  3. Right click

  4. Add a bookmark

  5. Name : iGP CSV (does not matter)

  6. URL : copy/paste the javascript function posted below

  7. Save




  • Chrome



  1. Open Chrome

  2. Ctrl Shift O (to open bookmarks view)

  3. Right click

  4. Add new bookmark

  5. Name : iGP CSV (does not matter)

  6. URL: copy/paste the javascript function posted below

  7. Save



Javascript function :
javascript:(function()%7Bvar%20a%3D%22%3Ca%20id%3D'btn'%20href%3D'%23'%20class%3D'btn3%20csvExport%20isWeb'%20data-csvtable%3D'csvQualy'%20data-csvname%3D'%22%2B%24(%22.btn2.csvExport.isWeb.right%22).attr(%22data-csvName%22)%2B%22_qualy'%3E%20Export%20Qualy%3C%2Fa%3E%22%2Cb%3D%24(%22%23qualifying%20table%22)%3B%24(b).attr(%22id%22%2C%22csvQualy%22)%3Bvar%20c%3D%24(%22.btn2.csvExport%22)%3B%24(a).insertBefore(c)%3B%24(%22%23btn%22).click(function()%7B%24(b).tableToCSV(%24(%22%23btn%22).attr(%22data-csvName%22))%7D)%3Ba%3D%24(%22%23csvRace%22)%3Bc%3D%24(a).html().replace(%2F%25C2%25A0%2Fg%2C%22%2C%22).replace(%2F%3Cbr%3E%2Fg%2C%22%3Ctd%3E%22)%3B%24(a).html(c)%3B%24(%22%23csvRace%20span%22).text(function(e%2Cd)%7Breturn%20d.trim()%7D)%3B%24(a).find(%22th%22)%5B1%5D.insertAdjacentHTML(%22afterend%22%2C%22%3Cth%3ETeam%3C%2Fth%3E%22)%3B%24(%22.gold%22).text(%221%22)%3B%24(%22.silver%22).text(%222%22)%3B%24(%22.bronze%22).text(%223%22)%3Bc%3D%24(b).html().replace(%2F%25C2%25A0%2Fg%2C%22%2C%22).replace(%2F%3Cbr%3E%2Fg%2C%22%3Ctd%3E%22)%3B%24(b).html(c)%3B%24(%22%23csvQualy%20span%22).text(function(e%2Cd)%7Breturn%20d.trim()%7D)%3B%24(b).find(%22th%22)%5B1%5D.insertAdjacentHTML(%22afterend%22%2C%22%3Cth%3ETeam%3C%2Fth%3E%22)%3B%24(%22.ts-SS%22).text(%22SS%22)%3B%24(%22.ts-S%22).text(%22S%22)%3B%24(%22.ts-M%22).text(%22M%22)%3B%24(%22.ts-H%22).text(%22H%22)%3B%24(%22.ts-I%22).text(%22I%22)%3B%24(%22.ts-W%22).text(%22W%22)%7D)();



Now, go to the results page you wanted to dowload as CSV.
Click on the "iGP CSV" bookmark.

  • Page formatting should be updated (and a column for Team names shoud be added)

  • You should have a new "Export Qualy" (red) button to download qualy results as csv file



800x249


This is not an official iGP solution, only a workaround, so keep in mind this solution is not perfect. If you have any issue to use it, let me know.
md-quotelink
medal 5000
3 years 21 days ago
This’ll do for now I guess.

Thanks a lot for this, Truche. You rock the CSVs. ?
md-quotelink
md-lock This topic has been closed by the moderator
angle-double-left ios-arrow-back 1 ios-arrow-forward angle-double-right

You must be logged in to post a reply.