insert_data.py
I extract game data basically through web scraping.
Before season start I collect all the links of all fixtures of the season.
Basically I store all data in two databases (well, my bad architecture).
I managed to separate in lists which countries have their games earlier so I can run the collection as soon as the games are finishing.
screenshots.py
In fact I need help in some points:
1 - If is possible determine window size of a headless browser. I can't run a headless browser in full screen mode.
2 - Well, I don't mind the point 1 if I could take a screenshot of full page even without full screen mode setting the property full of method screenshot().
Didn't work for me: screenshot_path = browser.screenshot('absolute_path/your_screenshot.png', full=True)
3 - Get the size and coordinates of a element easier than this: table_location = table._dict_['_element'].location
Didn't work: element.location and element.size.
See this script in action: Automate screenshots