**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: tv.com * @MinSWversion: 1.1.1/55.27 * @Revision 0 - [03/11/2015] Jan van Straaten * - creation * @Remarks: directv alternative, less details * @header_end **------------------------------------------------------------------------------------------------ site {url=tv.com|timezone=UTC|maxdays=10.1|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90|nopageoverlaps} site {loadcookie=tv.com.cookies.txt} * url_index{url|http://www.tv.com/listings/station/|channel|} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages index_showsplit.scrub {regex||
  • ||} * index_start.scrub {regex||data-start="(\d{10})">||} index_title.scrub {regex||
    (.+?)
    ||} index_description.scrub {regex||
    (.*?)
    ||} * index_temp_1.scrub {regex||data-tmsid="rvp:(\d+?)"||} * id index_urlshow.modify {set('index_temp_1' not "")|http://www.tv.com/listings/event/?EventTmsId=rvp%3A'index_temp_1'} http://www.tv.com/listings/event/?EventTmsId=rvp%3A1952005171 index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}* to speedup the downloading of the detail pages title.scrub {regex||

    (?:)?(.+?)(?:)?

    ||} subtitle.scrub {regex||

    (?:)?(.+?)(?:)?

    ||} description.scrub {regex||
    (.*?)
    ||} description.modify {remove|\} showicon.scrub {regex||data-image=\\"(http://.+?\.jpg)\\"||} category.modify {substring(type=regex)|'title' ""} title.modify {remove(type=regex)|"()"} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *scope.range {(channellist)|end} *url_index {url|http://www.tv.com/listings/} *index_site_channel.scrub {regex||(.+?)(?:\|)||} *** add channel name makes it more clear? *index_temp_1.modify {set|0} *loop {(each "index_temp_2" in 'index_site_channel')|end} *index_temp_3.modify {substring(type=element)|'index_temp_6' 'index_temp_1' 1} * name *index_temp_4.modify {addend|'index_temp_2' ('index_temp_3')####} *index_temp_1.modify {calculate(format=F0)|1+} *end_loop *index_site_channel.modify {set|'index_temp_4'} *index_site_channel.modify {replace|####|\|} *index_site_channel.modify {cleanup(removeduplicates=equal,100 link="index_site_id")} *end_scope ** @auto_xml_channel_end