Bugfix for make_atsc_chanconf.pl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

The antennaweb.org scraper make_atsc_chanconf.pl is broken due to changes on the antennaweb.org site, specifically the need for cookies and an additional mapping page that gets displayed when only a zipcode is entered.

The latest in CVS gives this error as a result:

No such field 'stationXml' at ./make_atsc_chanconf.pl line 62

I have attached a patch that gets it working again.

Best,

-N
Index: make_atsc_chanconf.pl
===================================================================
RCS file: /cvs/linuxtv/dvb-apps/util/szap/channels-conf/atsc/make_atsc_chanconf.pl,v
retrieving revision 1.1
diff -r1.1 make_atsc_chanconf.pl
10a11
>  use HTTP::Cookies;
39a41
>  $ua->cookie_jar({});
44c46
<       $request = $form->click;
---
>       $request = $form->click("btnStart");
49c51
<               $request2 = $form2->click;
---
>               $request2 = $form2->click("btnSubmit");
51,53c53,60
<               if ($response3->is_success) {
<                       $form3 = HTML::Form->parse($response3);
<                       $xml = $form3->value($XML);
---
>               $form3 = HTML::Form->parse($response3);
>               $request3 = $form3->click("btnContinue");
>               $response4 = $ua->request($request3);
>  
>               if ($response4->is_success) {
>                       
>                       $form4 = HTML::Form->parse($response4);
>                       $xml = $form4->value($XML);
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux