Skip to content

data collector for tmjournal.tk, a site about the browser game Trophy Manager

Notifications You must be signed in to change notification settings

aoliveir1/trophymanagerjournal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trophy Manager Journal

tmjournal.tk

TrophyManager.com

Extract:

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.

Automate screenshots:

Take screenshots on html elements

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

About

data collector for tmjournal.tk, a site about the browser game Trophy Manager

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages