Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 24d0991

Browse files
committed
show version number from api url
1 parent 9be2aef commit 24d0991

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CloudFlare/api_decode_from_web.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ def api_decode_from_web(content):
6363

6464
soup = BeautifulSoup(content, 'html.parser')
6565

66+
for child in soup.find_all('p'):
67+
t = child.get_text()
68+
if 'Last modified' in t:
69+
sys.stderr.write("Retrieved API: %s\n" % (t.strip().replace('\n', ' ')))
70+
break
71+
6672
all_cmds = []
6773
for section in soup.find_all('section'):
6874
all_cmds += do_section(section)

0 commit comments

Comments
 (0)