 //
 //  NewsTableViewController.swift
-//  SidebarMenu
-//
-//  Created by Simon Ng on 2/2/15.
-//  Copyright (c) 2015 AppCoda. All rights reserved.
+//
+//
+//  Created by Josie and Phuong Dinh on April 15.
 //
 
 import UIKit

                                var articleBody   = parserArticle.body
                                if let inputArticle = articleBody?.findChildTags("a") {
                                    for node in inputArticle {
                                        var article_header = node.contents
                                        var article_url = node.getAttributeNamed("href")
                                        println(article_header)
                                        println(article_url)
                                    }

            menuButton.action = "revealToggle:"
            self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
        }
        //var article = ArticleHeader(authorString: "Nicki Minaj", titleString: "Beez in the trap", dateString: "2012-01-30", urlString: "http://www.cats.com")
        //articles.append(article)
        self.scrape()
     
//        dispatch_async(dispatch_get_global_queue(Int(QOS_CLASS_USER_INITIATED.value), 0)) { // 1
//            self.scrape()
//            dispatch_async(dispatch_get_main_queue()) {
//                // 2
//                // This is where you would reload the tableview with all the scraped thingies.
//                print("Done with scrape in NewsTableViewController!")
//            }
//        }
        
        // Uncomment the following line to preserve selection between presentations
        // self.clearsSelectionOnViewWillAppear = false
