From 14e1f1d08f03a45ae0599cb1beaeb69206b1a5e6 Mon Sep 17 00:00:00 2001 From: richard lee Date: Wed, 20 Sep 2017 12:06:41 +0800 Subject: [PATCH] Updated export volume info (markdown) --- export-volume-info.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/export-volume-info.md b/export-volume-info.md index 4b4caa7..53b1e89 100644 --- a/export-volume-info.md +++ b/export-volume-info.md @@ -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: