testbase64.py 288 B

12345678910111213
  1. # coding:utf-8
  2. import base64
  3. import re
  4. str = '''
  5. <script type="text/javascript">Proxy('NzcuODcuMjEuODY6ODA4MA==')</script></li>
  6. '''
  7. match = re.search('Proxy\(.+\)', str)
  8. print
  9. match.group()
  10. ip_port = base64.b64decode(match.group().replace("Proxy('", "").replace("')", ""))
  11. print
  12. ip_port