Menu

#29 ananova.com category codes

closed
Ed Avis
None
5
2003-10-25
2003-10-24
Anonymous
No

Hi,

I just wondered whether there is a quick way of finding
all category codes used in the listings provided by
ananova.com (tv_grab_uk).

e.g. movies/Drama

Doing this manually (searching through the xmltv
documents) is quite a tedious job.

Thanks

E.J. Talbot

talbotj1@hotmail.com

Discussion

  • Ed Avis

    Ed Avis - 2003-10-25

    Logged In: YES
    user_id=10769

    There is no 'quick' way in the sense of downloading a
    document which has a single list of categories. However,
    you can find all categories in an XMLTV document:

    % tv_grep --output out.xml -e 'our %seen; if
    ($_->{category}) { foreach (@{$_->{category}}) { for
    ($_->[0]) { print "$_\n" unless $seen{$_}++ } } }' tv.xml

    Categories will be printed to standard output; the file
    out.xml is just a dummy output and can be deleted (or change
    out.xml to /dev/null if you use a Unix-like system).

     
  • Ed Avis

    Ed Avis - 2003-10-25
    • assigned_to: nobody --> epaepa
    • status: open --> closed
     

Log in to post a comment.