I've worked a bit on the code, since I lost a lot of hours with a hanged PS3 and no save between races.
I'll upload a video shortly. How it works now is like this:
1: Choose a car and it's settings.
2: Enter the series and cup you want to B-Spec grind in.
3: Place the cursor on the race you want your driver to do.
4: Plug in Bobs babysitter.
5: It will select the race, choose your first driver and load the race.
6: When starting the race it is possible to have it automatically enter the lap time view and open the camera menu where there are no graphics. I tried it but is not using it at the moment.
7: After the race is finished money and XP will be collected.
8: After money is collected it will loop back out to the cup menu and re-select the same track and start racing again.
9: And it loops from here...
Nice thing about this is that now game data is saved every time a race is finished. Pretty useful when auto grinding.