-
Notifications
You must be signed in to change notification settings - Fork 762
YouTube
Alex Osborne edited this page Jul 4, 2018
·
2 revisions
To capture YouTube videos add the scope rules:
+http://(com,youtube,c,
+http://(com,youtube-nocookie,c,
+http://(com,ytimg,
+http://(be,youtu,
+http://(com,youtube,www,)/crossdomain.xml
and include the following in order.xml.
At the end of the extractors section:
<newObject name="ExtractorImpliedURI-YoutubeEmbedded" class="org.archive.crawler.extractor.ExtractorImpliedURI">
<boolean name="enabled">true</boolean>
<newObject name="ExtractorImpliedURI-YoutubeEmbedded#decide-rules" class="org.archive.crawler.deciderules.DecideRuleSequence">
<map name="rules">
</map>
</newObject>
<string name="trigger-regexp">^(http://(?:www.)?youtube.com)/v/([a-zA-Z0-9_-]+).*$</string>
<string name="build-pattern">$1/watch?v=$2</string>
<boolean name="remove-trigger-uris">false</boolean>
</newObject>
<newObject name="ExtractorImpliedURI-YoutubeWatchPage" class="org.archive.crawler.extractor.ExtractorImpliedURI">
<boolean name="enabled">false</boolean>
<newObject name="ExtractorImpliedURI-YoutubeWatchPage#decide-rules" class="org.archive.crawler.deciderules.DecideRuleSequence">
<map name="rules">
</map>
</newObject>
<string name="trigger-regexp"/>
<string name="build-pattern"/>
<boolean name="remove-trigger-uris">false</boolean>
</newObject>
In settings/com/youtube/settings.xml:
<object name="ExtractorImpliedURI-YoutubeWatchPage">
<boolean name="enabled">true</boolean>
<string name="trigger-regexp">^(http://[^/]*\.c\.youtube.com)/[^?]+\?(.*)$</string>
<string name="build-pattern">$1/videoplayback?$2</string>
</object>
In settings/com/youtube/c/settings.xml:
<object name="robots-honoring-policy">
<string name="type">ignore</string>
</object>
If you have questions regarding anything you see documented here, please don't hesitate to contact the list at archive-crawler at yahoogroups dot com.
Structured Guides:
User Guide
- Introduction
- New Features in 3.0 and 3.1
- Your First Crawl
- Checkpointing
- Main Console Page
- Profiles
- Heritrix Output
- Common Heritrix Use Cases
- Jobs
- Configuring Jobs and Profiles
- Processing Chains
- Credentials
- Creating Jobs and Profiles
- Outside the User Interface
- A Quick Guide to Creating a Profile
- Job Page
- Frontier
- Spring Framework
- Multiple Machine Crawling
- Heritrix3 on Mac OS X
- Heritrix3 on Windows
- Responsible Crawling
- Adding URIs mid-crawl
- Politeness parameters
- BeanShell Script For Downloading Video
- crawl manifest
- JVM Options
- Frontier queue budgets
- BeanShell User Notes
- Facebook and Twitter Scroll-down
- Deduping (Duplication Reduction)
- Force speculative embed URIs into single queue.
- Heritrix3 Useful Scripts
- How-To Feed URLs in bulk to a crawler
- MatchesListRegexDecideRule vs NotMatchesListRegexDecideRule
- WARC (Web ARChive)
- When taking a snapshot Heritrix renames crawl.log
- YouTube
- H3 Dev Notes for Crawl Operators
- Development Notes
- Spring Crawl Configuration
- Build Box
- Potential Cleanup-Refactorings
- Future Directions Brainstorming
- Documentation Wishlist
- Web Spam Detection for Heritrix
- Style Guide
- HOWTO Ship a Heritrix Release
- Heritrix in Eclipse