cc-warc-examples | CommonCrawl WARC/WET/WAT examples
kandi X-RAY | cc-warc-examples Summary
kandi X-RAY | cc-warc-examples Summary
CommonCrawl WARC/WET/WAT examples and processing code for Java + Hadoop
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Runs the WAT server
- Runs the WET word count job
- Runs the Hadoop job
- Initialize the WARC reader
- The main entry point
- Start the HAT server
- Release resources
cc-warc-examples Key Features
cc-warc-examples Examples and Code Snippets
Community Discussions
Trending Discussions on cc-warc-examples
QUESTION
I am attempting to create a database of Digital Object Identifier (DOI) found on the internet.
By manually searching the CommonCrawl
Index Server manually I have obtained some promising results.
However I wish to develop a programmatic solution.
This may result in my process only requiring to read the index files and not the underlying WARC data files.
The manual steps I wish to automate are these:-
1). for each CommonCrawl
Currently available index collection(s):
2). I search ... "Search a url in this collection: (Wildcards -- Prefix: http://example.com/* Domain: *.example.com)
" e.g. link.springer.com/*
3). this returns almost 6MB of json data that contains approx 22K unique DOIs.
How can I browse all available CommonCrawl
indexes instead of searching for specific URLs?
From reading the API documentation for CommonCrawl I cannot see how I can browse all the indexes to extract all DOIs for all domains.
UPDATE
I found this example java code https://github.com/Smerity/cc-warc-examples/blob/master/src/org/commoncrawl/examples/S3ReaderTest.java
that shows how to access a common crawl dataset.
However when I run it I receive this exception
...ANSWER
Answered 2017-Jul-28 at 08:23The data set location has changed since more than one year, see announcement. However, many examples and libraries still contain the old pointers. You can access the index files for all crawls back to 2013 on s3://commoncrawl/cc-index/collections/CC-MAIN-YYYY-WW/indexes/cdx-00xxx.gz
- replace YYYY-WW
with year and week of the crawle and expand xxx
to 000-299 to get all 300 index parts. New crawl data is announced on the Common Crawl group, or read more about how to access the data.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cc-warc-examples
You can use cc-warc-examples like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the cc-warc-examples component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page