Fixed year problem...

This commit is contained in:
2022-01-10 09:28:46 -06:00
parent acefe66f8e
commit d8c738241c
4 changed files with 37 additions and 9 deletions

View File

@@ -93,12 +93,15 @@
posts = []
for (var i = 0; i < arts.length; i++) {
var timestamp = getTimeStamp(arts[i].getElementsByTagName("abbr")[0].innerText)
console.log(timestamp)
//Not accurate
var body = arts[i].innerText
var url = getURL(arts[i])
var engagement = getEngagement(arts[i])
if(url){
posts.push({ timestamp: timestamp.toISOString(), body: body, engagement: engagement, url: url })
try {
posts.push({ timestamp: timestamp.toISOString(), body: body, engagement: engagement, url: url })
} catch(e) {}
}
}