Example #1
0
def start():
    
    science = {
           "BBC_science":"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml",
           "USNEWS_science":"http://www.usnews.com/rss/science/index.rss"
           }
    sci = Utilities('science')
    sci.corpusGenerate(science)

    sports = {
          "CNN sports":"http://rss.cnn.com/rss/si_topstories.rss"
          }
    sprts = Utilities('sports')
    sprts.corpusGenerate(sports)

    business = {
            "BBC_business":"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/business/rss.xml",
            "CNN_business":"http://rss.cnn.com/rss/money_latest.rss",
            "USNEWS_money":"http://www.usnews.com/rss/business/index.rss"
            }
    bz = Utilities('business')
    bz.corpusGenerate(business)

    technology = {
              "technology":"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/technology/rss.xml",
              }
    tch = Utilities('technology')
    tch.corpusGenerate(technology)

    entertainment = {
                 "BBC_entertainment":"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/entertainment/rss.xml"
                 }

    ent = Utilities('entertainment')
    ent.corpusGenerate(entertainment)