Merge pull request #43 from Ruochenfu2011/patch-1
Fixing xpath for parsing servers
This commit is contained in:
commit
1055628241
1 changed files with 1 additions and 2 deletions
|
@ -193,8 +193,7 @@ class Client:
|
||||||
serverstree = lxml.html.fromstring(serverspage.content)
|
serverstree = lxml.html.fromstring(serverspage.content)
|
||||||
|
|
||||||
servers = serverstree.xpath(
|
servers = serverstree.xpath(
|
||||||
'//div[@class="servers"]/div'
|
'//div[@class="server-body"]/@data-id'
|
||||||
'/div[@class="server-body"]/@data-id'
|
|
||||||
)
|
)
|
||||||
self.refresh_servers(servers)
|
self.refresh_servers(servers)
|
||||||
|
|
||||||
|
|
Reference in a new issue