Page MenuHomeDevCentral

D998.diff
No OneTemporary

D998.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
Fri, Nov 22, 14:50 (15 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256267
Default Alt Text
D998.diff (1 KB)

Event Timeline