[tor-commits] [ooni-probe/master] Updates regexp for updated check.tpo

art at torproject.org art at torproject.org
Tue Dec 3 17:09:39 UTC 2013


commit 05a225698cedf71ef3f328010e3372da067fb29f
Author: aagbsn <aagbsn at extc.org>
Date:   Fri Nov 22 19:07:18 2013 +0000

    Updates regexp for updated check.tpo
---
 ooni/geoip.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ooni/geoip.py b/ooni/geoip.py
index 2971ca6..7544af5 100644
--- a/ooni/geoip.py
+++ b/ooni/geoip.py
@@ -96,7 +96,7 @@ class TorProjectGeoIP(HTTPGeoIPLookupper):
     url = "https://check.torproject.org/"
 
     def parseResponse(self, response_body):
-        regexp = "Your IP address appears to be: <b>((\d+\.)+(\d+))"
+        regexp = "Your IP address appears to be:  <strong>((\d+\.)+(\d+))"
         probe_ip = re.search(regexp, response_body).group(1)
         return probe_ip
 





More information about the tor-commits mailing list