Only grab the first line of the title string.
This commit is contained in:
parent
a6b691e7db
commit
8122d011e8
@ -54,7 +54,7 @@ class ServerParser(object):
|
|||||||
|
|
||||||
def _parse_server_data(self, data):
|
def _parse_server_data(self, data):
|
||||||
'''Parse the individual parts of each server.'''
|
'''Parse the individual parts of each server.'''
|
||||||
title = data.find('b').text.strip()
|
title = data.find('b').text.splitlines()[0].strip()
|
||||||
game_url = data.find('span', 'smaller').text
|
game_url = data.find('span', 'smaller').text
|
||||||
|
|
||||||
tmp = data.find('a')
|
tmp = data.find('a')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user