alpatania / sassafras Goto Github PK
View Code? Open in Web Editor NEWS.A.S.S.A.F.R.A.S. : a simple automatic scholar sorter appropriate for researchers and scientists
S.A.S.S.A.F.R.A.S. : a simple automatic scholar sorter appropriate for researchers and scientists
There are works i'd like not to see in Papers, like PhD thesis or researchgate notes.
I need to find a way to filter these out as I did for sole citations index.
What would be a good RegEx search? would that be enough?
I was getting SSL exceptions, address unavailable exceptions, and occasionally URL timeout exceptions which were causing the script to terminate midway and not update the google sheet or send an e-mail. I fixed the first by setting 'validateHttpsCertificates' to false and the other exceptions with a try-catch statement. I just set it to send the exception by e-mail but perhaps there's a better way to deal with it.
Inside supporting_code.gs
function getStatusCode_(url){
Logger.log(url);
var options = {
'muteHttpExceptions': true,
'followRedirects': true,
'validateHttpsCertificates' : false
};
var url_trimmed = url.trim();
try {
var response = UrlFetchApp.fetch(url_trimmed, options);
return response.getResponseCode();
} catch(e) {
//Catch any error here. Example below is just sending an email with the error.
MailApp.sendEmail('emailAddress', 'Sample Script - Error', e);
}
Could sassafras send an email of the top 10 papers (according to relevance)?
There is a problem when the "Papers" and "Preprints" sheets are empty/newly created.
It needs an exception and automatically adding the column titles
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.