You are here

Voice of America

12 posts / 0 new
Last post
doglover
Offline
Joined: 11 years
Last seen: 3 years
Voice of America

If have problems requested a correct date from this website:

http://ibb7-2.ibb.gov/tvschedule/index.cfm?type=Full&satellite=EU

For grabbing the schedule of Voice of America.  The problem is defning the url_index statement
Can somebody help?
 
Thanks in advance
 
Willy

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

Willy,
This site uses POST to get its data.
next lines should do the trick:

url_index{url|http://ibb7-2.ibb.gov/tvschedule/getlisting.cfm}
urldate.format {datestring|MMddyy}

url_index.headers {method=POST}
url_index.headers {contenttype=application/x-www-form-urlencoded}
url_index.headers {postdata=requestdate='urldate'&satellite='channel'&type=Full}

The site_id in your config file should be EU.

doglover
Offline
Joined: 11 years
Last seen: 3 years

Thanks Francis.  I never seen to grasp this POST method.
The siteini is attached.
I use the following in the config file:
 
   <channel update="i" site="VOA" site_id="EU" xmltv_id="VOA.com">Voice of America (VOA)</channel>
    <channel update="i" site="VOA" site_id="340" xmltv_id="DOS.com">Voice of America (VOA)</channel>
 
Willy
 

Attachments: 
francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

Willy,
We see more and more sites that use POST to do the data transfers.
Thanks for the contribution.
I have added channels generation (because there where more channels/satellites available).
Also changed the maxday from 14 to 28. (there are even more days available).
And renamed the file to voanews.com.ini, to be inline with the site.
I have put this one on our official EPG channels page (under USA)
THANKS!
 
Francis

doglover
Offline
Joined: 11 years
Last seen: 3 years

Sorry Francis,  it seems that my post creates cnfusion.
I meant to say.  I never seem to grasp this POST method.  I have probles understanding it how it works.
Of course, I have seen other websites which use the method.  But as I said i have a problem understanding how this works.
Willy

doglover
Offline
Joined: 11 years
Last seen: 3 years

Francis,
 
Just something I found out now.
The website gives the schedule in UTC time.  Now in order to acommodate the DST shift build in Webgrab++ I have to set something like this in the siteini:
 
*site {url=www.VOA.com|timezone=UTC+00:00|maxdays=14|cultureinfo=en|charset=UTF-8|titlematchfactor=50} * winter
site {url=www.VOA.com|timezone=UTC-01:00|maxdays=14|cultureinfo=en|charset=UTF-8|titlematchfactor=50} * summer
Is there anyway to have a fixed timezone (Wih DST the timezone shift automatically one hour)
 
Willy
 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

Actually its not that difficult.
Normally GET is used. That means that the client (WG++) gets data from a specific resource (page/url).
A POST is the same, but during the request, you can put some arguments. (in this case requestdate='urldate'&type=Full&satellite='channel')
So when a site uses GET, you have (most of the times) 1 page for every day/channel
When a site uses POST, it will have only 1 page (most of the times). But for every special page you want (/day/channel), you can alter the POST request data.
So all the POST requests go to the same link, but with different request data.
 
So to difference in WG++, will only be the url_index
For GET, you will only have url_index
For POST, you must have url_index AND url_index.headers {method=POST} AND url_index.headers {postdata=}. Sometimes also url_index.headers {contenttype=} is defined, but I don't know if that is actually needed.
That's it.
Is my explanation understandable?

doglover
Offline
Joined: 11 years
Last seen: 3 years

 It is possible that you will get a wrong schedule if you grab around midnigth.
In order to resolve this add:
 
index_date.scrub {single (force)|Television Broadcast Schedule|<br>For:|</|<p}
 
To the Siteini
 
Willy

niwi
Offline
Has donated long time ago
Joined: 6 years
Last seen: 5 years

I used this wp+ with this site.ini for a long time. Then I had to move to a new apartment and no longer had access to satelite tv. Now I can receive voa again with TVHeadend via iptv. Unfortunatly the site.ini is no longer working. Could you please fix grabbing from the voas offical schedule site again? VoA has still great shows but unfortunatly most of their stations are not included in other epg sites.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 day

Don't see any show on the site.

mikhoul
Offline
mikhoul's picture
Joined: 6 years
Last seen: 6 years
mat8861 wrote:

Don't see any show on the site.

Here: https://www.voanews.com/tv/schedule/116/2018/12/11

niwi
Offline
Has donated long time ago
Joined: 6 years
Last seen: 5 years
Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl