Home | Webstore
Latest News: OOTP 25 Available - FHM 10 Available - OOTP Go! Available

Out of the Park Baseball 25 Buy Now!

  

Go Back   OOTP Developments Forums > Prior Versions of Our Games > Out of the Park Baseball 20 > OOTP 20 - Technical Support > Bug Reports Forum
Register Blogs FAQ Calendar Today's Posts Search

Bug Reports Forum Have a bug to report? Please post here.

Reply
 
Thread Tools
Old 08-19-2019, 08:56 AM   #1
mnapoleon
Minors (Rookie Ball)
 
Join Date: Jun 2014
Posts: 47
Game Logs HTML malformed or just plain messy in some cases

League files has been FTP'd as RodanLeague.lg.zip

I've been working on a Python program to extract individual pitch data fro the html games logs. This program uses the BeautifulSoup python library to basically do a web scrape of these html files. Looking for certain elements and text I can extract data like called strike vs a swinging strike, at bat out comes, exit velocity, etc.

I've found that a lot of my game logs have malformed html that result in my program not working in all cases.
Just viewing the html from these logs that are bad result in really messy output in a browser.

Some examples of things I find in the html are

substitution into html not happening
Code:
<tr>
		<td valign="top" width="268px" class="dl">
			Batti[%B]	Batting: LHB <a href="../players/player_13000.html">Aydin [%N]	0-0:[%N]	0[%N]	1-0: Ground o[%N]	0-1: Ball
		</td>
		<td class="dl" width="700px">
			1-1: Foul Ball, location: 2F*1-2: Ball*2-2: Foul Ball, location: 2F*2-2: Ball*3-2: Base on Balls
		</td>
	</tr>
or
link tags that are lacking the 'href' element
Code:
<th colspan="2" align="left" style="padding:4px 0px 4px 4px;">
			Eden Garden Appleseeds batting - Pitching for Port Berth Armada : LHP <a /players/player_10031.html">Jamal Saiki</a>
		</th>
There are just a few of the thinks I've found.

I've attached the logs from my program as well as a two of the bad logs. My almanac contains quite a few more.

Last edited by mnapoleon; 08-19-2019 at 09:24 AM.
mnapoleon is offline   Reply With Quote
Old 08-19-2019, 09:14 AM   #2
mnapoleon
Minors (Rookie Ball)
 
Join Date: Jun 2014
Posts: 47
I've attempted to follow the instructions on uploading leagues files but the link in the sticky thread with instructions just leads to a generic 'Not Found' page.

This is the link I'm talking about.
https://support.ootpdevelopments.com...p-developments
mnapoleon is offline   Reply With Quote
Old 08-19-2019, 09:24 AM   #3
mnapoleon
Minors (Rookie Ball)
 
Join Date: Jun 2014
Posts: 47
Actually I figured out how to FTP the league file. It is now there as RodanLeague.lg.zip
mnapoleon is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:27 AM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright © 2020 Out of the Park Developments