Page MenuHomeDevCentral

D998.id2547.diff
No OneTemporary

D998.id2547.diff

diff --git a/pages/index.dat b/pages/index.dat
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -26,4 +26,5 @@
http://www.tandfonline.com TaylorAndFrancis
http://www.theguardian.com TheGuardian
https://www.theguardian.com TheGuardian
+https://www.wired.com/ Wired
http://www.worldcat.org/ WorldCat
diff --git a/pages/wired.php b/pages/wired.php
new file mode 100644
--- /dev/null
+++ b/pages/wired.php
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * Represents a page from the https://www.wired.com/ site.
+ */
+class WiredPage extends Page {
+ /**
+ * Analyses the page and extracts metadata
+ */
+ function analyse () {
+ parent::analyse();
+
+ // Hardcoded known info
+ $this->site = "[[Wired (magazine)|Wired]]";
+
+ // Gets date
+ $this->yyyy = substr($this->meta_tags['parsely-pub-date'], 0, 4);
+ $this->mm = substr($this->meta_tags['parsely-pub-date'], 5, 2);
+ $this->dd = substr($this->meta_tags['parsely-pub-date'], 8, 2);
+
+ // Gets author
+ $this->author = $this->meta_tags['parsely-author'];
+
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 06:02 (17 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256267
Default Alt Text
D998.id2547.diff (1 KB)

Event Timeline