w******w 发帖数: 215 | 1 I want to extract certain texts from web pages. The page may contain many
links
and I have to click links to see whether contents of links are related or not.
If there are related contents, I will copy and save related paragraphs into
a text tile; if not, I need go back and check the next link.
Can anyone tell me that what language I should use? Will scripts do this work?
What kinds of script?
Many thanks! | s**i 发帖数: 381 | 2 perl or python, IMHO
not.
work?
【在 w******w 的大作中提到】 : I want to extract certain texts from web pages. The page may contain many : links : and I have to click links to see whether contents of links are related or not. : If there are related contents, I will copy and save related paragraphs into : a text tile; if not, I need go back and check the next link. : Can anyone tell me that what language I should use? Will scripts do this work? : What kinds of script? : Many thanks!
| t***i 发帖数: 3 | 3 python吧,regular expression据说比perl的要好使,我没用过perl,只是道听途说。
用re处理网页相当方便。
【在 w******w 的大作中提到】 : I want to extract certain texts from web pages. The page may contain many : links : and I have to click links to see whether contents of links are related or not. : If there are related contents, I will copy and save related paragraphs into : a text tile; if not, I need go back and check the next link. : Can anyone tell me that what language I should use? Will scripts do this work? : What kinds of script? : Many thanks!
| N*********y 发帖数: 105 | 4 Remember, if you are not skilled in programming and algorithm. Only describe
your task, do NOT describe your unefficient algorithm, otherwise you will be
limited to a bad result.
not.
work?
【在 w******w 的大作中提到】 : I want to extract certain texts from web pages. The page may contain many : links : and I have to click links to see whether contents of links are related or not. : If there are related contents, I will copy and save related paragraphs into : a text tile; if not, I need go back and check the next link. : Can anyone tell me that what language I should use? Will scripts do this work? : What kinds of script? : Many thanks!
|
|