mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-17 19:48:35 +02:00
Updated export volume info (markdown)
1 parent
ea33bfb17a
commit
14e1f1d08f
1 file changed
+2
-2
+2
-2
@@ -8,7 +8,7 @@ import json
|
||||
|
||||
out = file('out.csv', 'w')
|
||||
|
||||
// your weed master url
|
||||
# your weed master url
|
||||
url = 'http://192.64.4.35:9333/'
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ if res.status_code == 200:
|
||||
soup = BeautifulSoup(res.content, 'html.parser')
|
||||
for volume in soup.find('tbody').find_all('tr'):
|
||||
rows = volume.find_all('td')
|
||||
// use any of your weed node, I deploy openresty before my weed cluster
|
||||
# use any of your weed node, I deploy openresty before my weed cluster
|
||||
res = s.get("http://192.xxx.xx.xx/dir/lookup?volumeId=%s&pretty=y" % rows[0].text)
|
||||
result = [a.text for a in rows[:2]]
|
||||
if res.status_code == 200:
|
||||
|
||||
Reference in new issue
Block a user