code: def createTopicPage2():
      
      topic = TopicPage(er)
  
      topic.addCategory(er.getCategoryUri("renewable"), 50)
  
      topic.addKeyword("renewable energy", 30)
      topic.addConcept(er.getConceptUri("biofuel"), 50)
      topic.addConcept(er.getConceptUri("solar energy"), 50)
      # require that the results will mention at least one of the concepts and keywords specified
      # (even though they might have the category about renewable energy, that will not be enough
      # for an article to be among the results)
      topic.restrictToSetConceptsAndKeywords(True)
  
      # limit results to English, German and Spanish results
      topic.setLanguages(["eng", "deu", "spa"])
  
      # get results that are at most 3 days old
      topic.setMaxDaysBack(3)
  
      # require that the articles that will be returned should get at least a total score of 30 points or more
      # based on the specified list of conditions
      topic.setArticleThreshold(30)
  
      # get first page of articles sorted by date (from most recent backward) to the topic page
      arts1 = topic.getArticles(page=1,
          sortBy="date",
          returnInfo=ReturnInfo(
              articleInfo = ArticleInfoFlags(concepts=True, categories=True)
          ))
      for art in arts1.get("articles", {}).get("results", []):
          print(art)
docs: create a topic page directly, set the article threshold, restrict results to set concepts and keywords