Commit Graph
1766 Commits
Author SHA1 Message Date
Noah Levitt a64551296a new boolean forceFetch setting; REQUEST_HEADER_BLACKLIST to exclude certain http headers, since with https://github.com/internetarchive/umbra/pull/55 umbra sends over more stuff 2016-02-18 18:15:22 -08:00
Noah Levitt 8a6a49f7fc ARI-4528 avoid this exception
2016-02-18 01:44:46.434 SEVERE thread-51 org.archive.crawler.spring.SheetOverlaysManager.applyOverlaysTo() problem determining whether to apply overlays, so not applying [ignoreCookies] to https://static.xx.fbcdn.net/rsrc.php/v2/yY/r/z9xrgSKFbeZ.js
java.lang.NullPointerException
        at org.archive.spring.KeyedProperties.get(KeyedProperties.java:65)
        at org.archive.modules.deciderules.DecideRule.getEnabled(DecideRule.java:38)
        at org.archive.modules.deciderules.DecideRule.decisionFor(DecideRule.java:57)
        at org.archive.modules.deciderules.DecideRule.accepts(DecideRule.java:77)
        at org.archive.crawler.spring.SheetOverlaysManager.applyOverlaysTo(SheetOverlaysManager.java:331)
        at org.archive.crawler.postprocessor.CandidatesProcessor.runCandidateChain(CandidatesProcessor.java:170)
        at org.archive.crawler.frontier.AMQPUrlReceiver$UrlConsumer.handleDelivery(AMQPUrlReceiver.java:321)
        at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:140)
        at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:76)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
2016-02-17 17:53:05 -08:00
Noah Levitt 13322111b5 run received urls through the candidates processor, to check scope and schedule them with the frontier 2016-01-15 17:46:27 -08:00
Noah Levitt 25a7aa9c8d Merge pull request #141 from vonrosen/ARI-4659
Disable SNI for a request if that request failed due to an SNI error …
2016-01-15 11:13:42 -08:00
Noah Levitt cc97f01656 Merge pull request #123 from kris-sigur/HostsReport
Hosts report
2016-01-15 10:33:07 -08:00
Noah Levitt 70c688a4f5 Merge pull request #135 from vonrosen/ARI-4562
Allow KnowledgableExtractorJS to parse out youtube watch from youtube…
2016-01-15 10:15:23 -08:00
Hunter 02e3a554f0 Merge pull request #142 from nlevitt/form-login-multipart
Form login multipart
2016-01-15 08:19:23 -08:00
Noah Levitt 368d586eb1 fix NullPointerException when using old HtmlFormCredential login 2016-01-14 16:00:08 -08:00
Noah Levitt 3b12a751e1 to make this branch only about multipart/form-data, undo the changes to handle more complicated forms with extra input fields; add unit test; store CrawlURI submit data in http-library agnostic way and remove httpcomponents-specific code from HTMLForm, refactor creation of post data accordingly 2016-01-14 12:17:19 -08:00
Hunter Stern 309847cc40 Be sure to return at least one of the candidates 2016-01-14 12:05:38 -08:00
Hunter Stern 704ec62487 Remove unneeded constant 2016-01-14 12:05:38 -08:00
Hunter Stern a2a39fe052 Make sure to check form encoding type when addign form to curi data 2016-01-14 12:05:38 -08:00
Hunter Stern 93bca3d55c More changes for https://webarchive.jira.com/browse/ARI-4656 2016-01-14 12:05:38 -08:00
Hunter Stern 4997014b34 More changes 2016-01-14 12:05:38 -08:00
Hunter Stern ad329ceea8 Save enctype of form in submission curi 2016-01-14 12:05:38 -08:00
Hunter Stern 34cffd512a Add ability to submit forms with enctype="multipart/form-data" 2016-01-14 12:05:38 -08:00
Hunter Stern afa4f6535b If multiple username inputs in login form, favor the one with the word 'login' in it. 2016-01-14 12:05:38 -08:00
Hunter Stern 5f630e4268 Make regex more inclusive for parsing out youtube videoId and add youtube watch page as relative to base 2016-01-14 09:03:42 -08:00
Hunter Stern 7bcdf03a78 Merge branch 'master' of github.com:internetarchive/heritrix3 into ARI-4562 2016-01-14 08:48:39 -08:00
Hunter eeeea6f0c4 Merge pull request #122 from nlevitt/form-login-checked-boxes
only submit checkbox and radio button form fields if they are on by d…
2016-01-14 08:00:49 -08:00
Adam Miller bf2a887688 Merge pull request #138 from nlevitt/novel-quotas
crawl level and host level limits on *novel* (not deduplicated) bytes and urls
2016-01-13 16:25:24 -08:00
Noah Levitt 9e4c7f0024 Merge branch 'master' into novel-quotas
* master:
  license header
  check that sourceTag of CrawlURI actually matches configured sourceTag
  remove already-outdated stuff from javadoc
  handle multiple clauses for same user agent in robots.txt
  Hook in submitted seeds properly.
  avoid spurious logging
  try very hard to start url consumer, and therefore bind the queue to the routing key, so that no messages are dropped, before crawling starts (should always work unless rabbitmq is down); some other tweaks for clarity and stability
2016-01-13 13:44:54 -08:00
Adam Miller b82896927a Merge pull request #132 from nlevitt/amqp-url-receiver-changes
try very hard to start url consumer, and therefore bind the queue to …
2016-01-13 13:35:43 -08:00
Noah Levitt df5748d1f1 Merge pull request #136 from ukwa/amqp-declare-recieved-seeds
Register seeds send in via AMQP
2016-01-13 13:27:43 -08:00
Noah Levitt 22336fb71b fix stats in unusual case of "failed" fetch with response > 0 (only case where this can happen currently is if basic auth is configured for a url, but fails and url returns "401 Unauthorized") 2016-01-12 17:34:27 -08:00
Hunter Stern 73be17af06 Disable SNI for a request if that request failed due to an SNI error 'javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name' 2016-01-12 16:58:48 -08:00
Adam Miller 3dbf754d56 Merge pull request #137 from nlevitt/seed-limits
SourceSeedDecideRule, SeedLimitsEnforcer
2016-01-12 16:39:17 -08:00
Noah Levitt 65a1077425 license header 2016-01-12 14:59:45 -08:00
Neil Minton 32dd07375d Merge pull request #139 from nlevitt/robots-sep-sections
handle multiple clauses for same user agent in robots.txt
2016-01-11 18:39:25 -06:00
Noah Levitt 8918ce99c6 check that sourceTag of CrawlURI actually matches configured sourceTag 2015-12-15 11:24:53 -08:00
Noah Levitt 7a8a614804 avoid exception in case applyToSubdomains is enabled and configured host is an ip address 2015-12-15 11:06:33 -08:00
Noah Levitt a95519543d avoid exception in case applyToSubdomains is enabled and CrawlURI host is a nonstandard host like "dns:" in HostQuotaEnforcer 2015-12-15 11:02:38 -08:00
Noah Levitt e3e6bfeb11 new HostQuotaEnforcer option applyToSubdomains, to additionally apply the quotas (separately) to each subdomain of the configured host 2015-12-14 18:17:44 -08:00
Noah Levitt 2f82d43110 remove already-outdated stuff from javadoc 2015-12-14 15:24:08 -08:00
Noah Levitt 6f9c235fd0 fix javadoc 2015-12-14 15:23:16 -08:00
Noah Levitt 013029d9ad fix annotation copy-paste-o 2015-12-14 15:22:51 -08:00
Noah Levitt 99c5af0cf2 comment out currently failing test (needs webarchive-commons pull request merged) 2015-12-14 10:46:50 -08:00
Noah Levitt 2a56886c01 add license header 2015-12-14 10:46:14 -08:00
Noah Levitt 8deead15ec new class to enforce quotas on a host 2015-12-11 17:02:32 -08:00
Noah Levitt f1173789f7 fix test now that ContentDigestHistoryTest.shouldProcess() is smarter 2015-12-11 16:13:17 -08:00
Noah Levitt c05678e296 CrawlLimitEnforcer support for maxWarcNovelBytes and maxWarcNovelUrls, with tests 2015-12-11 16:08:47 -08:00
Noah Levitt 38931f152a handle multiple clauses for same user agent in robots.txt 2015-12-11 15:42:16 -08:00
Noah Levitt dfc1dd940e tally warc novel content bytes and warc novel urls in CrawledBytesHistotable, with tests 2015-12-11 12:49:02 -08:00
Noah Levitt c20a06ec27 Merge branch 'seed-limits' into novel-quotas -- so I can add tests to StatisticsSelfTest.java in this branch
* seed-limits:
  change class originally known as SeedLimitsEnforcer to SourceQuotaEnforcer; make it a Processor instead of a DecideRule (because checking quota at link scoping time doesn't work, since many urls which would go over quota can be added to the frontier); support quotas on any of the fields tracked by CrawledBytesHistotable
  fix checkpointing problems with new statsBySource
  SeedLimitsEnforcer (contrib) DecideRule that rejects CrawlURI if source seed byte or document limit has been reached
  SourceSeedDecideRule applies the configured decision for any URI with discovered from one of a set of seeds
  add support to StatisticsTracker to keep a CrawledBytesHistotable per source tag when trackSources is enabled; integration test for this functionality
2015-12-11 11:35:11 -08:00
Noah Levitt 87f70c3e6a WARCLimitEnforcer to enforce limits (by stopping the crawl job) on any of the stats kept by WARCWriterProcessor 2015-12-11 11:26:11 -08:00
Noah Levitt 294cfa3524 limited test of warc writer stats 2015-12-11 11:22:03 -08:00
Noah Levitt 9ce12d2dbe add warc stats to CrawlURI.getData() dynamic attributes list after writing records; new method WARCWriterProcessor.getStats() to expose cumulative stats 2015-12-11 11:21:05 -08:00
Noah Levitt 35a7954882 refactor FetchStats to be a subclass of CrawledBytesHistotable, to remove redundant code 2015-12-11 11:05:44 -08:00
Noah Levitt 566c1a600d remove warning which can be misleading if crawl is configured to write only certain urls to warcs 2015-12-11 11:01:26 -08:00
Noah Levitt cce07084e5 CrawlLimitEnforcer support for maxNovelBytes and maxNovelUrls, with tests 2015-12-09 17:15:34 -08:00