Gets the tips from all users of one league from the Spätzles Liga and saves it into a excel file. The excel file must be specific for the league and on the first worksheet must be for the tip entry.
Note: The template for the excel file is currently not open source.
- .NET Framework 4.7
- Microsoft Excel (tested on Excel 2007+)
Note: All row/column indizes based on the worksheet for tip entries.
- Compile the source or download a binary
- Create a textfile called
config.txt
in the same directory like theSpätzleCrawler.exe
file - Insert the configurations for the leagues described below
- Enter the matches of the current Bundesliga matchday into columns
B
(home team) andE
(away team) in the Excel file- All previously matchdays needed at least one result in column
C
(home goals) - The current matchday is the first matchday with no results in column
C
- All previously matchdays needed at least one result in column
- Start the crawler (via explorer or command line)
- Enter the thread url of the current tipping thread
- The crawler tries to parse the tips:
- Read the userlist stored in row
2
from columnL
to the first not merged cell in the row - Download all pages in the thread, mostly 5 oder 6
- Getting post data (URL, username and content without quotes)
- Parse the matches between the users if one post with all usernames is found
- Parse the tips from all users
- Note if parsing is not successfully the crawler will write the post url to the console and log file
- Read the userlist stored in row
- The crawler save the matches between the users and their tips
- The user for the matches will be stored in column
G
andJ
- The usertips will be stored from column
L
upwards, one match per row
- The user for the matches will be stored in column
- See log file for troubleshooting
Multiple league support was introduced in Version 2.0. With Version 1.0 only one leage can be crawled and config.txt stored only the file path to the excel file in the first line.
If you want to crawl one ore more leagues in V2.0, you need for each leage an own excel file. Comments to the end of the line can be started with #
.
Each league is described as own line with league name and the config file in the following format:
League name = C:\Path\To\Excel\File.xlsx
Sample config.txt:
# Sample Crawler Config
Liga 1=%USERPROFILE%\Dokumente\liga1.xlsx
Liga 2=C:\Users\User\Dokumente\liga2.xlsx