亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? adaptiverevisitfrontier.html

?? 網絡爬蟲開源代碼
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<a name="262" href="#262">262</a>             alreadyIncluded = <strong>null</strong>;<a name="263" href="#263">263</a>         }<a name="264" href="#264">264</a>         <a name="265" href="#265">265</a>         loadSeeds();<a name="266" href="#266">266</a>     }<a name="267" href="#267">267</a> <a name="268" href="#268">268</a>     <em>/**<em>*</em></em><a name="269" href="#269">269</a> <em>     * Create a UriUniqFilter that will serve as record </em><a name="270" href="#270">270</a> <em>     * of already seen URIs.</em><a name="271" href="#271">271</a> <em>     *</em><a name="272" href="#272">272</a> <em>     * @return A UURISet that will serve as a record of already seen URIs</em><a name="273" href="#273">273</a> <em>     * @throws IOException</em><a name="274" href="#274">274</a> <em>     */</em><a name="275" href="#275">275</a>     <strong>protected</strong> <a href="../../../../org/archive/crawler/datamodel/UriUniqFilter.html">UriUniqFilter</a> createAlreadyIncluded() throws IOException {<a name="276" href="#276">276</a>         <a href="../../../../org/archive/crawler/datamodel/UriUniqFilter.html">UriUniqFilter</a> uuf = <strong>new</strong> <a href="../../../../org/archive/crawler/util/BdbUriUniqFilter.html">BdbUriUniqFilter</a>(<a name="277" href="#277">277</a>                 <strong>this</strong>.controller.getBdbEnvironment());<a name="278" href="#278">278</a>         uuf.setDestination(<strong>this</strong>);<a name="279" href="#279">279</a>         <strong>return</strong> uuf;<a name="280" href="#280">280</a>     }<a name="281" href="#281">281</a>     <a name="282" href="#282">282</a>     <em>/**<em>*</em></em><a name="283" href="#283">283</a> <em>     * Loads the seeds</em><a name="284" href="#284">284</a> <em>     * &lt;p></em><a name="285" href="#285">285</a> <em>     * This method is called by initialize() and kickUpdate()</em><a name="286" href="#286">286</a> <em>     */</em><a name="287" href="#287">287</a>     <strong>public</strong> <strong>void</strong> loadSeeds() {<a name="288" href="#288">288</a>         Writer ignoredWriter = <strong>new</strong> StringWriter();<a name="289" href="#289">289</a>         <em class="comment">// Get the seeds to refresh.</em><a name="290" href="#290">290</a>         Iterator iter = <strong>this</strong>.controller.getScope().seedsIterator(ignoredWriter);<a name="291" href="#291">291</a>         <strong>while</strong> (iter.hasNext()) {<a name="292" href="#292">292</a>             <a href="../../../../org/archive/crawler/datamodel/CandidateURI.html">CandidateURI</a> caUri =<a name="293" href="#293">293</a>                 CandidateURI.createSeedCandidateURI((UURI)iter.next());<a name="294" href="#294">294</a>             caUri.setSchedulingDirective(CandidateURI.MEDIUM);<a name="295" href="#295">295</a>             schedule(caUri);<a name="296" href="#296">296</a>         }<a name="297" href="#297">297</a>         batchFlush();<a name="298" href="#298">298</a>         <em class="comment">// save ignored items (if any) where they can be consulted later</em><a name="299" href="#299">299</a>         AbstractFrontier.saveIgnoredItems(<a name="300" href="#300">300</a>                 ignoredWriter.toString(), <a name="301" href="#301">301</a>                 controller.getDisk());<a name="302" href="#302">302</a>     }<a name="303" href="#303">303</a>     <a name="304" href="#304">304</a>     <strong>public</strong> String getClassKey(<a href="../../../../org/archive/crawler/datamodel/CandidateURI.html">CandidateURI</a> cauri) {<a name="305" href="#305">305</a>         String queueKey = (String)getUncheckedAttribute(cauri,<a name="306" href="#306">306</a>                 ATTR_FORCE_QUEUE);<a name="307" href="#307">307</a>             <strong>if</strong> (<span class="string">""</span>.equals(queueKey)) {<a name="308" href="#308">308</a>                 <em class="comment">// Typical case, barring overrides</em><a name="309" href="#309">309</a>                 queueKey =<a name="310" href="#310">310</a>                     queueAssignmentPolicy.getClassKey(controller, cauri);<a name="311" href="#311">311</a>                 <em class="comment">// The queueAssignmentPolicy is always based on Hostnames</em><a name="312" href="#312">312</a>                 <em class="comment">// We may need to remove any www[0-9]{0,}\. prefixes from the</em><a name="313" href="#313">313</a>                 <em class="comment">// hostnames</em><a name="314" href="#314">314</a>                 <strong>if</strong>(((Boolean)getUncheckedAttribute(<a name="315" href="#315">315</a>                         cauri,ATTR_QUEUE_IGNORE_WWW)).booleanValue()){<a name="316" href="#316">316</a>                     queueKey = queueKey.replaceAll(<span class="string">"^www[0-9]{0,}&#47;&#47;."</span>,<span class="string">""</span>);<a name="317" href="#317">317</a>                 }<a name="318" href="#318">318</a>             }<a name="319" href="#319">319</a>             <strong>return</strong> queueKey;<a name="320" href="#320">320</a>     }<a name="321" href="#321">321</a> <a name="322" href="#322">322</a>     <em>/**<em>*</em></em><a name="323" href="#323">323</a> <em>     * Canonicalize passed uuri. Its would be sweeter if this canonicalize</em><a name="324" href="#324">324</a> <em>     * function was encapsulated by that which it canonicalizes but because</em><a name="325" href="#325">325</a> <em>     * settings change with context -- i.e. there may be overrides in operation</em><a name="326" href="#326">326</a> <em>     * for a particular URI -- its not so easy; Each CandidateURI would need a</em><a name="327" href="#327">327</a> <em>     * reference to the settings system. That's awkward to pass in.</em><a name="328" href="#328">328</a> <em>     * </em><a name="329" href="#329">329</a> <em>     * @param uuri Candidate URI to canonicalize.</em><a name="330" href="#330">330</a> <em>     * @return Canonicalized version of passed &lt;code>uuri&lt;/code>.</em><a name="331" href="#331">331</a> <em>     */</em><a name="332" href="#332">332</a>     <strong>protected</strong> String canonicalize(<a href="../../../../org/archive/net/UURI.html">UURI</a> uuri) {<a name="333" href="#333">333</a>         <strong>return</strong> Canonicalizer.canonicalize(uuri, <strong>this</strong>.controller.getOrder());<a name="334" href="#334">334</a>     }<a name="335" href="#335">335</a> <a name="336" href="#336">336</a>     <em>/**<em>*</em></em><a name="337" href="#337">337</a> <em>     * Canonicalize passed CandidateURI. This method differs from</em><a name="338" href="#338">338</a> <em>     * {@link #canonicalize(UURI)} in that it takes a look at</em><a name="339" href="#339">339</a> <em>     * the CandidateURI context possibly overriding any canonicalization effect if</em><a name="340" href="#340">340</a> <em>     * it could make us miss content. If canonicalization produces an URL that</em><a name="341" href="#341">341</a> <em>     * was 'alreadyseen', but the entry in the 'alreadyseen' database did</em><a name="342" href="#342">342</a> <em>     * nothing but redirect to the current URL, we won't get the current URL;</em><a name="343" href="#343">343</a> <em>     * we'll think we've already see it. Examples would be archive.org</em><a name="344" href="#344">344</a> <em>     * redirecting to www.archive.org or the inverse, www.netarkivet.net</em><a name="345" href="#345">345</a> <em>     * redirecting to netarkivet.net (assuming stripWWW rule enabled).</em><a name="346" href="#346">346</a> <em>     * &lt;p>Note, this method under circumstance sets the forceFetch flag.</em><a name="347" href="#347">347</a> <em>     * </em><a name="348" href="#348">348</a> <em>     * @param cauri CandidateURI to examine.</em><a name="349" href="#349">349</a> <em>     * @return Canonicalized &lt;code>cacuri&lt;/code>.</em><a name="350" href="#350">350</a> <em>     */</em><a name="351" href="#351">351</a>     <strong>protected</strong> String canonicalize(<a href="../../../../org/archive/crawler/datamodel/CandidateURI.html">CandidateURI</a> cauri) {<a name="352" href="#352">352</a>         String canon = canonicalize(cauri.getUURI());<a name="353" href="#353">353</a>         <strong>if</strong> (cauri.isLocation()) {<a name="354" href="#354">354</a>             <em class="comment">// If the via is not the same as where we're being redirected (i.e.</em><a name="355" href="#355">355</a>             <em class="comment">// we're not being redirected back to the same page, AND the</em><a name="356" href="#356">356</a>             <em class="comment">// canonicalization of the via is equal to the the current cauri, </em><a name="357" href="#357">357</a>             <em class="comment">// THEN forcefetch (Forcefetch so no chance of our not crawling</em><a name="358" href="#358">358</a>             <em class="comment">// content because alreadyseen check things its seen the url before.</em><a name="359" href="#359">359</a>             <em class="comment">// An example of an URL that redirects to itself is:</em><a name="360" href="#360">360</a>             <em class="comment">// http://bridalelegance.com/images/buttons3/tuxedos-off.gif.</em><a name="361" href="#361">361</a>             <em class="comment">// An example of an URL whose canonicalization equals its via's</em><a name="362" href="#362">362</a>             <em class="comment">// canonicalization, and we want to fetch content at the</em><a name="363" href="#363">363</a>             <em class="comment">// redirection (i.e. need to set forcefetch), is netarkivet.dk.</em><a name="364" href="#364">364</a>             <strong>if</strong> (!cauri.toString().equals(cauri.getVia().toString()) &amp;&amp;<a name="365" href="#365">365</a>                     canonicalize(cauri.getVia()).equals(canon)) {<a name="366" href="#366">366</a>                 cauri.setForceFetch(<strong>true</strong>);<a name="367" href="#367">367</a>             }<a name="368" href="#368">368</a>         }<a name="369" href="#369">369</a>         <strong>return</strong> canon;<a name="370" href="#370">370</a>     }<a name="371" href="#371">371</a> <a name="372" href="#372">372</a>     <em>/**<em>*</em></em><a name="373" href="#373">373</a> <em>     * </em><a name="374" href="#374">374</a> <em>     * @param caUri The URI to schedule.</em><a name="375" href="#375">375</a> <em>     */</em><a name="376" href="#376">376</a>     <strong>protected</strong> <strong>void</strong> innerSchedule(<a href="../../../../org/archive/crawler/datamodel/CandidateURI.html">CandidateURI</a> caUri) {<a name="377" href="#377">377</a>         <a href="../../../../org/archive/crawler/datamodel/CrawlURI.html">CrawlURI</a> curi;<a name="378" href="#378">378</a>         <strong>if</strong>(caUri instanceof <a href="../../../../org/archive/crawler/datamodel/CrawlURI.html">CrawlURI</a>) {<a name="379" href="#379">379</a>             curi = (CrawlURI) caUri;<a name="380" href="#380">380</a>         } <strong>else</strong> {<a name="381" href="#381">381</a>             curi = CrawlURI.from(caUri,System.currentTimeMillis());<a name="382" href="#382">382</a>             curi.putLong(A_TIME_OF_NEXT_PROCESSING,<a name="383" href="#383">383</a>                 System.currentTimeMillis());<a name="384" href="#384">384</a>             <em class="comment">// New CrawlURIs get 'current time' as the time of next processing.</em><a name="385" href="#385">385</a>         }<a name="386" href="#386">386</a>         <a name="387" href="#387">387</a>         <strong>if</strong>(curi.getClassKey() == <strong>null</strong>){<a name="388" href="#388">388</a>             curi.setClassKey(getClassKey(curi));<a name="389" href="#389">389</a>         }<a name="390" href="#390">390</a> <a name="391" href="#391">391</a>         <strong>if</strong>(curi.isSeed() &amp;&amp; curi.getVia() != <strong>null</strong><a name="392" href="#392">392</a>                 &amp;&amp; curi.flattenVia().length() > 0) {<a name="393" href="#393">393</a>             <em class="comment">// The only way a seed can have a non-empty via is if it is the</em><a name="394" href="#394">394</a>             <em class="comment">// result of a seed redirect.  Add it to the seeds list.</em><a name="395" href="#395">395</a>             <em class="comment">//</em><a name="396" href="#396">396</a>             <em class="comment">// This is a feature.  This is handling for case where a seed</em>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99精品久久久久久| 在线播放日韩导航| 欧美成人a∨高清免费观看| 日韩精品专区在线影院观看| 国产精品高潮呻吟久久| 蜜臀av一区二区在线免费观看| 成人激情动漫在线观看| 日韩欧美中文字幕制服| 亚洲尤物在线视频观看| 成人综合在线视频| 精品对白一区国产伦| 亚洲国产视频一区二区| 91丨国产丨九色丨pron| 久久久精品天堂| 久久精工是国产品牌吗| 欧美精品在线一区二区三区| 综合分类小说区另类春色亚洲小说欧美| 日本欧洲一区二区| 欧美日韩在线三级| 亚洲精品精品亚洲| 99久久99久久精品免费观看| 久久久久久亚洲综合| 精品一区二区免费| 欧美一区二区不卡视频| 亚洲123区在线观看| 在线免费av一区| 中文字幕综合网| av在线不卡观看免费观看| 国产三级精品视频| 大白屁股一区二区视频| 久久精品网站免费观看| 国产美女娇喘av呻吟久久| 精品卡一卡二卡三卡四在线| 久久99精品久久只有精品| 日韩三级中文字幕| 极品少妇xxxx精品少妇| 久久久天堂av| 成人久久视频在线观看| 最新热久久免费视频| 91麻豆蜜桃一区二区三区| 亚洲欧美日韩久久| 欧美三级视频在线播放| 天天综合天天做天天综合| 欧美蜜桃一区二区三区| 麻豆精品视频在线观看视频| 久久午夜色播影院免费高清| 国产精品系列在线播放| 国产精品视频观看| 日本伦理一区二区| 日本女优在线视频一区二区 | 91精品久久久久久蜜臀| 午夜精品福利一区二区蜜股av| 欧美日韩国产大片| 国产最新精品免费| 中文字幕一区三区| 欧美系列亚洲系列| 久久99精品久久久久久| 日韩一区在线免费观看| 欧美色综合网站| 国产一区激情在线| 亚洲女爱视频在线| 日韩视频国产视频| 99久久精品久久久久久清纯| 国产精品一区二区不卡| 国产精品乱码一区二三区小蝌蚪| 欧美专区日韩专区| 久久99国产精品麻豆| 国产精品萝li| 日韩午夜在线观看视频| 成人免费高清在线| 日韩高清不卡在线| 中文字幕一区二区视频| 91精品国产欧美一区二区| 成人福利在线看| 日韩精品电影在线观看| 亚洲天堂网中文字| 精品国产一区二区三区不卡 | 色婷婷久久综合| 日本女人一区二区三区| 亚洲欧美日韩人成在线播放| 精品欧美一区二区久久| 欧美视频一区在线| 成人激情文学综合网| 麻豆专区一区二区三区四区五区| 亚洲免费毛片网站| 久久久久久99久久久精品网站| 欧美系列日韩一区| www.在线成人| 国产在线国偷精品免费看| 亚洲国产日韩av| 亚洲天堂久久久久久久| 久久久国际精品| 日韩视频一区二区在线观看| 欧美午夜精品久久久久久超碰| 国产成人一区二区精品非洲| 日本美女一区二区三区| 亚洲成人av福利| 亚洲色图欧洲色图| 国产精品久久夜| 久久久99精品久久| 精品欧美久久久| 日韩欧美一级在线播放| 777午夜精品视频在线播放| 91原创在线视频| 91香蕉国产在线观看软件| 国产成人精品一区二区三区网站观看| 天天色图综合网| 日本大胆欧美人术艺术动态| 亚洲自拍偷拍图区| 一区二区三区在线视频免费| 亚洲视频免费观看| 亚洲婷婷综合久久一本伊一区| 国产精品日韩精品欧美在线| 久久久久久久综合日本| 久久免费视频色| 国产亚洲一区二区三区在线观看| 精品久久久久久久人人人人传媒 | 久久久久久久综合色一本| 欧美xxxx老人做受| 欧美精品一区二区三区很污很色的 | 欧美巨大另类极品videosbest | 日韩欧美黄色影院| 日韩欧美在线网站| 欧美xfplay| 国产婷婷精品av在线| 国产精品色在线| 国产精品动漫网站| 亚洲精品视频在线观看网站| 亚洲图片激情小说| 亚洲综合在线观看视频| 亚洲成av人片一区二区| 日本伊人色综合网| 国产精品影音先锋| 成人免费高清在线| 91福利国产精品| 欧美一区二区在线不卡| 久久久久一区二区三区四区| 综合色天天鬼久久鬼色| 性感美女久久精品| 精品伊人久久久久7777人| 成人永久免费视频| 欧美在线观看视频一区二区| 欧美一区二区三区男人的天堂| 日韩欧美国产综合| 亚洲欧洲成人精品av97| 亚洲国产精品精华液网站| 蜜桃久久久久久| 99久久国产综合精品女不卡| 欧美人伦禁忌dvd放荡欲情| 久久久亚洲高清| 一区二区三区欧美在线观看| 日本成人在线电影网| 国产不卡视频在线观看| 欧美性色综合网| 精品999在线播放| 亚洲午夜一区二区三区| 国内精品国产成人国产三级粉色 | 国产日本欧洲亚洲| 一区二区日韩av| 国产一区二区三区| 色嗨嗨av一区二区三区| 久久午夜色播影院免费高清| 亚洲最大成人网4388xx| 国产高清在线精品| 欧美另类z0zxhd电影| 亚洲国产精品成人综合| 亚洲1区2区3区4区| 97se亚洲国产综合在线| 久久九九久精品国产免费直播| 亚洲第一成年网| 91网站最新地址| 国产丝袜美腿一区二区三区| 日韩成人一级片| 欧美性大战久久| 自拍偷拍国产亚洲| 国产成人亚洲综合色影视| 欧美一级理论性理论a| 亚洲一区二区三区美女| 99久久精品免费看国产| 久久一区二区三区四区| 日本在线不卡视频| 欧美日韩国产影片| 亚洲影院久久精品| 91热门视频在线观看| 欧美国产日韩一二三区| 精品一区二区三区在线视频| 欧美人与z0zoxxxx视频| 亚洲午夜激情网站| 色香蕉成人二区免费| 国产精品福利一区二区三区| 国产精品1024| 久久久777精品电影网影网| 美女被吸乳得到大胸91| 制服丝袜在线91| 首页欧美精品中文字幕| 欧美中文字幕亚洲一区二区va在线| 一区视频在线播放| 91视频国产观看| 亚洲精品乱码久久久久久久久 | 91麻豆精品91久久久久同性|