Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import re
- class steaminf:
- def __init__(self, steamfile):
- self.steamfile = open(steamfile)
- self.steaminfo = self.steamfile.read()
- self.steaminfo = self.steaminfo.replace('\r','')
- self.steamfile.close()
- def getVersion(self):
- self.version = re.findall(r'PatchVersion=(.+)',self.steaminfo)
- return self.version[0]
- def getProductName(self):
- self.productname = re.findall(r'ProductName=(.+)',self.steaminfo)
- return self.productname[0]
- def getAppId(self):
- self.appid = re.findall(r'appID=(.+)',self.steaminfo)
- return self.appid[0]
Advertisement
Add Comment
Please, Sign In to add comment