forked from Aloisius/ia-web-commons
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WAT extractor: add attributes of the <html> element as metadata,
fixes #35 - add lang attributes from <html> root element as metadata { "name": "HTML@/lang", "content": "es-MX" }
- Loading branch information
1 parent
456635c
commit 581b43a
Showing
3 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
src/test/resources/org/archive/resource/html/html-lang-attribute.warc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
WARC/1.0 | ||
WARC-Type: response | ||
WARC-Date: 2024-12-05T10:47:02Z | ||
Content-Length: 169 | ||
Content-Type: application/http; msgtype=response | ||
WARC-Target-URI: https://www.example.org/1 | ||
WARC-Identified-Payload-Type: text/html | ||
|
||
HTTP/1.1 200 | ||
content-type: text/html; charset=UTF-8 | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Test</title> | ||
</head> | ||
<body/> | ||
</html> | ||
|
||
|
||
|
||
WARC/1.0 | ||
WARC-Type: response | ||
WARC-Date: 2024-12-05T10:47:02Z | ||
Content-Length: 185 | ||
Content-Type: application/http; msgtype=response | ||
WARC-Target-URI: https://www.example.org/2 | ||
WARC-Identified-Payload-Type: text/html | ||
|
||
HTTP/1.1 200 | ||
content-type: text/html; charset=UTF-8 | ||
|
||
<!DOCTYPE html> | ||
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Test</title> | ||
</head> | ||
<body/> | ||
</html> | ||
|
||
|
||
|
||
WARC/1.0 | ||
WARC-Type: response | ||
WARC-Date: 2024-12-05T10:47:02Z | ||
Content-Length: 158 | ||
Content-Type: application/http; msgtype=response | ||
WARC-Target-URI: https://www.example.org/3 | ||
WARC-Identified-Payload-Type: text/html | ||
|
||
HTTP/1.1 200 | ||
content-type: text/html; charset=UTF-8 | ||
|
||
<!DOCTYPE html> | ||
<html dir="ltr" lang="cs-cz"> | ||
<head> | ||
<title>Test</title> | ||
</head> | ||
<body/> | ||
</html> | ||
|
||
|
||
|
||
WARC/1.0 | ||
WARC-Type: response | ||
WARC-Date: 2024-12-05T10:47:02Z | ||
Content-Length: 319 | ||
Content-Type: application/http; msgtype=response | ||
WARC-Target-URI: https://www.example.org/4 | ||
WARC-Identified-Payload-Type: text/html | ||
|
||
HTTP/1.1 200 | ||
content-type: text/html; charset=UTF-8 | ||
|
||
<!DOCTYPE html> | ||
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" style="overflow-x: hidden !important;"> | ||
<head> | ||
<title>Test</title> | ||
</head> | ||
<body/> | ||
</html> | ||
|
||
|
||
|
||
WARC/1.0 | ||
WARC-Type: response | ||
WARC-Date: 2024-12-05T10:47:02Z | ||
Content-Length: 189 | ||
Content-Type: application/http; msgtype=response | ||
WARC-Target-URI: https://www.example.org/5 | ||
WARC-Identified-Payload-Type: text/html | ||
|
||
HTTP/1.1 200 | ||
content-type: text/html; charset=UTF-8 | ||
|
||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-MX"> | ||
<head> | ||
<title>Test</title> | ||
</head> | ||
<body/> | ||
</html> | ||
|
||
|
||
|