l***s 发帖数: 11 | 1 i want to code to achieve the following:
1. open a website/webpage
2. log on the website using an account and password. click 'submit' button
3. after log on, i want to parse the webpage shown to me. e.g. i want to
download files following some links on the webpage.
so instead of doing this mannually, i want to write a program to automate
this process.
pls suggest a programming language (php, vb, jscript...) and explain how to
do it. THANKS!!! | s*******d 发帖数: 4135 | 2 give me some money, i can help you.
to
【在 l***s 的大作中提到】 : i want to code to achieve the following: : 1. open a website/webpage : 2. log on the website using an account and password. click 'submit' button : 3. after log on, i want to parse the webpage shown to me. e.g. i want to : download files following some links on the webpage. : so instead of doing this mannually, i want to write a program to automate : this process. : pls suggest a programming language (php, vb, jscript...) and explain how to : do it. THANKS!!!
| c***c 发帖数: 21374 | 3 suggest很容易
php perl java,都可以
explain how to do? 呵呵,可不是几句话的事情
to
【在 l***s 的大作中提到】 : i want to code to achieve the following: : 1. open a website/webpage : 2. log on the website using an account and password. click 'submit' button : 3. after log on, i want to parse the webpage shown to me. e.g. i want to : download files following some links on the webpage. : so instead of doing this mannually, i want to write a program to automate : this process. : pls suggest a programming language (php, vb, jscript...) and explain how to : do it. THANKS!!!
| m***a 发帖数: 38 | 4
wget -post-data xxxxx URL -O page.html
this will post the account/passwd, and save the page to page.html
You must know HTML form. check man page of wget to learn about -post-data
sed
use sed to extract the string out
you must be very UNIX or ask a UNIX-acquaited friend.
to
【在 l***s 的大作中提到】 : i want to code to achieve the following: : 1. open a website/webpage : 2. log on the website using an account and password. click 'submit' button : 3. after log on, i want to parse the webpage shown to me. e.g. i want to : download files following some links on the webpage. : so instead of doing this mannually, i want to write a program to automate : this process. : pls suggest a programming language (php, vb, jscript...) and explain how to : do it. THANKS!!!
| i******y 发帖数: 70 | 5 Learn HTTP protocol and socket programming and look at the documents from
the language of your choice. (I believe every popular programming language
can do this.)
For example, python: http://docs.python.org/lib/module-urllib.html, http://docs.python.org/lib/module-httplib.html, http://docs.python.org/lib/module-urlparse.html, ....
to
【在 l***s 的大作中提到】 : i want to code to achieve the following: : 1. open a website/webpage : 2. log on the website using an account and password. click 'submit' button : 3. after log on, i want to parse the webpage shown to me. e.g. i want to : download files following some links on the webpage. : so instead of doing this mannually, i want to write a program to automate : this process. : pls suggest a programming language (php, vb, jscript...) and explain how to : do it. THANKS!!!
|
|