wget -r 으로 사이트를 긁어올때 텍스트만 긁어오기???

inniskun의 이미지

안녕하세요

매일 눈팅만 하다가..;

wget -r http://.... 로 사이트의 파일들을 하위 디렉까지 포함해서 긁어올려고 하는데...

텍스트파일만 받고 싶습니다.. 이미지나 기타등등 바이너리는 제외하고요

좋은 방법이 있을까요??

혹시 다른 스크립트언어를 이용한 방법도 괜찮습니다..

요점은 텍스트를 분석하는데 쓸데없는 자원의 낭비를 줄이기 위함입니다..

송효진의 이미지

recursive 옵션이 다양하네요.

Recursive accept/reject:
-A, --accept=LIST comma-separated list of accepted extensions.
-R, --reject=LIST comma-separated list of rejected extensions.
-D, --domains=LIST comma-separated list of accepted domains.
--exclude-domains=LIST comma-separated list of rejected domains.
--follow-ftp follow FTP links from HTML documents.
--follow-tags=LIST comma-separated list of followed HTML tags.
--ignore-tags=LIST comma-separated list of ignored HTML tags.
-H, --span-hosts go to foreign hosts when recursive.
-L, --relative follow relative links only.
-I, --include-directories=LIST list of allowed directories.
-X, --exclude-directories=LIST list of excluded directories.
-np, --no-parent don't ascend to the parent directory.

--follow-tags=a,iframe,frame
이라던가
--ignore-tags=img,object,embed
이런식이면 될 것 같네요.

emerge money
http://wiki.kldp.org/wiki.php/GentooInstallSimple - 명령어도 몇 개 안돼요~
http://xenosi.de/