Web 创建有助于更快、更有效地呈现成绩的脚本

Web 创建有助于更快、更有效地呈现成绩的脚本,web,login,Web,Login,我是一名高中生,对自己的成绩相当关心,当我通过一个名为的系统检查成绩时,所花的时间有点痛苦 我想知道是否有可能根据预先输入的登录用户名和密码,用任何一种被认为合适的语言为我构建一个脚本来登录,然后在一个漂亮的布局中显示我的分数百分比,而不是现在显示的那种笨拙和混乱的布局 我猜这可能很难做到,也可能是我目前无法做到的,甚至是不可能做到的,但我只是认为这是一个相当酷的想法,并在寻找任何建议 另外,我不知道哪种语言最适合这个,所以我肯定需要这方面的帮助 你可以试试Greasemonkey,它可以让你在

我是一名高中生,对自己的成绩相当关心,当我通过一个名为的系统检查成绩时,所花的时间有点痛苦

我想知道是否有可能根据预先输入的登录用户名和密码,用任何一种被认为合适的语言为我构建一个脚本来登录,然后在一个漂亮的布局中显示我的分数百分比,而不是现在显示的那种笨拙和混乱的布局

我猜这可能很难做到,也可能是我目前无法做到的,甚至是不可能做到的,但我只是认为这是一个相当酷的想法,并在寻找任何建议


另外,我不知道哪种语言最适合这个,所以我肯定需要这方面的帮助

你可以试试Greasemonkey,它可以让你在Firefox中创建“用户脚本”。这样,您就可以使用Javascript重新组织界面。

您可以尝试Greasemonkey,它允许您在Firefox中创建“用户脚本”。通过这种方式,您可以使用Javascript来重新组织界面。

好吧,下面是我在PHP中利用cURL库对它的看法:

PHP绝对不适合这项任务。然而,在语言中设置您想要的内容是相当容易的

<?php
error_reporting(-1);

$ch = curl_init();
/*Some sites block your access if you do not have cookies enabled. In order to get the cookies you will need to submit the form manually and using a packet sniffer (or Firebug) get the cookies that are being sent.*/
//$cookies ="CFID=25318504; CFTOKEN=38400766; PERSON_ID=3461047"; 

/*Again, if you have Firebug then getting the following POST data, once you submit the form manually, fairly straightforward. This is what cURL will utilize in the POST fields*/
 //The action=submit may also vary, this is also easily acceible via Firebug. (right next to the parameters tab.   
$post_data = "username=test&password=test&action=submit";



curl_setopt($ch, CURLOPT_URL, "http://www.sitename.com");
//follows a Location: redirect
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
//send above cookies, which were gathered manually =(
//Utilize this only if cookies are a neccesity.
//curl_setopt($ch, CURLOPT_COOKIE, $cookies);
//Doing a POST request
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$output = curl_exec($ch);

curl_close($ch);
if($output == false) {
    echo "cURL Error:" . curl_error($ch);
}
//You can sort this data using an HTML parser
echo $output;

好吧,下面是我在PHP中利用cURL库对它的看法:

PHP绝对不适合这项任务。然而,在语言中设置您想要的内容是相当容易的

<?php
error_reporting(-1);

$ch = curl_init();
/*Some sites block your access if you do not have cookies enabled. In order to get the cookies you will need to submit the form manually and using a packet sniffer (or Firebug) get the cookies that are being sent.*/
//$cookies ="CFID=25318504; CFTOKEN=38400766; PERSON_ID=3461047"; 

/*Again, if you have Firebug then getting the following POST data, once you submit the form manually, fairly straightforward. This is what cURL will utilize in the POST fields*/
 //The action=submit may also vary, this is also easily acceible via Firebug. (right next to the parameters tab.   
$post_data = "username=test&password=test&action=submit";



curl_setopt($ch, CURLOPT_URL, "http://www.sitename.com");
//follows a Location: redirect
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
//send above cookies, which were gathered manually =(
//Utilize this only if cookies are a neccesity.
//curl_setopt($ch, CURLOPT_COOKIE, $cookies);
//Doing a POST request
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$output = curl_exec($ch);

curl_close($ch);
if($output == false) {
    echo "cURL Error:" . curl_error($ch);
}
//You can sort this data using an HTML parser
echo $output;

我认为这个问题目前的形式无法回答。可能太宽泛了。你有什么建议我补充吗?是的,当然有可能。我会把学习一门新语言所需的时间,发展剧本,尝试和错误,最后实现,我不知道,改为学校。另外,我不确定你们学校对你们在他们的网站上运行脚本会有什么感觉,他们可能会在发现后故意破坏你们的脚本。好的,关于哪种语言适合这类事情有什么建议吗?我一直在学习一些简单的JS、jQuery、C#和ASP.NETI。我不相信这个问题能以目前的形式得到回答。可能太广泛了。你有什么建议我补充吗?是的,当然有可能。我会把学习一门新语言所需的时间,发展剧本,尝试和错误,最后实现,我不知道,改为学校。另外,我不确定你们学校对你们在他们的网站上运行脚本会有什么感觉,他们可能会在发现后故意破坏你们的脚本。好的,关于哪种语言适合这类事情有什么建议吗?我一直在学习一些简单的JS、jQuery、C#和ASP.NETHey,酷!谢谢你!我一定要看看这个!谢谢!!嘿,酷!谢谢你!我一定要看看这个!谢谢!!