每3小時要點擊他和裏的“accept”鍵才能繼續免費上網,看誰能讓它自動3小時執行一次

來源: 英台 2012-11-04 18:10:24 [] [博客] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (18286 bytes)

<html>
<head>
<title>Web Authentication</title>
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
DIV.sidebar {
    RIGHT: 0px;
    POSITION: absolute;
    TOP: -1px;
    HEIGHT: 100%;
    width: 200;
}
DIV.graybar {
    RIGHT: 0px; POSITION: absolute; TOP: 0px; HEIGHT: 100%; BACKGROUND-COLOR: #f8f8f8
}
/* background not be shown for NEC */
 
DIV.header {
    BACKGROUND-POSITION: right 50%; LEFT: 0px; BACKGROUND-IMAGE:  url(images/background_web41.jpg); WIDTH: 100%; BACKGROUND-REPEAT: repeat; POSITION: absolute; TOP: 0px; HEIGHT: 52px; BACKGROUND-COLOR: #FFFFFF}
 
 
DIV.content {
    LEFT: 14px; MARGIN: 15px; POSITION: absolute; TOP: 60px
}
H1 {
    FONT-WEIGHT: bold; FONT-SIZE: 19px; MARGIN: 16px 0px 0px 25px; COLOR: #ffffff; FONT-FAMILY: Tahoma, Arial, Helvetica, sans-serif
}
H2 {
    FONT-WEIGHT: bold; FONT-SIZE: 15px; MARGIN: 10px 0px 0px 10px; COLOR: #336666; FONT-FAMILY: Arial, Helvetica, sans-serif
}
INPUT {
    FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif
}
INPUT.button {
    MARGIN-TOP: 10px; FONT-WEIGHT: bold; WIDTH: 80px; COLOR: #ffffff; BACKGROUND-COLOR: #669999
}
P {
    FONT-SIZE: 12px; MARGIN: 0px 0px 10px; COLOR: #001133; FONT-FAMILY: Arial, Helvetica, sans-serif
}
TD {
    FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #336666; FONT-FAMILY: Arial, Helvetica, sans-serif
}
TD.message {
    FONT-WEIGHT: normal; COLOR: #000000
}
-->
</STYLE>
 
<noscript>
<meta HTTP-EQUIV="REFRESH" content="0; url=https://wirelessedmonton.edmonton.ca/login_noscript.html">
</noscript>
 
<script language="javascript" src="./loginscript.js"></script>
<script>
    var url = "";
    if(url != ""){
        var link = document.location.href;
        var searchString = "?redirect=";
        var equalIndex = link.indexOf(searchString);
        var redirectUrl = "";
        if(equalIndex > 0) {
                equalIndex += searchString.length;
                redirectUrl += link.substring(equalIndex);
                //attach the redirect url only if the ext web auth url doesn't contain it
                searchString = "&redirect=";
                equalIndex = url.indexOf(searchString);
                if(equalIndex < 0){
                    url+= "&redirect=";
                    url+=redirectUrl;
                }
        }
        window.location.href = url;
    }
 
function getErrorMsgIfAny(){
 if(document.forms[0].err_flag.value == 1){
    document.writeln(' \
     <tr align="center"> <td colspan="2" style="color:#CC0000">Login Error.</td>\
     </tr><tr align="center"> <td width="350" class="message" colspan="2">The User Name and Password combination you have entered is invalid. Please try again.</td></tr>\
    <tr> <td class="caption" colspan="2">&nbsp;</td></tr>');
 }else{
   document.writeln(' ');
 }
}
 
function unhideform(){
     document.getElementById("formId").style.display = "block";
}
</script>
</head>
<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="unhideform();">
<FORM method="post" ACTION="/login.html">
<INPUT TYPE="hidden" NAME="buttonClicked" SIZE="16" MAXLENGTH="15" VALUE="0">
<INPUT TYPE="hidden" NAME="err_flag" SIZE="16" MAXLENGTH="15" VALUE="0">
<INPUT TYPE="hidden" NAME="err_msg" SIZE="32" MAXLENGTH="31" VALUE="">
<INPUT TYPE="hidden" NAME="info_flag" SIZE="16" MAXLENGTH="15" VALUE="0">
<INPUT TYPE="hidden" NAME="info_msg" SIZE="32" MAXLENGTH="31" VALUE="">
<INPUT TYPE="hidden" NAME="redirect_url" SIZE="255" MAXLENGTH="255" VALUE="">
<div style="display:none" id="formId">
<table border="0" cellspacing=0 cellpading="0" width="100%">
   <tr>
     <td width="180" background="../../images/background_web41.jpg" align="middle" style="padding-bottom: 4px;" >
 
     <h1>Connect</h1>
     </td>
 
     <td height="53" align="right" style="padding-bottom: 4px; padding-right: 20px;" background="../../images/background_web41.jpg"></td>
 
    </tr>
    <tr>
      <td align="left" width="400">
        <div class="content">
            <table border="0" cellspacing="10" cellpadding="0">
            <tr>
                <td>
                    <table border="0" cellspacing="10" cellpadding="0">
                        <tr>
                            <th width="400" align="left">Welcome to Wireless Edmonton</th>
                        </tr>
                        <tr>
                            <td class="message" width="400" align="left">
                                The City of Edmonton's Wireless Internet Service. Use Wireless Edmonton to see all that Edmonton has to offer on www.edmonton.ca or to connect to the World Wide Web. 
 
In consideration for you being granted access to Wireless Edmonton, you must agree to the following Conditions of Use:
 
You agree to adhere to the laws of Alberta and Canada in using Wireless Edmonton, including but not limited to those laws regarding restrictions on publishing, printing, distributing, possessing, selling, advocating, promoting, or exposing, obscene material, child pornography, or hate propaganda.
 
The City of Edmonton may monitor the use of Wireless Edmonton and report any illegal use to the appropriate law enforcement authority.
 
You shall be solely responsible for any and all items or statements transmitted, posted, received or created by your session while using Wireless Edmonton, and their content, even if transmitted, posted, received or created by someone else, and you agree to indemnify and hold the City of Edmonton, its officers, employees, agents, contractors and affiliates, harmless from any loss, damage or liability which may result therefrom.
 
The City of Edmonton reserves the right to restrict access to certain sites based on our filtering software.
 
You agree that the City of Edmonton, it’s officers, employees, agents, contractors and affiliates will not be liable for any loss or damage that may result from your use or inability to use Wireless Edmonton.
 
You acknowledge that Wireless Edmonton is not guaranteed and there are no representations or warranties of any kind, including without limitation, uninterrupted or error free service, accessibility, privacy of files or e-mail.
 
BY CLICKING ON THE “ACCEPT” ICON YOU ARE INDICATING THAT YOU HAVE READ, UNDERSTAND AND ACCEPT THE CONDITIONS OF USE AND THAT YOU INTEND TO BE LEGALLY BOUND BY THEM.
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <script>
                getErrorMsgIfAny();
            </script>
            <tr>
                <td>
                    <table border="0" cellspacing="10" cellpadding="0">          
 
                        <tr>
                            <td>&nbsp;</td>
                            <td>
                                <script>getHtmlForButton("Submit","Accept","buttonStretch","submitAction()"); </script>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
 
 
            </table>
        </div>
        </td>
        <td align="right" >
            <table border="0" cellspacing="10" cellpadding="0" >
                <tr>
                    <td align="right" style="padding-top: 25px; padding-right: 20px;"
                        bgcolor="#ffffff" >
                    <div ></div></td>
                </tr>
            </table>  
        </td>
   </tr>
</table>
</div>
</FORM>
</body>
<HEAD>
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
</HEAD>
</html>

 


 

Connect

Welcome to Wireless Edmonton
The City of Edmonton's Wireless Internet Service. Use Wireless Edmonton to see all that Edmonton has to offer on www.edmonton.ca or to connect to the World Wide Web. In consideration for you being granted access to Wireless Edmonton, you must agree to the following Conditions of Use: You agree to adhere to the laws of Alberta and Canada in using Wireless Edmonton, including but not limited to those laws regarding restrictions on publishing, printing, distributing, possessing, selling, advocating, promoting, or exposing, obscene material, child pornography, or hate propaganda. The City of Edmonton may monitor the use of Wireless Edmonton and report any illegal use to the appropriate law enforcement authority. You shall be solely responsible for any and all items or statements transmitted, posted, received or created by your session while using Wireless Edmonton, and their content, even if transmitted, posted, received or created by someone else, and you agree to indemnify and hold the City of Edmonton, its officers, employees, agents, contractors and affiliates, harmless from any loss, damage or liability which may result therefrom. The City of Edmonton reserves the right to restrict access to certain sites based on our filtering software. You agree that the City of Edmonton, it’s officers, employees, agents, contractors and affiliates will not be liable for any loss or damage that may result from your use or inability to use Wireless Edmonton. You acknowledge that Wireless Edmonton is not guaranteed and there are no representations or warranties of any kind, including without limitation, uninterrupted or error free service, accessibility, privacy of files or e-mail. BY CLICKING ON THE “ACCEPT” ICON YOU ARE INDICATING THAT YOU HAVE READ, UNDERSTAND AND ACCEPT THE CONDITIONS OF USE AND THAT YOU INTEND TO BE LEGALLY BOUND BY THEM.
 

 

所有跟帖: 

每3小時要點擊這裏的“accept”鍵才能繼續免費上網,看誰能讓它自動3小時執行一次 -英台- 給 英台 發送悄悄話 英台 的博客首頁 (0 bytes) () 11/04/2012 postreply 18:14:43

每看3小時視頻自動斷網了,要打開這個“歡迎”頁麵點擊“accept”才繼續 -英台- 給 英台 發送悄悄話 英台 的博客首頁 (0 bytes) () 11/04/2012 postreply 18:20:01

忘了說明:上半部分是html代碼,下半部分是其顯示效果 -英台- 給 英台 發送悄悄話 英台 的博客首頁 (0 bytes) () 11/04/2012 postreply 18:22:19

看看Python的urllib是否能實現這個功能 -playdoh2- 給 playdoh2 發送悄悄話 (97 bytes) () 11/05/2012 postreply 10:31:57

謝謝,我需要每3個小時自動實現和點擊那個“accept”鍵一樣的功能 -英台- 給 英台 發送悄悄話 英台 的博客首頁 (0 bytes) () 11/05/2012 postreply 11:52:35

這個是不是你要找的,http://code.google.com/p/spynner/ -playdoh2- 給 playdoh2 發送悄悄話 (73 bytes) () 11/05/2012 postreply 13:25:12

這個用python + Selenium 就解決了。見代碼: -在城裏- 給 在城裏 發送悄悄話 在城裏 的博客首頁 (1524 bytes) () 11/10/2012 postreply 13:54:33

當然,如果不用每次都打開歡迎頁麵的話,就更簡單了。 -在城裏- 給 在城裏 發送悄悄話 在城裏 的博客首頁 (0 bytes) () 11/10/2012 postreply 13:57:07

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”