abcde-at-the-movies 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +33 -0
- data/Rakefile +15 -0
- data/VERSION +1 -0
- data/lib/at_the_movies.rb +7 -0
- data/lib/at_the_movies/interview.rb +13 -0
- data/lib/at_the_movies/parser.rb +19 -0
- data/lib/at_the_movies/parsers.rb +24 -0
- data/lib/at_the_movies/parsers/interview.rb +24 -0
- data/lib/at_the_movies/parsers/review.rb +58 -0
- data/lib/at_the_movies/review.rb +33 -0
- data/lib/at_the_movies/version.rb +3 -0
- data/lib/core_ext.rb +1 -0
- data/lib/core_ext/enumerable.rb +6 -0
- data/spec/at_the_movies/interview_spec.rb +33 -0
- data/spec/at_the_movies/parser_spec.rb +8 -0
- data/spec/at_the_movies/parsers/interview_spec.rb +17 -0
- data/spec/at_the_movies/parsers/review_spec.rb +17 -0
- data/spec/at_the_movies/parsers_spec.rb +36 -0
- data/spec/at_the_movies/review_spec.rb +66 -0
- data/spec/helpers/page.rb +10 -0
- data/spec/pages/reviews +940 -0
- data/spec/pages/s1533013.htm +2058 -0
- data/spec/pages/s2625654.htm +434 -0
- data/spec/pages/s2625717.htm +435 -0
- data/spec/pages/s2625733.htm +435 -0
- data/spec/pages/s2625742.htm +435 -0
- data/spec/pages/s2631026.htm +416 -0
- data/spec/pages/s2634329.htm +414 -0
- data/spec/pages/s2642594.htm +421 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +15 -0
- metadata +100 -0
@@ -0,0 +1,421 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: Apache
|
3
|
+
Content-Type: text/html
|
4
|
+
Cache-Control: max-age=283
|
5
|
+
Expires: Thu, 20 Aug 2009 02:40:38 GMT
|
6
|
+
Date: Thu, 20 Aug 2009 02:35:55 GMT
|
7
|
+
Content-Length: 18145
|
8
|
+
Connection: keep-alive
|
9
|
+
Set-Cookie: ABCGuestID=210.9.88.55.185971250735755742; expires=Thu, 20-Aug-2009 03:05:55 GMT; path=/; domain=abc.net.au
|
10
|
+
|
11
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
12
|
+
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
13
|
+
<html>
|
14
|
+
<head>
|
15
|
+
<title>At the Movies: The Cove Interview</title>
|
16
|
+
|
17
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
18
|
+
|
19
|
+
<meta name="Title" content="At the Movies: The Cove Interview">
|
20
|
+
|
21
|
+
<meta name="Description" content="">
|
22
|
+
|
23
|
+
<meta name="Keywords" content="Margaret Pomeranz, , , , , , , ">
|
24
|
+
|
25
|
+
<meta name="Date" content="19/08/2009">
|
26
|
+
|
27
|
+
<meta name="Language" content="English">
|
28
|
+
|
29
|
+
<meta name="Publisher" content="Australian Broadcasting Corporation">
|
30
|
+
|
31
|
+
<meta name="Publisher" content="(SCHEME=URL)">
|
32
|
+
|
33
|
+
<meta name="Rights" content="Copyright 2009 , Australian Broadcasting Corporation. Other rights may be held as detailed in text. www.abc.net.au/common/copyrigh.htm">
|
34
|
+
|
35
|
+
<meta name="ABC-DateReversed" content="">
|
36
|
+
|
37
|
+
<meta name="ABC-Gateway" content="">
|
38
|
+
|
39
|
+
<meta name="ABC-Site" content="TV, Movie/Film">
|
40
|
+
|
41
|
+
<meta name="ABC-Author" content="interview">
|
42
|
+
|
43
|
+
<meta name="ABC-ResourceType" content="0">
|
44
|
+
|
45
|
+
<meta http-equiv="imagetoolbar" content="no">
|
46
|
+
<link rel="stylesheet" href="/atthemovies/css/atm.css" type="text/css" media="all">
|
47
|
+
<link rel="stylesheet" type="text/css" media="print" href="/atthemovies/css/print.css">
|
48
|
+
<script type="text/javascript" src="/tv/cinerama/scripts/swfobject.js"></script>
|
49
|
+
<script type="text/javascript" src="/tv/cinerama/scripts/cinerama.js"></script>
|
50
|
+
<script language="JavaScript" type="text/javascript">
|
51
|
+
//add onload function audShow;
|
52
|
+
function addEvent(obj, evType, fn){
|
53
|
+
if (obj.addEventListener){
|
54
|
+
obj.addEventListener(evType, fn, false);
|
55
|
+
return true;
|
56
|
+
} else if (obj.attachEvent){
|
57
|
+
var r = obj.attachEvent("on"+evType, fn);
|
58
|
+
return r;
|
59
|
+
} else {
|
60
|
+
return false;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
function audShow() {
|
65
|
+
// display word count only if js enabled
|
66
|
+
document.getElementById("wordCount").style.display='inline';
|
67
|
+
}
|
68
|
+
function changeAction() {
|
69
|
+
// avoids non-js form submission
|
70
|
+
if (document.revForm) {
|
71
|
+
document.revForm.action = 'http://www2b.abc.net.au/guestbookcentral/addentry.asp';
|
72
|
+
}
|
73
|
+
}
|
74
|
+
addEvent(window, 'load', audShow);
|
75
|
+
addEvent(window, 'load', changeAction);
|
76
|
+
function formCheck(zeForm) {
|
77
|
+
// validate fields
|
78
|
+
if (zeForm.name.value == "") {
|
79
|
+
alert("Please enter your name or nickname.");
|
80
|
+
document.getElementById("yname").style.background='#FFFDC8';
|
81
|
+
return false;
|
82
|
+
}
|
83
|
+
if (zeForm.email.value == "") {
|
84
|
+
alert("Please enter your email address.");
|
85
|
+
document.getElementById("yemail").style.background='#FFFDC8';
|
86
|
+
return false;
|
87
|
+
}
|
88
|
+
// have they left a rating
|
89
|
+
if (zeForm.score.options[0].selected && zeForm.score.options[0].value=="na") {
|
90
|
+
alert("You forgot to rate the movie!");
|
91
|
+
document.getElementById("score").style.background='#FFFDC8';
|
92
|
+
return false;
|
93
|
+
}
|
94
|
+
|
95
|
+
// check for http
|
96
|
+
spamcheck=zeForm.remark.value;
|
97
|
+
if (spamcheck.indexOf("http")!=-1) {
|
98
|
+
document.revForm.action = 'http://www.abc.net.au/atthemovies/audience/blank.htm';
|
99
|
+
}
|
100
|
+
|
101
|
+
// check word count
|
102
|
+
wct = cnt(zeForm.remark.value);
|
103
|
+
if (wct > 100) {
|
104
|
+
alert("Comments are limited to 100 words. You've written "+wct+" words!");
|
105
|
+
document.getElementById("remark").style.background='#FFFDC8';
|
106
|
+
return false;
|
107
|
+
}
|
108
|
+
|
109
|
+
// replace usual suspect bad characters (they break XML)
|
110
|
+
badChars = Array ('�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�','�','�');
|
111
|
+
goodChars = Array ('...', '-', '-', '"', '"', 'o', 'e', 'e', 'n', 'a', '-', '\'','\'','\'');
|
112
|
+
fld = document.getElementById("remark");
|
113
|
+
for(i=0;i<badChars.length;i++){
|
114
|
+
restring = new RegExp( badChars[i] , 'g');
|
115
|
+
fld.value = fld.value.replace(restring,goodChars[i]);
|
116
|
+
}
|
117
|
+
fldn = document.getElementById("yname");
|
118
|
+
for(j=0;j<badChars.length;j++){
|
119
|
+
restringj = new RegExp( badChars[j] , 'g');
|
120
|
+
fldn.value = fldn.value.replace(restringj,goodChars[j]);
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
// display thankyou div layer and hide form.
|
126
|
+
document.getElementById("favFormThx").style.display='block';
|
127
|
+
document.getElementById("favForm").style.display='none';
|
128
|
+
document.getElementById("wordCount").style.display='none';
|
129
|
+
|
130
|
+
// all clear, submit the form
|
131
|
+
return true;
|
132
|
+
}
|
133
|
+
|
134
|
+
// word count function
|
135
|
+
function cnt(theform){
|
136
|
+
var y=theform;
|
137
|
+
var r = 0;
|
138
|
+
a=y.replace('\n',' ');
|
139
|
+
a=a.split(' ');
|
140
|
+
for (z=0; z<a.length; z++) {if (a[z].length > 0) r++;}
|
141
|
+
return r;
|
142
|
+
}
|
143
|
+
|
144
|
+
function remainingWords(textAreaContent,textAreaContentValue, maxWords)
|
145
|
+
{
|
146
|
+
// Determine the number of words we have left
|
147
|
+
var numberofwords = cnt(textAreaContentValue);
|
148
|
+
wordsLeft = maxWords - numberofwords;
|
149
|
+
if (wordsLeft < 1)
|
150
|
+
{ // if 100 change color to red
|
151
|
+
document.getElementById("wcNum").style.color='red';
|
152
|
+
} else {
|
153
|
+
document.getElementById("wcNum").style.color='#330000';
|
154
|
+
}
|
155
|
+
// update word count number
|
156
|
+
document.getElementById("wcNum").innerHTML=(0+numberofwords);
|
157
|
+
}
|
158
|
+
|
159
|
+
// windows media alt box
|
160
|
+
function showWindows() {
|
161
|
+
document.getElementById("windowsMed").style.display='block';
|
162
|
+
}
|
163
|
+
</script>
|
164
|
+
|
165
|
+
<style type="text/css">
|
166
|
+
/* temp */
|
167
|
+
#windowsMed {display:none;float:right;width:150px;background:#0d0d0d}
|
168
|
+
|
169
|
+
</style>
|
170
|
+
<style type="text/css">
|
171
|
+
/* tmp styles */
|
172
|
+
#content #storyImage #altWinMedia {
|
173
|
+
background:#0d0d0d;
|
174
|
+
height:23px;
|
175
|
+
margin:3px 3px 0px 3px;
|
176
|
+
font-size:11px;
|
177
|
+
}
|
178
|
+
#content #storyImage #altWinMedia a {color:#D47F2A}
|
179
|
+
#content #storyImage #altWinMedia span {display:block;color:#ABABAB;padding:4px 5px 0px 0px;}
|
180
|
+
|
181
|
+
.hideorshow-review {display:none}
|
182
|
+
.hideorshow-interview {
|
183
|
+
display:block;
|
184
|
+
}
|
185
|
+
|
186
|
+
</style>
|
187
|
+
</head><body>
|
188
|
+
<div id="globalnav">
|
189
|
+
<!-- ABC nav: Global Nav -->
|
190
|
+
<style type="text/css"><!--
|
191
|
+
@import url(http://www.abc.net.au/includes/css/globalNav.css); -->
|
192
|
+
</style>
|
193
|
+
<div id="gN_Nav">
|
194
|
+
<div id="gN_align">
|
195
|
+
<form action="http://search.abc.net.au/search/search.cgi" method="GET" id="gN_form" target="_top">
|
196
|
+
<input type="hidden" name="form" value="simple">
|
197
|
+
<input type="hidden" name="num_ranks" value="20">
|
198
|
+
<input type="hidden" name="collection" value="abcall">
|
199
|
+
<label for="gN_query"><a href="http://search.abc.net.au/search/search.cgi?collection=abcall&form=simple" target="_top" title="Search the ABC">Search the ABC</a></label>
|
200
|
+
<input type="text" id="gN_query" name="query" value="" size="20" maxlength="30">
|
201
|
+
<input type="submit" id="gN_submit" value="Search the ABC" title="Search the ABC">
|
202
|
+
</form>
|
203
|
+
<p id="gN_text"><a id="gN_home" href="http://www.abc.net.au/" target="_top">ABC Home</a><span> | </span><a id="gN_radio" class="pipe" href="http://www.abc.net.au/radio/" target="_top">Radio</a><span> | </span><a id="gN_tv" class="pipe" href="http://www.abc.net.au/tv/" target="_top">Television</a><span> | </span><a id="gN_news" class="pipe" href="http://www.abc.net.au/news/" target="_top">News</a><span> | </span><a id="gN_local" class="pipe" href="http://www.abc.net.au/local/" target="_top">Your Local ABC</a><span> | </span><a id="gN_more" class="pipe" href="http://www.abc.net.au/subjects.htm" target="_top">More Subjects…</a><span> | </span><a id="gN_shop" href="http://shop.abc.net.au/" target="_top">Shop</a></p>
|
204
|
+
</div>
|
205
|
+
</div>
|
206
|
+
<script type="text/javascript" src="http://www.abc.net.au/includes/scripts/global.js"></script>
|
207
|
+
<noscript>
|
208
|
+
<img alt="" border="0" name="DCSIMG" width="1" height="1" src="http://statse.webtrendslive.com/dcsg85fae000004n0vfjpj8oa_9m4q/njs.gif?dcsuri=/nojavascript&WT.js=No">
|
209
|
+
</noscript>
|
210
|
+
<!-- end ABC nav -->
|
211
|
+
|
212
|
+
</div>
|
213
|
+
<!-- END GLOBALNAV //-->
|
214
|
+
<div id="outerWrap"></div>
|
215
|
+
<div id="banner">
|
216
|
+
<a href="http://www.abc.net.au/atthemovies/" target="_top"><img src="/atthemovies/img/1p.gif" alt="At the Movies" class="title"></a>
|
217
|
+
<div id="masthead">
|
218
|
+
Wed 10pm, Sun 6pm <em>ABC1</em>; Sat 8pm <em>ABC2</em>
|
219
|
+
</div>
|
220
|
+
<!-- END MASTHEAD //-->
|
221
|
+
<div id="search">
|
222
|
+
<form action="http://search.abc.net.au/search/search.cgi" method="GET" name="simple">
|
223
|
+
<input type=hidden name="form" value="simple">
|
224
|
+
<input type=hidden name="scope" value="atthemovies">
|
225
|
+
<input type=hidden name="num_ranks" value="20">
|
226
|
+
<input type=hidden name="collection" value="tv">
|
227
|
+
Search <!--Search by <input type="radio" name="meta_a" value="review">review <input type="radio" name="meta_a" value="interview">interview--> <input type="text" name="query" value="" title="Search At the Movies" size="14" id="searchbox"> <input type="submit" value="Go" title="Search At the Movies" id="searchbutton"></form>
|
228
|
+
</div>
|
229
|
+
<!-- END SEARCH //-->
|
230
|
+
<div id="functions"><a title="Email this page to a friend" href="/cgi-bin/common/mailto/mailto-nojs_query.pl?http://www.abc.net.au/atthemovies/txt/s2642594.htm">Send to a friend</a></div>
|
231
|
+
<!-- END FUNCTIONS //-->
|
232
|
+
</div>
|
233
|
+
<!-- END BANNER //-->
|
234
|
+
<table id="contentcontainer" align="center" cellpadding="0" cellspacing="0" border="0" summary="Layout table used to contain content">
|
235
|
+
<caption class="hidden">
|
236
|
+
<a href="/atthemovies/">At the Movies</a>
|
237
|
+
</caption>
|
238
|
+
<tbody>
|
239
|
+
<tr>
|
240
|
+
<td class="featurecontainer"><div id="sitenav">
|
241
|
+
<ul>
|
242
|
+
<li><a href="/atthemovies/">Home</a></li>
|
243
|
+
<li><a href="/atthemovies/review/">Movie Reviews</a></li>
|
244
|
+
<li class="selected"><a href="/atthemovies/interview/">Interviews</a></li>
|
245
|
+
<li><a href="/atthemovies/news/">Movie News</a></li>
|
246
|
+
<li><a href="/tv/geo/atthemovies/">Download Video</a></li>
|
247
|
+
<li><a href="/atthemovies/events/">Movie Events</a></li>
|
248
|
+
<li><a href="/atthemovies/extras/">Extras</a></li>
|
249
|
+
<li><a href="/atthemovies/about/">About the Show</a></li>
|
250
|
+
<li><a href="http://www2b.abc.net.au/tmb/Client/Board.aspx?b=19">Message Board</a></li>
|
251
|
+
|
252
|
+
</ul>
|
253
|
+
</div>
|
254
|
+
<!-- END SITENAV //-->
|
255
|
+
<div id="mbextract">
|
256
|
+
<h3 id="yoursay"><a href="http://www2b.abc.net.au/tmb/Client/Board.aspx?b=19"><span class="hidden">Your Comments</span></a></h3>
|
257
|
+
<div style="padding:0px 3px 0px 9px">
|
258
|
+
<p style="margin-bottom:10px"><span style="font-weight:bold;color:#94E6E6"><a href="http://www2b.abc.net.au/tmb/Client/Message.aspx?b=19&m=19484&ps=20&dm=2">Re: Bruno?</a></span><br>Dithymia says:<br>""Ali G was a great character." Sure was" <a href="http://www2b.abc.net.au/tmb/Client/Message.aspx?b=19&m=19484&ps=20&dm=2"><em>More»</em></a>
|
259
|
+
</p><p style="margin-bottom:10px"><span style="font-weight:bold;color:#94E6E6"><a href="http://www2b.abc.net.au/tmb/Client/Message.aspx?b=19&m=19482&ps=20&dm=2">Re: Moon - Sam Rockwell and Kevin Spacey</a></span><br>fellintoorbit says:<br>"Actually, it might be due for release on September 3rd, at least according to: http://www.hoyts.com.au/Movies/details/Moon.aspx Also, the director ..." <a href="http://www2b.abc.net.au/tmb/Client/Message.aspx?b=19&m=19482&ps=20&dm=2"><em>More»</em></a>
|
260
|
+
</p>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
<!-- END TMBEXTRACT //-->
|
264
|
+
</td>
|
265
|
+
<td><!-- PRINT_CONTENT_START -->
|
266
|
+
<div id="content">
|
267
|
+
<div id="storyImage">
|
268
|
+
<!-- video block -->
|
269
|
+
<noscript><h1>The Cove Interview</h1></noscript>
|
270
|
+
<div style="margin-left:3px"><a class="singleClip" title="Javascript and flash 9 required to view this link." href="rtmp://cp44823.edgefcs.net/ondemand/flash/tv/streams/atthemovies/20090819_thecoveiv.flv" style="background:#000000;color:#b96125"><img src="/atthemovies/img/2009/ep28/cove_int_large.jpg" width="400" height="224" style="border:0px" alt="The Cove Interview"></div></a>
|
271
|
+
|
272
|
+
<noscript>
|
273
|
+
<br><span style="color:#ffffff">Flash Player 9 and JavaScript is required to view video in the page. Alternatively use the Windows Media links below.</span></noscript>
|
274
|
+
|
275
|
+
<div id="altWinMedia"><span><a href="/atthemovies/broadband/20090819_2230/meta/hq5.asx" onclick="showWindows();return false">Windows Media »</a><div id="windowsMed"><a href="/atthemovies/broadband/20090819_2230/meta/hq5.asx" title="Alternative Windows Media Video: Fast connections" target="_blank">Fast</a> : <a href="/atthemovies/broadband/20090819_2230/meta/lq5.asx" title="Alternative Windows Media Video: Slow connections" target="_blank">Slow</a></div></span>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
<!-- // video block -->
|
279
|
+
|
280
|
+
<p class="description">David interviews filmmaker Louie Psihoyos.</p>
|
281
|
+
|
282
|
+
<p class="score" style="border:0;"> </p>
|
283
|
+
</div>
|
284
|
+
<h3>The Cove Interview</h3>
|
285
|
+
|
286
|
+
|
287
|
+
<p><em>Review by Margaret Pomeranz</em></p>
|
288
|
+
|
289
|
+
<p></p>
|
290
|
+
|
291
|
+
<div class="hideorshow-review">
|
292
|
+
<div id="audiencecomment">
|
293
|
+
<h3>Your rating: The Cove Interview</h3>
|
294
|
+
<form action="http://www.abc.net.au/atthemovies/audience/blank.htm" name="revForm" id="reviewForm" method="post" target="revThanks" onSubmit="return formCheck(this)">
|
295
|
+
<input type="hidden" name="GuestbookID" value="394" >
|
296
|
+
<input type="hidden" name="subject" id="sbj" value="THECOVEINTERVIEW" >
|
297
|
+
<div id="favFormThx"> <strong>Thank you.</strong><br>
|
298
|
+
<br>
|
299
|
+
Your comment and rating will appear below once approved. <br>
|
300
|
+
<br>
|
301
|
+
To review or discuss this movie in more detail,<br>
|
302
|
+
please use the <a href="http://www2b.abc.net.au/tmb/Client/Board.aspx?b=19" style="color:#CC6600"><strong>message board</strong></a>. </div>
|
303
|
+
<table border="0" cellspacing="0" cellpadding="0" id="favForm">
|
304
|
+
<tr>
|
305
|
+
<td class="gbkSubhead">Name:<br>
|
306
|
+
<span class="smlTxt">(or nickname)</span></td>
|
307
|
+
<td><input type="text" name="name" id="yname" size="45" class="favField" onFocus="this.style.background='#FFF6E9'"></td>
|
308
|
+
</tr>
|
309
|
+
<tr>
|
310
|
+
<td class="gbkSubhead">Email:</td>
|
311
|
+
<td><input type="text" name="email" id="yemail" size="45" class="favField" onFocus="this.style.background='#FFF6E9'"></td>
|
312
|
+
</tr>
|
313
|
+
<tr>
|
314
|
+
<td class="gbkSubhead">Rating:</td>
|
315
|
+
<td><select name="score" id="score" style="margin:0" onFocus="this.style.background='#FFF6E9'">
|
316
|
+
<option value="na">Select...</option>
|
317
|
+
<option value="0">Zero stars</option>
|
318
|
+
<option value="1">Half a star</option>
|
319
|
+
<option value="2">One star</option>
|
320
|
+
<option value="3">One and a half stars</option>
|
321
|
+
<option value="4">Two stars</option>
|
322
|
+
<option value="5">Two and a half stars</option>
|
323
|
+
<option value="6">Three stars</option>
|
324
|
+
<option value="7">Three and a half stars</option>
|
325
|
+
<option value="8">Four stars</option>
|
326
|
+
<option value="9">Four and a half stars</option>
|
327
|
+
<option value="10">Five stars</option>
|
328
|
+
</select>
|
329
|
+
</td>
|
330
|
+
</tr>
|
331
|
+
<tr>
|
332
|
+
<td class="gbkSubhead" valign="top">Comment:<br>
|
333
|
+
<span class="smlTxt">(max 100 words)</span> </td>
|
334
|
+
<td><textarea name="remark" id="remark" class="favField" onKeyUp="remainingWords(this, this.value, 100)" onFocus="this.style.background='#FFF6E9'"></textarea>
|
335
|
+
<p style="margin:0"><a href="/atthemovies/txt/s1224754.htm" style="color:#A0410F" >Conditions of use »</a></p></td>
|
336
|
+
</tr>
|
337
|
+
<tr>
|
338
|
+
<td colspan="2" align="right" height="37"><input type="Submit" name="Action" value="Submit" class="gbkbutton" onMouseOver="this.style.background='#FFEDD2'" onMouseOut="this.style.background='#FFD495'">
|
339
|
+
</td>
|
340
|
+
</tr>
|
341
|
+
</table>
|
342
|
+
</form>
|
343
|
+
<!-- comments form submits to this iframe, hidden from js enabled user -->
|
344
|
+
<IFRAME width="375" height="20" src="/atthemovies/audience/blank.htm" TITLE="blank" name="revThanks" frameborder="0" scrolling="no"></IFRAME>
|
345
|
+
<div id="wordCount"> Word count<br>
|
346
|
+
<div id="wcNum">0</div>
|
347
|
+
</div>
|
348
|
+
</div>
|
349
|
+
<!-- // audiencecomment -->
|
350
|
+
<div id="allComments">
|
351
|
+
[an error occurred while processing this directive]
|
352
|
+
</div>
|
353
|
+
</div>
|
354
|
+
<!-- // hideorshow-review -->
|
355
|
+
</div>
|
356
|
+
<!-- PRINT_CONTENT_END --></td>
|
357
|
+
<td class="sidebarcontainer"><div id="related">
|
358
|
+
<div class="hideorshow-review">
|
359
|
+
<h3>Production details</h3>
|
360
|
+
<p class="moviedetails">
|
361
|
+
<strong>Release details:</strong> Check newspapers for screening dates.<br>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
<strong>Language:</strong> English<br>
|
374
|
+
|
375
|
+
|
376
|
+
<br clear="all">
|
377
|
+
</p>
|
378
|
+
</div>
|
379
|
+
<h3 class="reviews">Movies and interviews from 19 August 2009</h3>
|
380
|
+
<table border="0" cellspacing="0" cellpadding="0" class="sideRating">
|
381
|
+
|
382
|
+
<tr><td colspan=2 class="mn"><a href="http://www.abc.net.au/atthemovies/txt/s2648118.htm">The Cove Interview Extra Grabs (Web Exclusive)</a></td></tr>
|
383
|
+
|
384
|
+
|
385
|
+
<tr><td colspan=2 class="mn"><a href="http://www.abc.net.au/atthemovies/txt/s2642579.htm">Adam</a></td></tr>
|
386
|
+
<tr><td>Margaret</td><td><img src="/atthemovies/img/rthree-and-a-half.gif" alt="three-and-a-half stars"></td></tr> <tr><td>David</td><td><img src="/atthemovies/img/rthree.gif" alt="three stars"></td></tr>
|
387
|
+
|
388
|
+
<tr><td colspan=2 class="mn"><a href="http://www.abc.net.au/atthemovies/txt/s2642583.htm">Inglourious Basterds</a></td></tr>
|
389
|
+
<tr><td>Margaret</td><td><img src="/atthemovies/img/rfour-and-a-half.gif" alt="four-and-a-half stars"></td></tr> <tr><td>David</td><td><img src="/atthemovies/img/rfour.gif" alt="four stars"></td></tr>
|
390
|
+
|
391
|
+
<tr><td colspan=2 class="mn"><a href="http://www.abc.net.au/atthemovies/txt/s2642589.htm">Inglourious Basterds Extra Grabs Web exclusive</a></td></tr>
|
392
|
+
|
393
|
+
|
394
|
+
<tr><td colspan=2 class="mn"><a href="http://www.abc.net.au/atthemovies/txt/s2642591.htm">The Cove</a></td></tr>
|
395
|
+
<tr><td>Margaret</td><td><img src="/atthemovies/img/rthree-and-a-half.gif" alt="three-and-a-half stars"></td></tr> <tr><td>David</td><td><img src="/atthemovies/img/rfour.gif" alt="four stars"></td></tr>
|
396
|
+
|
397
|
+
<tr><td colspan=2 class="mn"><a href="http://www.abc.net.au/atthemovies/txt/s2642594.htm">The Cove Interview</a></td></tr>
|
398
|
+
|
399
|
+
|
400
|
+
<tr><td colspan=2 class="mn"><a href="http://www.abc.net.au/atthemovies/txt/s2642596.htm">Subdivision</a></td></tr>
|
401
|
+
<tr><td>Margaret</td><td><img src="/atthemovies/img/rtwo.gif" alt="two stars"></td></tr> <tr><td>David</td><td><img src="/atthemovies/img/rtwo.gif" alt="two stars"></td></tr>
|
402
|
+
|
403
|
+
</table>
|
404
|
+
|
405
|
+
</div>
|
406
|
+
<!-- END RELATED //-->
|
407
|
+
</td>
|
408
|
+
</tr>
|
409
|
+
</tbody>
|
410
|
+
</table>
|
411
|
+
<!-- END CONTENT CONTAINER -->
|
412
|
+
<div id="footer">
|
413
|
+
<p><a href="http://www.abc.net.au/"><img src="/atthemovies/img/logo_abc_footer.gif" alt="ABC Online"></a> <a href="http://www.abc.net.au/common/copyrigh.htm" target="_top" title="Copyright">© 2009 ABC</a> | <a href="http://www.abc.net.au/privacy.htm" target="_top" title="Privacy Policy">Privacy Policy</a>
|
414
|
+
| <a href="/atthemovies/disclaimer.htm">Movie listings disclaimer</a> | <a href="/conditions.htm">Conditions of Use</a></p>
|
415
|
+
<!-- n -->
|
416
|
+
|
417
|
+
|
418
|
+
</div>
|
419
|
+
<!-- END FOOTER //-->
|
420
|
+
</body>
|
421
|
+
</html>
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
-f o -c
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'spec'
|
3
|
+
require 'fake_web'
|
4
|
+
|
5
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'at_the_movies')
|
6
|
+
|
7
|
+
SPEC_DIR = File.dirname(__FILE__) unless defined? SPEC_DIR
|
8
|
+
$:<< SPEC_DIR
|
9
|
+
|
10
|
+
# Don't allow real web requests during specs!
|
11
|
+
FakeWeb.allow_net_connect = false
|
12
|
+
|
13
|
+
%w( page ).each { |helper| require "helpers/#{helper}" }
|
14
|
+
|
15
|
+
Spec::Example::ExampleGroup.send(:include, PageHelperMethods)
|
metadata
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: abcde-at-the-movies
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dylan Egan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-08-24 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: mechanize
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
description: Scraper for http://abc.net.au/atthemovies
|
26
|
+
email: dylanegan@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.markdown
|
33
|
+
files:
|
34
|
+
- README.markdown
|
35
|
+
- Rakefile
|
36
|
+
- VERSION
|
37
|
+
- lib/at_the_movies.rb
|
38
|
+
- lib/at_the_movies/interview.rb
|
39
|
+
- lib/at_the_movies/parser.rb
|
40
|
+
- lib/at_the_movies/parsers.rb
|
41
|
+
- lib/at_the_movies/parsers/interview.rb
|
42
|
+
- lib/at_the_movies/parsers/review.rb
|
43
|
+
- lib/at_the_movies/review.rb
|
44
|
+
- lib/at_the_movies/version.rb
|
45
|
+
- lib/core_ext.rb
|
46
|
+
- lib/core_ext/enumerable.rb
|
47
|
+
- spec/at_the_movies/interview_spec.rb
|
48
|
+
- spec/at_the_movies/parser_spec.rb
|
49
|
+
- spec/at_the_movies/parsers/interview_spec.rb
|
50
|
+
- spec/at_the_movies/parsers/review_spec.rb
|
51
|
+
- spec/at_the_movies/parsers_spec.rb
|
52
|
+
- spec/at_the_movies/review_spec.rb
|
53
|
+
- spec/helpers/page.rb
|
54
|
+
- spec/pages/reviews
|
55
|
+
- spec/pages/s1533013.htm
|
56
|
+
- spec/pages/s2625654.htm
|
57
|
+
- spec/pages/s2625717.htm
|
58
|
+
- spec/pages/s2625733.htm
|
59
|
+
- spec/pages/s2625742.htm
|
60
|
+
- spec/pages/s2631026.htm
|
61
|
+
- spec/pages/s2634329.htm
|
62
|
+
- spec/pages/s2642594.htm
|
63
|
+
- spec/spec.opts
|
64
|
+
- spec/spec_helper.rb
|
65
|
+
has_rdoc: false
|
66
|
+
homepage: http://github.com/abcde/at-the-movies
|
67
|
+
licenses:
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options:
|
70
|
+
- --charset=UTF-8
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: "0"
|
78
|
+
version:
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: "0"
|
84
|
+
version:
|
85
|
+
requirements: []
|
86
|
+
|
87
|
+
rubyforge_project:
|
88
|
+
rubygems_version: 1.3.5
|
89
|
+
signing_key:
|
90
|
+
specification_version: 3
|
91
|
+
summary: Pulling that shit in yo!
|
92
|
+
test_files:
|
93
|
+
- spec/at_the_movies/interview_spec.rb
|
94
|
+
- spec/at_the_movies/parser_spec.rb
|
95
|
+
- spec/at_the_movies/parsers/interview_spec.rb
|
96
|
+
- spec/at_the_movies/parsers/review_spec.rb
|
97
|
+
- spec/at_the_movies/parsers_spec.rb
|
98
|
+
- spec/at_the_movies/review_spec.rb
|
99
|
+
- spec/helpers/page.rb
|
100
|
+
- spec/spec_helper.rb
|