亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

To build Heritrix in Eclipse

系統(tǒng) 1930 0

?

?

To build Heritrix in Eclipse

This uses Heritrix 1.14.4 (2010 Year 5 dated 10 version is the latest version of the current situation)

1. First of all download from http://sourceforge.net/projects/archive-crawler/
heritrix-1.14.4.zip
heritrix-1.14.4-src.zip

2. In Eclipse create a java project in the works, respectively,
heritrix-1.14.4.zip
heritrix-1.14.4-src.zip to extract.

3. Will heritrix-1.14.4-src. zip Unzip the src / java in the com, org, st three files under the src folder to the project.
4. Will heritrix-1.14.4-src.zip Unzip the src in the conf folder to the project root directory .
5. Will heritrix-1.14.4-src.zip Unzip in the lib folder to the project root directory.
6. Will heritrix-1.14.4-src.zip Unzip in src / resources / org / archive / util in tlds-alpha-by-domain.txt file to the next project org.archive.util package.
7. Will heritrix-1.14.4.zip extract the webapps folder to the project root directory.
If the folder name is not in the webapps need to make the appropriate changes Heritrix.java.

        /**
     * @throws IOException
     * @return Returns the directory under which reside the WAR files
     * we're to load into the servlet container.
     */
    public static File getWarsdir()
    throws IOException {
        return getSubDir("webapps");
    }


  


8. Configuration file changes, find the conf file under the heritrix.properties

    // Set the user password  
heritrix.cmdline.admin = admin:admin
// Set port  
heritrix.cmdline.port = 8080

  


9. Jar works package on the introduction of the all the jar lib package following the introduction of engineering.
10. Org.archive.crawler.Heritrix.java found right in the project configuration options selected operating mode Classpath
Select User Entries - Advanced
Select Add Folders to add into the conf folder.
Click Start Run Run

    05:22:32.875 EVENT  Starting Jetty/4.2.23
05:22:32.937 WARN!! Delete existing temp dir C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_127_0_0_1_8080__ for WebApplicationContext[/,jar:file:/D:/workspace/jcjcd/heritrixDemo/webapps/admin.war!/]
05:22:33.062 EVENT  Started WebApplicationContext[/,Heritrix Console]
05:22:33.156 EVENT  Started SocketListener on 127.0.0.1:8080
05:22:33.156 EVENT  Started org.mortbay.jetty.Server@1f6f0bf
Heritrix version: @VERSION@

  


So far we have completed the configuration under Heritrix in Eclipse.

Now we can create a job for testing.

To build Heritrix in Eclipse

1. Http://127.0.0.1:8080 in your browser and enter the user input configuration file name password.
Two. Next, we create a job, select the navigation menu in the jobs, select CreateNewJob With defaults.

3. Were filled name, description, and to be crawling the url.
4. Select modules, here we will grab the results to create a mirror image, the default is compressed, Select Writers of org.archive.crawler.writer.ARCWriterProcessor remove and re-add a org.archive.crawler.writer.MirrorWriterProcessor
5. Select Setting bottom of the page set, many items can be set here, such as the maximum number of threads, timeout and so on.
There are two must be set
http-headers HTTP headers.
user-agent: Mozilla/5.0 (compatible; heritrix / @ VERSION @ + PROJECT_URL_HERE)
from: CONTACT_EMAIL_ADDRESS_HERE

I am here simply to replace @ VERSION @ heritrix version
PROJECT_URL_HERE local ip changed to http://
CONTACT_EMAIL_ADDRESS_HERE wrote a random email address above configuration is complete select submitjob.

To build Heritrix in Eclipse

To build Heritrix in Eclipse

6. To Console Click to start the beginning of the crawl job.
Crawl under the completed projects to see jobs in the folder can be found in the folder

To build Heritrix in Eclipse

?

?

文章來自: http://www.codeweblog.com/to-build-heritrix-in-eclipse/

http://www.codeweblog.com/search/Heritrix/

To build Heritrix in Eclipse


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 精品亚洲成a人在线观看 | 免费在线观看黄色的网站 | 狠狠干夜夜草 | 香蕉久久夜色精品国产2020 | 日韩中文字幕在线观看视频 | 日韩视频在线一区 | 一区二区在线不卡 | 亚洲成人xxx | 香蕉tv亚洲专区在线观看 | 欧美爱爱爱爱免费视频 | 四虎免费影院ww4164h | 久久免费在线 | 四虎精品影院4hutv四虎 | 亚洲专区一路线二 | 色婷婷av777| 99久久99热精品免费观看国产 | 亚洲第一成人在线 | 午夜免费播放观看在线视频 | 国产欧美亚洲精品第3页在线 | 久久视频国产 | 日本中文在线播放 | 国产v欧美v日韩在线观看 | 在线视频综合网 | 亚洲a区视频 | 久久国产乱子伦精品在 | 免费观看日本特色做爰视频在线 | 看特级大黄一片 | 色偷偷在线刺激免费视频 | 国产精品久久久久久网站 | 奇米影视中文字幕 | 97色97色97色成人 | 国产精品久久国产精品99 | 日韩欧美亚洲一区 | 午夜婷婷| 大片在线播放日本一级毛片 | 99中文在线| 久久久久久久久网站 | 精品日产一区二区 | 久久―日本道色综合久久 | 色综合天天操 | 99国产精品久久久久久久日本 |