nfler 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ require 'nfler/version'
2
+ require 'nfler/page'
3
+ require 'nfler/teams'
4
+ require 'nfler/team'
5
+
6
+ # Nfler is a Ruby parsing library to get NFL data, teams, scores and more...
7
+ module Nfler
8
+ end
@@ -0,0 +1,21 @@
1
+ require 'open-uri'
2
+
3
+ module Nfler
4
+
5
+ # NFLer::Page gets the body of an HTML/XML URI
6
+ module Page
7
+ class << self
8
+
9
+ # Gets the body of an HTML/XML URI
10
+ #
11
+ # @param [String] URI to get
12
+ # @return [String, nil] body of the gotten page or nil if something wrong
13
+ def get(uri)
14
+ file = OpenURI.open_uri(uri) rescue nil
15
+ file.read if file
16
+ end
17
+
18
+ end
19
+ end
20
+
21
+ end
@@ -0,0 +1,26 @@
1
+ module Nfler
2
+
3
+ # Each of the Teams in the NFL
4
+ class Team
5
+ attr_accessor :name, :short, :conference, :division, :city, :stadium, :founded, :coach, :owner
6
+
7
+ # Creates a new Team
8
+ #
9
+ # @param [Hash] data for team (name, short, area, stadium, founded, joined, coach, owner)
10
+ # @return [Team] a new Team instance
11
+ def initialize(data = {})
12
+ extract_data data
13
+ end
14
+
15
+
16
+ private
17
+
18
+ def extract_data(data = {}) #nodoc
19
+ [:name, :short, :conference, :division, :city, :stadium, :founded, :coach, :owner].each do |attribute|
20
+ send("#{attribute}=", data[attribute])
21
+ end
22
+ end
23
+
24
+ end
25
+
26
+ end
@@ -0,0 +1,79 @@
1
+ require 'nokogiri'
2
+
3
+ module Nfler
4
+
5
+ # NFL Teams
6
+ module Teams
7
+ class << self
8
+ attr_accessor :teams
9
+
10
+ # Fetches the Wikipedia NFL page and parse teams
11
+ #
12
+ # @return [Array] NFL active Teams collection
13
+ def get
14
+ page = Nfler::Page.get 'http://en.wikipedia.org/wiki/NFL'
15
+ doc = Nokogiri.parse(page)
16
+ parse_teams doc.css('table.navbox.wikitable tr')
17
+ end
18
+
19
+
20
+ private
21
+
22
+ def parse_team(team_data, conference, division) #nodoc
23
+ nodes = remove_notes(team_data)
24
+
25
+ Team.new name: nodes[0], conference: conference, division: division,
26
+ city: nodes[1], stadium: nodes[2], founded: nodes[3], joined: nodes[4],
27
+ coach: nodes[5], owner: nodes[6], short: name_to_short(nodes[0])
28
+ end
29
+
30
+ def parse_teams(teams_data) #nodoc
31
+ @teams = teams_data.reduce([]) do |teams, node|
32
+ team_data = nodes_data(node)
33
+ teams << parse_team(team_data, @conference, @division) if team_data
34
+ teams
35
+ end
36
+ end
37
+
38
+ def nodes_data(team_data) #nodoc
39
+ nodes = team_data.css('td')
40
+ heads = team_data.css('th')
41
+ if nodes.any?
42
+ @division = heads.first.text if heads.any?
43
+ nodes
44
+ else
45
+ @conference = short_conference(heads.first.text) if heads.size == 1
46
+ false
47
+ end
48
+ end
49
+
50
+ def remove_notes(nodes)
51
+ nodes.collect do |node|
52
+ node.text.gsub /(\s.|Vacant|\[\[\]\])$/, ''
53
+ end
54
+ end
55
+
56
+ def short_conference(name) #nodoc
57
+ name == 'American Football Conference' ? 'AFC' : 'NFC'
58
+ end
59
+
60
+ def name_to_short(name) #nodoc
61
+ puts 'Searching for: ' + name
62
+ teams_finder.detect {|key, value| name.to_s.match(/#{key}/i)}.last
63
+ end
64
+
65
+ def teams_finder #nodoc
66
+ {bills: 'BUF', dolphins: 'MIA', patriots: 'NE', jets: 'NYJ',
67
+ ravens: 'BAL', bengals: 'CIN', browns: 'CLE', steelers: 'PIT',
68
+ texans: 'HOU', colts: 'IND', jaguars: 'JAC', titans: 'TEN',
69
+ broncos: 'DEN', chiefs: 'KC', raiders: 'OAK', chargers: 'SD',
70
+ cowboys: 'DAL', giants: 'NYG', eagles: 'PHI', redskins: 'WAS',
71
+ bears: 'CHI', lions: 'DET', packers: 'GB', vikings: 'MIN',
72
+ falcons: 'ATL', panthers: 'CAR', saints: 'NO', buccaneers: 'TB',
73
+ cardinals: 'ARI', rams: 'STL', :'49ers' => 'SF', seahawks: 'SEA'}
74
+ end
75
+
76
+ end
77
+ end
78
+
79
+ end
@@ -0,0 +1,4 @@
1
+ module Nfler
2
+ # Nfler version
3
+ VERSION = '0.0.1'
4
+ end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/nfler/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ['Chalo Fernandez']
6
+ gem.email = ['chalofa@gmail.com']
7
+ gem.description = %q{NFL Ruby parsing library to get league data, teams, scores and more...}
8
+ gem.summary = %q{NFLer gets data from official sources about the NFL league, teams, games and scores}
9
+ gem.homepage = 'http://github.com/chalofa/nfler'
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = 'nfler'
15
+ gem.require_paths = %w(lib)
16
+ gem.version = Nfler::VERSION
17
+
18
+ gem.add_dependency 'nokogiri'
19
+
20
+ gem.add_development_dependency 'rake'
21
+ gem.add_development_dependency 'rspec'
22
+ gem.add_development_dependency 'simplecov'
23
+ gem.add_development_dependency 'fuubar'
24
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe Nfler::Teams do
4
+ subject { Nfler::Teams.get }
5
+ before do
6
+ Nfler::Page.stub! get: read_test_file('teams_wikipedia.html')
7
+ end
8
+
9
+ describe '#get' do
10
+ it 'should have Team instances inside' do
11
+ subject.first.should be_an_instance_of Nfler::Team
12
+ end
13
+ end
14
+
15
+ end
@@ -0,0 +1,27 @@
1
+ require 'open-uri'
2
+ require 'spec_helper'
3
+
4
+ describe Nfler::Page do
5
+ context 'when OK' do
6
+ before do
7
+ file = true
8
+ OpenURI.should_receive(:open_uri).with('http://google.com').and_return file
9
+ file.should_receive(:read).and_return 'PAGE'
10
+ end
11
+
12
+ it 'should return the page source' do
13
+ subject.get('http://google.com').should == 'PAGE'
14
+ end
15
+ end
16
+
17
+ context 'when error' do
18
+ before do
19
+ OpenURI.should_receive(:open_uri).with('http://my.uri')
20
+ end
21
+
22
+ it 'should return nil' do
23
+ subject.get('http://my.uri').should be_nil
24
+ end
25
+ end
26
+
27
+ end
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe Nfler::Team do
4
+
5
+ describe '#initialize' do
6
+ subject { Nfler::Team.new(name: 'Foo', stadium: 'Bar') }
7
+
8
+ it 'should use the given data' do
9
+ subject.name.should == 'Foo'
10
+ subject.stadium.should == 'Bar'
11
+ end
12
+
13
+ it 'should create an instance' do
14
+ subject.should be_instance_of Nfler::Team
15
+ end
16
+ end
17
+
18
+ end
@@ -0,0 +1,46 @@
1
+ require 'spec_helper'
2
+
3
+ describe Nfler::Teams do
4
+
5
+ describe '#get' do
6
+ context 'when table with data' do
7
+ before do
8
+ Nfler::Page.should_receive(:get).and_return read_test_file('teams_wikipedia.html')
9
+ end
10
+
11
+ it 'should return an array' do
12
+ subject.get.should be_an_instance_of Array
13
+ end
14
+
15
+ it 'should include only the 32 teams' do
16
+ subject.get.size.should == 32
17
+ end
18
+ end
19
+
20
+ context 'when nothing' do
21
+ before do
22
+ Nfler::Page.should_receive(:get).and_return ''
23
+ end
24
+
25
+ it 'should return an empty array' do
26
+ subject.get.should == []
27
+ end
28
+ end
29
+ end
30
+
31
+ # private methods
32
+ describe '#name_to_short' do
33
+ context 'when a team name' do
34
+ it 'should return the short code' do
35
+ subject.send(:name_to_short, 'Indianapolis Colts').should == 'IND'
36
+ end
37
+ end
38
+
39
+ context 'when not found' do
40
+ it 'should raise an exception' do
41
+ lambda {subject.send(:name_to_short, 'foo') }.should raise_exception
42
+ end
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,13 @@
1
+ # Code coverage http://bit.ly/wVQRUl
2
+ require 'simplecov'
3
+ SimpleCov.start 'rails'
4
+
5
+ require 'rubygems'
6
+ require 'bundler/setup'
7
+
8
+ require 'nfler'
9
+
10
+ Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each {|f| require f}
11
+
12
+ #RSpec.configure do |config|
13
+ #end
@@ -0,0 +1,4 @@
1
+ def read_test_file(file_name)
2
+ file = File.join(File.dirname(__FILE__), '..', 'test_files', file_name)
3
+ File.read file
4
+ end
@@ -0,0 +1,349 @@
1
+ <html lang="en" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml">
2
+
3
+ <head>
4
+ <title>National Football League - Wikipedia, the free encyclopedia</title>
5
+ </head>
6
+
7
+ <body>
8
+
9
+ <h2> <span class="mw-headline" id="Teams">Teams</span></h2>
10
+ <h3> <span class="mw-headline" id="Current_NFL_teams">Current NFL teams</span></h3>
11
+
12
+ <p><br />
13
+ The NFL consists of <a href="/wiki/2002_NFL_season#Expansion_and_realignment" title="2002 NFL season">thirty-two clubs</a>. Each club is allowed a maximum of fifty-three players on their roster, but may only dress forty-five to play each week during the regular season. Reflecting the population distribution of the United States as a whole, most teams are in the eastern half of the country; seventeen teams are in the <a href="/wiki/Eastern_Time_Zone" title="Eastern Time Zone">Eastern Time Zone</a> and nine others in the <a href="/wiki/Central_Time_Zone_(North_America)" title="Central Time Zone (North America)">Central Time Zone</a>.</p>
14
+ <p>Most major metropolitan areas in the United States have an NFL <a href="/wiki/Professional_sports_league_organization" title="Professional sports league organization">franchise</a>, although Los Angeles, the second-largest metropolitan area in the country, has not hosted an NFL team since 1994.</p>
15
+ <div class="rellink">Further information: <a href="/wiki/History_of_the_National_Football_League_in_Los_Angeles" title="History of the National Football League in Los Angeles">History of the National Football League in Los Angeles</a></div>
16
+ <p>The <a href="/wiki/St._Louis_Rams" title="St. Louis Rams">Rams</a> and the <a href="/wiki/Oakland_Raiders" title="Oakland Raiders">Raiders</a> called the <a href="/wiki/Los_Angeles_area" title="Los Angeles area" class="mw-redirect">Los Angeles area</a> home from 1946-1994 and 1982-1994 respectively. On August 9, 2011, the LA City Council approved plans to build <a href="/wiki/Farmers_Field" title="Farmers Field">Farmers Field</a> which could be home to an NFL team. It is unknown which team, if any, will move to the venue.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span>[</span>14<span>]</span></a></sup></p>
17
+ <p>Unlike <a href="/wiki/Major_League_Baseball" title="Major League Baseball">Major League Baseball</a>, <a href="/wiki/Major_League_Soccer" title="Major League Soccer">Major League Soccer</a>, the <a href="/wiki/National_Basketball_Association" title="National Basketball Association">National Basketball Association</a> and the <a href="/wiki/National_Hockey_League" title="National Hockey League">National Hockey League</a>, the league has no full-time teams in Canada, although the <a href="/wiki/Buffalo_Bills" title="Buffalo Bills">Buffalo Bills</a> play <a href="/wiki/Bills_Toronto_Series" title="Bills Toronto Series">one game per year</a> in Toronto. Also, there is talk of possibly <a href="/wiki/National_Football_League_in_Toronto" title="National Football League in Toronto">bringing the NFL to Toronto</a>, the largest city in Canada.</p>
18
+ <p>The <a href="/wiki/Dallas_Cowboys" title="Dallas Cowboys">Dallas Cowboys</a> are the highest valued American football franchise, valued at approximately $1.6&#160;billion<sup id="cite_ref-Forbes_14-0" class="reference"><a href="#cite_note-Forbes-14"><span>[</span>15<span>]</span></a></sup> and one of the most valuable franchises in all of professional sports worldwide, currently second<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span>[</span>16<span>]</span></a></sup> behind English soccer club <a href="/wiki/Manchester_United_F.C." title="Manchester United F.C.">Manchester United</a>,<sup id="cite_ref-Forbes_14-1" class="reference"><a href="#cite_note-Forbes-14"><span>[</span>15<span>]</span></a></sup> which has an approximate value of $1.8&#160;billion at current exchange rates.<sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span>[</span>17<span>]</span></a></sup> Since the 2002 season, the teams have been aligned as follows:</p>
19
+ <table class="navbox wikitable" style="width:100%; text-align:center">
20
+ <tr>
21
+ <th style="background:white; width:3%">Division</th>
22
+ <th style="background:white; width:20%">Team</th>
23
+ <th style="background:white; width:13%">City/Area</th>
24
+ <th style="background:white; width:24%"><a href="/wiki/List_of_current_National_Football_League_stadiums" title="List of current National Football League stadiums">Stadium</a></th>
25
+ <th style="background:white; width:9%">Founded<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span>[</span>18<span>]</span></a></sup></th>
26
+ <th style="background:white; width:5%">Joined</th>
27
+ <th style="background:white; width:12%"><a href="/wiki/List_of_current_National_Football_League_head_coaches" title="List of current National Football League head coaches">Head Coach</a></th>
28
+ <th style="background:white; width:14%"><a href="/wiki/List_of_NFL_franchise_owners" title="List of NFL franchise owners">Owner</a></th>
29
+ </tr>
30
+ <tr>
31
+ <th style="background:#E60000" colspan="8"><a href="/wiki/American_Football_Conference" title="American Football Conference"><font style="color:white;">American Football Conference</font></a></th>
32
+ </tr>
33
+ <tr>
34
+ <th style="background:white" rowspan="4"><a href="/wiki/AFC_East" title="AFC East">East</a></th>
35
+ <td><b><a href="/wiki/Buffalo_Bills" title="Buffalo Bills">Buffalo Bills</a></b></td>
36
+ <td><a href="/wiki/Orchard_Park_(town),_New_York" title="Orchard Park (town), New York">Orchard Park</a>, <a href="/wiki/New_York" title="New York">NY</a></td>
37
+ <td><a href="/wiki/Ralph_Wilson_Stadium" title="Ralph Wilson Stadium">Ralph Wilson Stadium</a> <sup>1</sup></td>
38
+ <td align="center">Oct 28, 1959</td>
39
+ <td align="center">1970</td>
40
+ <td><a href="/wiki/Chan_Gailey" title="Chan Gailey">Chan Gailey</a></td>
41
+ <td><a href="/wiki/Ralph_Wilson" title="Ralph Wilson">Ralph Wilson</a></td>
42
+ </tr>
43
+ <tr>
44
+ <td><b><a href="/wiki/Miami_Dolphins" title="Miami Dolphins">Miami Dolphins</a></b></td>
45
+ <td><a href="/wiki/Miami_Gardens,_Florida" title="Miami Gardens, Florida">Miami Gardens</a>, <a href="/wiki/Florida" title="Florida">FL</a></td>
46
+ <td><a href="/wiki/Sun_Life_Stadium" title="Sun Life Stadium">Sun Life Stadium</a></td>
47
+ <td align="center">Aug 16, 1965</td>
48
+ <td align="center">1970</td>
49
+ <td>[[]]</td>
50
+ <td><a href="/wiki/Stephen_M._Ross" title="Stephen M. Ross">Stephen M. Ross</a></td>
51
+ </tr>
52
+ <tr>
53
+ <td><b><a href="/wiki/New_England_Patriots" title="New England Patriots">New England Patriots</a></b></td>
54
+ <td><a href="/wiki/Foxborough,_Massachusetts" title="Foxborough, Massachusetts">Foxborough</a>, <a href="/wiki/Massachusetts" title="Massachusetts">MA</a></td>
55
+ <td><a href="/wiki/Gillette_Stadium" title="Gillette Stadium">Gillette Stadium</a></td>
56
+ <td align="center">Nov 22, 1959</td>
57
+ <td align="center">1970</td>
58
+ <td><a href="/wiki/Bill_Belichick" title="Bill Belichick">Bill Belichick</a></td>
59
+ <td><a href="/wiki/Robert_Kraft" title="Robert Kraft">Robert Kraft</a></td>
60
+ </tr>
61
+ <tr>
62
+ <td><b><a href="/wiki/New_York_Jets" title="New York Jets">New York Jets</a></b></td>
63
+ <td><a href="/wiki/East_Rutherford,_New_Jersey" title="East Rutherford, New Jersey">E. Rutherford</a>, <a href="/wiki/New_Jersey" title="New Jersey">NJ</a></td>
64
+ <td><a href="/wiki/MetLife_Stadium" title="MetLife Stadium">MetLife Stadium</a></td>
65
+ <td align="center">Aug 14, 1959</td>
66
+ <td align="center">1970</td>
67
+ <td><a href="/wiki/Rex_Ryan" title="Rex Ryan">Rex Ryan</a></td>
68
+ <td><a href="/wiki/Robert_Wood_Johnson_IV" title="Robert Wood Johnson IV" class="mw-redirect">Woody Johnson</a></td>
69
+ </tr>
70
+ <tr>
71
+ <th style="background:white" rowspan="4"><a href="/wiki/AFC_North" title="AFC North">North</a></th>
72
+ <td><b><a href="/wiki/Baltimore_Ravens" title="Baltimore Ravens">Baltimore Ravens</a></b></td>
73
+ <td><a href="/wiki/Baltimore" title="Baltimore">Baltimore</a>, <a href="/wiki/Maryland" title="Maryland">MD</a></td>
74
+ <td><a href="/wiki/M%26T_Bank_Stadium" title="M&amp;T Bank Stadium">M&amp;T Bank Stadium</a></td>
75
+ <td align="center">Feb 9, 1996</td>
76
+ <td align="center">1996 <sup>2</sup></td>
77
+ <td><a href="/wiki/John_Harbaugh" title="John Harbaugh">John Harbaugh</a></td>
78
+ <td><a href="/wiki/Steve_Bisciotti" title="Steve Bisciotti">Steve Bisciotti</a></td>
79
+ </tr>
80
+ <tr>
81
+ <td><b><a href="/wiki/Cincinnati_Bengals" title="Cincinnati Bengals">Cincinnati Bengals</a></b></td>
82
+ <td><a href="/wiki/Cincinnati" title="Cincinnati">Cincinnati</a>, <a href="/wiki/Ohio" title="Ohio">OH</a></td>
83
+ <td><a href="/wiki/Paul_Brown_Stadium" title="Paul Brown Stadium">Paul Brown Stadium</a></td>
84
+ <td align="center">May 23, 1967</td>
85
+ <td align="center">1970</td>
86
+ <td><a href="/wiki/Marvin_Lewis" title="Marvin Lewis">Marvin Lewis</a></td>
87
+ <td><a href="/wiki/Mike_Brown_(NFL_owner)" title="Mike Brown (NFL owner)">Mike Brown</a></td>
88
+ </tr>
89
+ <tr>
90
+ <td><b><a href="/wiki/Cleveland_Browns" title="Cleveland Browns">Cleveland Browns</a></b></td>
91
+ <td><a href="/wiki/Cleveland" title="Cleveland">Cleveland</a>, <a href="/wiki/Ohio" title="Ohio">OH</a></td>
92
+ <td><a href="/wiki/Cleveland_Browns_Stadium" title="Cleveland Browns Stadium">Cleveland Browns Stadium</a></td>
93
+ <td align="center">June 4, 1944</td>
94
+ <td align="center">1950 <sup>2</sup></td>
95
+ <td><a href="/wiki/Pat_Shurmur" title="Pat Shurmur">Pat Shurmur</a></td>
96
+ <td><a href="/wiki/Randy_Lerner" title="Randy Lerner">Randy Lerner</a></td>
97
+ </tr>
98
+ <tr>
99
+ <td><b><a href="/wiki/Pittsburgh_Steelers" title="Pittsburgh Steelers">Pittsburgh Steelers</a></b></td>
100
+ <td><a href="/wiki/Pittsburgh" title="Pittsburgh">Pittsburgh</a>, <a href="/wiki/Pennsylvania" title="Pennsylvania">PA</a></td>
101
+ <td><a href="/wiki/Heinz_Field" title="Heinz Field">Heinz Field</a></td>
102
+ <td align="center">July 8, 1933</td>
103
+ <td align="center">1933</td>
104
+ <td><a href="/wiki/Mike_Tomlin" title="Mike Tomlin">Mike Tomlin</a></td>
105
+ <td><a href="/wiki/Dan_Rooney" title="Dan Rooney">Dan Rooney</a></td>
106
+ </tr>
107
+ <tr>
108
+ <th style="background:white" rowspan="4"><a href="/wiki/AFC_South" title="AFC South">South</a></th>
109
+ <td><b><a href="/wiki/Houston_Texans" title="Houston Texans">Houston Texans</a></b></td>
110
+ <td><a href="/wiki/Houston" title="Houston">Houston</a>, <a href="/wiki/Texas" title="Texas">TX</a></td>
111
+ <td><a href="/wiki/Reliant_Stadium" title="Reliant Stadium">Reliant Stadium</a></td>
112
+ <td align="center">Oct 6, 1999</td>
113
+ <td align="center">2002</td>
114
+ <td><a href="/wiki/Gary_Kubiak" title="Gary Kubiak">Gary Kubiak</a></td>
115
+ <td><a href="/wiki/Robert_C._McNair" title="Robert C. McNair" class="mw-redirect">Bob McNair</a></td>
116
+ </tr>
117
+ <tr>
118
+ <td><b><a href="/wiki/Indianapolis_Colts" title="Indianapolis Colts">Indianapolis Colts</a></b> *</td>
119
+ <td><a href="/wiki/Indianapolis" title="Indianapolis">Indianapolis</a>, <a href="/wiki/Indiana" title="Indiana">IN</a></td>
120
+ <td><a href="/wiki/Lucas_Oil_Stadium" title="Lucas Oil Stadium">Lucas Oil Stadium</a></td>
121
+ <td align="center">Jan 23, 1953</td>
122
+ <td align="center">1953</td>
123
+ <td><a href="/wiki/Jim_Caldwell_(American_football)" title="Jim Caldwell (American football)">Jim Caldwell</a></td>
124
+ <td><a href="/wiki/Jim_Irsay" title="Jim Irsay">Jim Irsay</a></td>
125
+ </tr>
126
+ <tr>
127
+ <td><b><a href="/wiki/Jacksonville_Jaguars" title="Jacksonville Jaguars">Jacksonville Jaguars</a></b></td>
128
+ <td><a href="/wiki/Jacksonville,_Florida" title="Jacksonville, Florida">Jacksonville</a>, <a href="/wiki/Florida" title="Florida">FL</a></td>
129
+ <td><a href="/wiki/EverBank_Field" title="EverBank Field">EverBank Field</a></td>
130
+ <td align="center">Nov 30, 1993</td>
131
+ <td align="center">1995</td>
132
+ <td><a href="/wiki/Mike_Mularkey" title="Mike Mularkey">Mike Mularkey</a></td>
133
+ <td><a href="/wiki/Wayne_Weaver" title="Wayne Weaver">Wayne Weaver</a></td>
134
+ </tr>
135
+ <tr>
136
+ <td><b><a href="/wiki/Tennessee_Titans" title="Tennessee Titans">Tennessee Titans</a></b> *</td>
137
+ <td><a href="/wiki/Nashville,_Tennessee" title="Nashville, Tennessee">Nashville</a>, <a href="/wiki/Tennessee" title="Tennessee">TN</a></td>
138
+ <td><a href="/wiki/LP_Field" title="LP Field">LP Field</a></td>
139
+ <td align="center">Aug 14, 1959</td>
140
+ <td align="center">1970</td>
141
+ <td><a href="/wiki/Mike_Munchak" title="Mike Munchak">Mike Munchak</a></td>
142
+ <td><a href="/wiki/Bud_Adams" title="Bud Adams">Bud Adams</a></td>
143
+ </tr>
144
+ <tr>
145
+ <th style="background:white" rowspan="4"><a href="/wiki/AFC_West" title="AFC West">West</a></th>
146
+ <td><b><a href="/wiki/Denver_Broncos" title="Denver Broncos">Denver Broncos</a></b></td>
147
+ <td><a href="/wiki/Denver" title="Denver">Denver</a>, <a href="/wiki/Colorado" title="Colorado">CO</a></td>
148
+ <td><a href="/wiki/Sports_Authority_Field_at_Mile_High" title="Sports Authority Field at Mile High">Sports Authority Field at Mile High</a></td>
149
+ <td align="center">Aug 14, 1959</td>
150
+ <td align="center">1970</td>
151
+ <td><a href="/wiki/John_Fox_(American_football)" title="John Fox (American football)">John Fox</a></td>
152
+ <td><a href="/wiki/Pat_Bowlen" title="Pat Bowlen">Pat Bowlen</a></td>
153
+ </tr>
154
+ <tr>
155
+ <td><b><a href="/wiki/Kansas_City_Chiefs" title="Kansas City Chiefs">Kansas City Chiefs</a></b> *</td>
156
+ <td><a href="/wiki/Kansas_City,_Missouri" title="Kansas City, Missouri">Kansas City</a>, <a href="/wiki/Missouri" title="Missouri">MO</a></td>
157
+ <td><a href="/wiki/Arrowhead_Stadium" title="Arrowhead Stadium">Arrowhead Stadium</a></td>
158
+ <td align="center">Aug 14, 1959</td>
159
+ <td align="center">1970</td>
160
+ <td><a href="/wiki/Romeo_Crennel" title="Romeo Crennel">Romeo Crennel</a></td>
161
+ <td><a href="/wiki/Clark_Hunt" title="Clark Hunt">Clark Hunt</a> et al.</td>
162
+ </tr>
163
+ <tr>
164
+ <td><b><a href="/wiki/Oakland_Raiders" title="Oakland Raiders">Oakland Raiders</a></b> *</td>
165
+ <td><a href="/wiki/Oakland,_California" title="Oakland, California">Oakland</a>, <a href="/wiki/California" title="California">CA</a></td>
166
+ <td><a href="/wiki/O.co_Coliseum" title="O.co Coliseum">O.co Coliseum</a></td>
167
+ <td align="center">Jan 30, 1960</td>
168
+ <td align="center">1970</td>
169
+ <td>[[]]</td>
170
+ <td>Estate of <a href="/wiki/Al_Davis" title="Al Davis">Al Davis</a></td>
171
+ </tr>
172
+ <tr>
173
+ <td><b><a href="/wiki/San_Diego_Chargers" title="San Diego Chargers">San Diego Chargers</a></b> *</td>
174
+ <td><a href="/wiki/San_Diego" title="San Diego">San Diego</a>, <a href="/wiki/California" title="California">CA</a></td>
175
+ <td><a href="/wiki/Qualcomm_Stadium" title="Qualcomm Stadium">Qualcomm Stadium</a></td>
176
+ <td align="center">Aug 14, 1959</td>
177
+ <td align="center">1970</td>
178
+ <td><a href="/wiki/Norv_Turner" title="Norv Turner">Norv Turner</a></td>
179
+ <td><a href="/wiki/Alex_Spanos" title="Alex Spanos">Alex Spanos</a></td>
180
+ </tr>
181
+ <tr>
182
+ <th style="background:navy" colspan="8"><a href="/wiki/National_Football_Conference" title="National Football Conference"><font style="color:white;">National Football Conference</font></a></th>
183
+ </tr>
184
+ <tr>
185
+ <th style="background:white" rowspan="4"><a href="/wiki/NFC_East" title="NFC East">East</a></th>
186
+ <td><b><a href="/wiki/Dallas_Cowboys" title="Dallas Cowboys">Dallas Cowboys</a></b></td>
187
+ <td><a href="/wiki/Arlington,_Texas" title="Arlington, Texas">Arlington</a>, <a href="/wiki/Texas" title="Texas">TX</a></td>
188
+ <td><a href="/wiki/Cowboys_Stadium" title="Cowboys Stadium">Cowboys Stadium</a></td>
189
+ <td align="center">Jan 28, 1960</td>
190
+ <td align="center">1960</td>
191
+ <td><a href="/wiki/Jason_Garrett" title="Jason Garrett">Jason Garrett</a></td>
192
+ <td><a href="/wiki/Jerry_Jones" title="Jerry Jones">Jerry Jones</a></td>
193
+ </tr>
194
+ <tr>
195
+ <td><b><a href="/wiki/New_York_Giants" title="New York Giants">New York Giants</a></b></td>
196
+ <td><a href="/wiki/East_Rutherford,_New_Jersey" title="East Rutherford, New Jersey">E. Rutherford</a>, <a href="/wiki/New_Jersey" title="New Jersey">NJ</a></td>
197
+ <td><a href="/wiki/MetLife_Stadium" title="MetLife Stadium">MetLife Stadium</a></td>
198
+ <td align="center">Aug 1, 1925</td>
199
+ <td align="center">1925</td>
200
+ <td><a href="/wiki/Tom_Coughlin" title="Tom Coughlin">Tom Coughlin</a></td>
201
+ <td><a href="/wiki/John_Mara" title="John Mara">J. Mara</a> &amp; <a href="/wiki/Steve_Tisch" title="Steve Tisch">S. Tisch</a></td>
202
+ </tr>
203
+ <tr>
204
+ <td><b><a href="/wiki/Philadelphia_Eagles" title="Philadelphia Eagles">Philadelphia Eagles</a></b></td>
205
+ <td><a href="/wiki/Philadelphia" title="Philadelphia">Philadelphia</a>, <a href="/wiki/Pennsylvania" title="Pennsylvania">PA</a></td>
206
+ <td><a href="/wiki/Lincoln_Financial_Field" title="Lincoln Financial Field">Lincoln Financial Field</a></td>
207
+ <td align="center">July 8, 1933</td>
208
+ <td align="center">1933</td>
209
+ <td><a href="/wiki/Andy_Reid" title="Andy Reid">Andy Reid</a></td>
210
+ <td><a href="/wiki/Jeffrey_Lurie" title="Jeffrey Lurie">Jeffrey Lurie</a></td>
211
+ </tr>
212
+ <tr>
213
+ <td><b><a href="/wiki/Washington_Redskins" title="Washington Redskins">Washington Redskins</a></b> *</td>
214
+ <td><a href="/wiki/Landover,_Maryland" title="Landover, Maryland">Landover</a>, <a href="/wiki/Maryland" title="Maryland">MD</a></td>
215
+ <td><a href="/wiki/FedEx_Field" title="FedEx Field">FedEx Field</a></td>
216
+ <td align="center">July 9, 1932</td>
217
+ <td align="center">1932</td>
218
+ <td><a href="/wiki/Mike_Shanahan" title="Mike Shanahan">Mike Shanahan</a></td>
219
+ <td><a href="/wiki/Daniel_Snyder" title="Daniel Snyder">Daniel Snyder</a></td>
220
+ </tr>
221
+ <tr>
222
+ <th style="background:white" rowspan="4"><a href="/wiki/NFC_North" title="NFC North">North</a></th>
223
+ <td><b><a href="/wiki/Chicago_Bears" title="Chicago Bears">Chicago Bears</a></b> *</td>
224
+ <td><a href="/wiki/Chicago" title="Chicago">Chicago</a>, <a href="/wiki/Illinois" title="Illinois">IL</a></td>
225
+ <td><a href="/wiki/Soldier_Field" title="Soldier Field">Soldier Field</a></td>
226
+ <td align="center">Sep 17, 1920 <sup>3</sup></td>
227
+ <td align="center">1920</td>
228
+ <td><a href="/wiki/Lovie_Smith" title="Lovie Smith">Lovie Smith</a></td>
229
+ <td><a href="/wiki/Virginia_Halas_McCaskey" title="Virginia Halas McCaskey">V. Halas McCaskey</a></td>
230
+ </tr>
231
+ <tr>
232
+ <td><b><a href="/wiki/Detroit_Lions" title="Detroit Lions">Detroit Lions</a></b> *</td>
233
+ <td><a href="/wiki/Detroit" title="Detroit">Detroit</a>, <a href="/wiki/Michigan" title="Michigan">MI</a></td>
234
+ <td><a href="/wiki/Ford_Field" title="Ford Field">Ford Field</a></td>
235
+ <td align="center">1929</td>
236
+ <td align="center">1930</td>
237
+ <td><a href="/wiki/Jim_Schwartz" title="Jim Schwartz">Jim Schwartz</a></td>
238
+ <td><a href="/wiki/William_Clay_Ford,_Sr." title="William Clay Ford, Sr.">Bill Ford</a></td>
239
+ </tr>
240
+ <tr>
241
+ <td><b><a href="/wiki/Green_Bay_Packers" title="Green Bay Packers">Green Bay Packers</a></b></td>
242
+ <td><a href="/wiki/Green_Bay,_Wisconsin" title="Green Bay, Wisconsin">Green Bay</a>, <a href="/wiki/Wisconsin" title="Wisconsin">WI</a></td>
243
+ <td><a href="/wiki/Lambeau_Field" title="Lambeau Field">Lambeau Field</a></td>
244
+ <td align="center">Aug 11, 1919</td>
245
+ <td align="center">1921</td>
246
+ <td><a href="/wiki/Mike_McCarthy_(American_football)" title="Mike McCarthy (American football)">Mike McCarthy</a></td>
247
+ <td><a href="/wiki/Green_Bay_Packers_Board_of_Directors" title="Green Bay Packers Board of Directors">Incorporated</a></td>
248
+ </tr>
249
+ <tr>
250
+ <td><b><a href="/wiki/Minnesota_Vikings" title="Minnesota Vikings">Minnesota Vikings</a></b></td>
251
+ <td><a href="/wiki/Minneapolis" title="Minneapolis">Minneapolis</a>, <a href="/wiki/Minnesota" title="Minnesota">MN</a></td>
252
+ <td><a href="/wiki/Hubert_H._Humphrey_Metrodome" title="Hubert H. Humphrey Metrodome">Hubert H. Humphrey Metrodome</a></td>
253
+ <td align="center">Jan 28, 1960</td>
254
+ <td align="center">1961</td>
255
+ <td><a href="/wiki/Leslie_Frazier" title="Leslie Frazier">Leslie Frazier</a></td>
256
+ <td><a href="/wiki/Zygi_Wilf" title="Zygi Wilf">Zygi Wilf</a></td>
257
+ </tr>
258
+ <tr>
259
+ <th style="background:white" rowspan="4"><a href="/wiki/NFC_South" title="NFC South">South</a></th>
260
+ <td><b><a href="/wiki/Atlanta_Falcons" title="Atlanta Falcons">Atlanta Falcons</a></b></td>
261
+ <td><a href="/wiki/Atlanta" title="Atlanta">Atlanta</a>, <a href="/wiki/Georgia_(U.S._state)" title="Georgia (U.S. state)">GA</a></td>
262
+ <td><a href="/wiki/Georgia_Dome" title="Georgia Dome">Georgia Dome</a></td>
263
+ <td align="center">June 30, 1965</td>
264
+ <td align="center">1966</td>
265
+ <td><a href="/wiki/Mike_Smith_(American_football_coach)" title="Mike Smith (American football coach)">Mike Smith</a></td>
266
+ <td><a href="/wiki/Arthur_Blank" title="Arthur Blank">Arthur Blank</a></td>
267
+ </tr>
268
+ <tr>
269
+ <td><b><a href="/wiki/Carolina_Panthers" title="Carolina Panthers">Carolina Panthers</a></b></td>
270
+ <td><a href="/wiki/Charlotte,_North_Carolina" title="Charlotte, North Carolina">Charlotte</a>, <a href="/wiki/North_Carolina" title="North Carolina">NC</a></td>
271
+ <td><a href="/wiki/Bank_of_America_Stadium" title="Bank of America Stadium">Bank of America Stadium</a></td>
272
+ <td align="center">Oct 26, 1993</td>
273
+ <td align="center">1995</td>
274
+ <td><a href="/wiki/Ron_Rivera" title="Ron Rivera">Ron Rivera</a></td>
275
+ <td><a href="/wiki/Jerry_Richardson" title="Jerry Richardson">Jerry Richardson</a></td>
276
+ </tr>
277
+ <tr>
278
+ <td><b><a href="/wiki/New_Orleans_Saints" title="New Orleans Saints">New Orleans Saints</a></b></td>
279
+ <td><a href="/wiki/New_Orleans" title="New Orleans">New Orleans</a>, <a href="/wiki/Louisiana" title="Louisiana">LA</a></td>
280
+ <td><a href="/wiki/Mercedes-Benz_Superdome" title="Mercedes-Benz Superdome">Mercedes-Benz Superdome</a></td>
281
+ <td align="center">Nov 1, 1966</td>
282
+ <td align="center">1967</td>
283
+ <td><a href="/wiki/Sean_Payton" title="Sean Payton">Sean Payton</a></td>
284
+ <td><a href="/wiki/Tom_Benson" title="Tom Benson">Tom Benson</a></td>
285
+ </tr>
286
+ <tr>
287
+ <td><b><a href="/wiki/Tampa_Bay_Buccaneers" title="Tampa Bay Buccaneers">Tampa Bay Buccaneers</a></b></td>
288
+ <td><a href="/wiki/Tampa,_Florida" title="Tampa, Florida">Tampa</a>, <a href="/wiki/Florida" title="Florida">FL</a></td>
289
+ <td><a href="/wiki/Raymond_James_Stadium" title="Raymond James Stadium">Raymond James Stadium</a></td>
290
+ <td align="center">April 24, 1974</td>
291
+ <td align="center">1976</td>
292
+ <td>[[]]</td>
293
+ <td><a href="/wiki/Malcolm_Glazer" title="Malcolm Glazer">Malcolm Glazer</a></td>
294
+ </tr>
295
+ <tr>
296
+ <th style="background:white" rowspan="4"><a href="/wiki/NFC_West" title="NFC West">West</a></th>
297
+ <td><b><a href="/wiki/Arizona_Cardinals" title="Arizona Cardinals">Arizona Cardinals</a></b> *</td>
298
+ <td><a href="/wiki/Glendale,_Arizona" title="Glendale, Arizona">Glendale</a>, <a href="/wiki/Arizona" title="Arizona">AZ</a></td>
299
+ <td><a href="/wiki/University_of_Phoenix_Stadium" title="University of Phoenix Stadium">University of Phoenix Stadium</a></td>
300
+ <td align="center">1898</td>
301
+ <td align="center">1920</td>
302
+ <td><a href="/wiki/Ken_Whisenhunt" title="Ken Whisenhunt">Ken Whisenhunt</a></td>
303
+ <td><a href="/wiki/Bill_Bidwill" title="Bill Bidwill">Bill Bidwill</a></td>
304
+ </tr>
305
+ <tr>
306
+ <td><b><a href="/wiki/St._Louis_Rams" title="St. Louis Rams">St. Louis Rams</a></b> *</td>
307
+ <td><a href="/wiki/St._Louis,_Missouri" title="St. Louis, Missouri">St. Louis</a>, <a href="/wiki/Missouri" title="Missouri">MO</a></td>
308
+ <td><a href="/wiki/Edward_Jones_Dome" title="Edward Jones Dome">Edward Jones Dome</a></td>
309
+ <td align="center">1936</td>
310
+ <td align="center">1937</td>
311
+ <td><a href="/wiki/Jeff_Fisher" title="Jeff Fisher">Jeff Fisher</a></td>
312
+ <td><a href="/wiki/Stan_Kroenke" title="Stan Kroenke">Stan Kroenke</a></td>
313
+ </tr>
314
+ <tr>
315
+ <td><b><a href="/wiki/San_Francisco_49ers" title="San Francisco 49ers">San Francisco 49ers</a></b></td>
316
+ <td><a href="/wiki/San_Francisco" title="San Francisco">San Francisco</a>, <a href="/wiki/California" title="California">CA</a></td>
317
+ <td><a href="/wiki/Candlestick_Park" title="Candlestick Park">Candlestick Park</a></td>
318
+ <td align="center">June 4, 1944</td>
319
+ <td align="center">1950</td>
320
+ <td><a href="/wiki/Jim_Harbaugh" title="Jim Harbaugh">Jim Harbaugh</a></td>
321
+ <td><a href="/wiki/Jed_York" title="Jed York">Jed York</a></td>
322
+ </tr>
323
+ <tr>
324
+ <td><b><a href="/wiki/Seattle_Seahawks" title="Seattle Seahawks">Seattle Seahawks</a></b></td>
325
+ <td><a href="/wiki/Seattle" title="Seattle">Seattle</a>, <a href="/wiki/Washington_(U.S._state)" title="Washington (U.S. state)" class="mw-redirect">WA</a></td>
326
+ <td><a href="/wiki/CenturyLink_Field" title="CenturyLink Field">CenturyLink Field</a></td>
327
+ <td align="center">June 4, 1974</td>
328
+ <td align="center">1976</td>
329
+ <td><a href="/wiki/Pete_Carroll" title="Pete Carroll">Pete Carroll</a></td>
330
+ <td><a href="/wiki/Paul_Allen" title="Paul Allen">Paul Allen</a></td>
331
+ </tr>
332
+ </table>
333
+ <dl>
334
+ <dt>Chart notes</dt>
335
+ </dl>
336
+ <div class="references-small">
337
+ <dl>
338
+ <dd>An asterisk (*) denotes a franchise move. See the respective team articles for more information.</dd>
339
+ <dd>"Owner" refers to primary or majority owner; i.e. the owner that represents the team in league owners' meetings. See <a href="/wiki/List_of_NFL_franchise_owners" title="List of NFL franchise owners">List of NFL franchise owners</a> for more details.</dd>
340
+ </dl>
341
+ <ol>
342
+ <li>The Buffalo Bills play one regular game each year and one preseason game every two years from <a href="/wiki/Bills_Toronto_Series" title="Bills Toronto Series">2008-2012</a> at <a href="/wiki/Rogers_Centre" title="Rogers Centre">Rogers Centre</a> in Toronto.</li>
343
+ <li>As the result of <a href="/wiki/Cleveland_Browns_relocation_controversy" title="Cleveland Browns relocation controversy">a relocation controversy in 1996</a>, the league officially suspended operations of the Cleveland Browns while its players and personnel moved to <a href="/wiki/Baltimore" title="Baltimore">Baltimore</a> to become a new franchise called the Baltimore Ravens. As per an agreement with the two cities, the Ravens are officially regarded as a new 1996 team while the league's official history and records views the Browns as one continuous franchise that began in <a href="/wiki/1946_NFL_season" title="1946 NFL season">1946</a>, suspended operations from <a href="/wiki/1996_NFL_season" title="1996 NFL season">1996</a>-<a href="/wiki/1998_NFL_season" title="1998 NFL season">1998</a>, and resumed play in <a href="/wiki/1999_NFL_season" title="1999 NFL season">1999</a> with new players.</li>
344
+ <li>Although the club was originally established in 1919 as the company team of the <a href="/wiki/A._E._Staley" title="A. E. Staley">A. E. Staley</a> food starch company, the Chicago Bears official team and league records instead cite <a href="/wiki/George_Halas" title="George Halas">George Halas</a> as the founder after he took over control in 1920.<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span>[</span>19<span>]</span></a></sup></li>
345
+ </ol>
346
+ </div>
347
+
348
+ </body>
349
+ </html>