Changeset 21050
- Timestamp:
- 10/09/08 18:46:42 (5 years ago)
- Files:
-
- 1 modified
-
lang/python/cidr-mobilejp/trunk/scrape.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/python/cidr-mobilejp/trunk/scrape.py
r4198 r21050 36 36 37 37 def url(self): 38 return 'http:// developers.softbankmobile.co.jp/dp/tech_svc/web/ip.php'38 return 'http://creation.mb.softbank.jp/web/web_ip.html' 39 39 40 40 def run(self): 41 41 content = urllib.urlopen(self.url()).read() 42 42 n = self.name() 43 pattern = '< FONT size="2" class="j10".*?>([\d\./]+)</FONT>'43 pattern = '<td bgcolor="#eeeeee"> ([\d\./]+)</td>' 44 44 return [(ip, n) for ip in re.findall(pattern, content, re.M)] 45 45
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)