[Cryptech-Commits] [user/sra/build-tools] branch master updated: Trac markup changed, update kludgy screen scraping code to match.

git at cryptech.is git at cryptech.is
Fri Dec 23 19:25:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository user/sra/build-tools.

The following commit(s) were added to refs/heads/master by this push:
     new 34ecad1  Trac markup changed, update kludgy screen scraping code to match.
34ecad1 is described below

commit 34ecad1d04c6b3add8077315bac1f954002fb7da
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Fri Dec 23 14:23:16 2016 -0500

    Trac markup changed, update kludgy screen scraping code to match.
---
 https-sync-repos.py | 2 +-
 https-what-repos.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/https-sync-repos.py b/https-sync-repos.py
index ff1dd90..4b4c735 100755
--- a/https-sync-repos.py
+++ b/https-sync-repos.py
@@ -18,7 +18,7 @@ head = "https://git.cryptech.is/"
 tail = ".git"
 errs = 0
 
-for elt in ElementTree(file = urlopen(trac_page)).iter("{http://www.w3.org/1999/xhtml}tt"):
+for elt in ElementTree(file = urlopen(trac_page)).iter("{http://www.w3.org/1999/xhtml}code"):
     if elt.text.startswith(head) and elt.text.endswith(tail):
         url  = elt.text
         repo = url[len(head):-len(tail)]
diff --git a/https-what-repos.py b/https-what-repos.py
index 5b66f19..eec3e39 100755
--- a/https-what-repos.py
+++ b/https-what-repos.py
@@ -9,6 +9,6 @@ from xml.etree.ElementTree      import ElementTree
 
 url = "https://wiki.cryptech.is/wiki/GitRepositories"
 
-for x in ElementTree(file = urlopen(url)).iter("{http://www.w3.org/1999/xhtml}tt"):
+for x in ElementTree(file = urlopen(url)).iter("{http://www.w3.org/1999/xhtml}code"):
     if x.text.startswith("https://git.cryptech.is/") and x.text.endswith(".git"):
         print x.text

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list