question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cdx format, includes json

See original GitHub issue

Dear helgeho,

The common crawl its cdx files have a different structure then you library expects. au,com,canberratimes)/business/mining-and-resources/bhp-on-the-hunt-for-new-chief-ft-20121106-28x2j 20170820020911 {"url": "http://www.canberratimes.com.au/business/mining-and-resources/bhp-on-the-hunt-for-new-chief-ft-20121106-28x2j", "mime": "text/html", "mime-detected": "text/html", "status": "200", "digest": "KZDZMH5BCMZJOCZPQCRUOTAPYH2CYQVJ", "length": "35157", "offset": "509044848", "filename": "crawl-data/CC-MAIN-2017-34/segments/1502886105961.34/warc/CC-MAIN-20170820015021-20170820035021-00503.warc.gz"}

I will implement the support for this, since your library seems really promising. When it works i will send you a pull request.

Another question would it be a good idea to publish your library to mvn central? This would enable more people to use it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
ikreymercommented, Sep 25, 2017

FWIW, the format is simply called CDXJ, and there’s not yet an official standard for it… but essentially just keeping the url key and timestamp as header (for sorting) and using a JSON block for the rest of the fields… It should be easy to support in general and allows for flexibility as far as what fields are included. There should be a spec for the exact format used by CommonCrawl. Will let you know when I have a chance to do that, if that helps at all. Or, happy to answer any questions about the format.

0reactions
helgehocommented, Mar 9, 2018

This should not be an issue as the DataSpec API has not changed since 2.5, and as you have defined ArchiveSpark as provided in your build.sbt, using it with a newer version of ArchiveSpark will just work I guess (not tested though).

Best, Helge

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object Tag Object - CDX Format Specification - CambridgeSoft
Description: Arbitrarily named property, one or more of which can be attached to any ChemDraw object. This object can be used to associate...
Read more >
A Brief Introduction to the ChemDraw CDX File Format
CDX files store nested object representations, not unlike XML or JSON. CambridgeSoft currently documents 38 object types, including: ...
Read more >
CDX musings | Software Development at Royal Danish Library
JSON is not the most compact format when dealing with tables of data, but it has the flexibility of offering entry-specific fields.
Read more >
CDXJ Server API — pywb 2.7 documentation
output=cdxj (default) native format used by pywb, it consists of a space-delimited url timestamp followed by a JSON dictionary (url timestamp {…}) ·...
Read more >
2015-09-10: CDXJ: An Object Resource Stream Serialization ...
JSON, XML, and YAML (a more human readable format) are all single root node document formats, which means a single document serialized in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found