Site
Home / Forum / General Discussion / [Request] Script to create tennis events

[Request] Script to create tennis events


Posted: 07 Apr 2021 19:59

zag


Posts: 3,511
Joined: 2020

Bumped rounds possible to 120 on the add page. Already exists on the edit page I believe.

Posted: 08 Apr 2021 18:58

Ovokx

Posts: 1,768
Joined: 2020

Here is the script I've come up with. https://drive.google.com/file/d/1Wz2Zq1nCmC1-koMyHZ3NAcy-NOo8ZaUl/view?usp=sharing

It's not as quick as I would've hoped, but better than adding manually.

Please read the comments in the script for where to put your username, password etc.

You'll need to wait for round numbers above 50 to be added before being able to add whole years, even with the script that could take 1 hour+ to add.


I think I'll be busy this weekend! Thank you!!!!!

Posted: 01 May 2021 09:10

Ovokx

Posts: 1,768
Joined: 2020

Finally I get some spare time to play with the script, but I'm getting this error:


Traceback (most recent call last):
File "/Users/Never/Desktop/TSDB Tennis/TSDB Tennis.py", line 6, in
from webdriver_manager.chrome import ChromeDriverManager
ModuleNotFoundError: No module named 'webdriver_manager'


In the past with other script I changed this:

driver = webdriver.Chrome(ChromeDriverManager().install())
Into this and it worked:

PATH = "/Users/Never/Downloads/chromedriver" # Add the path to your Chrome webdriver here.
driver = webdriver.Chrome(PATH)


This time I had no luck


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 25 to 28 (Total: 28)