adjusted GetArticles for php cli