You are here

How to specify a base date to grab

6 posts / 0 new
Last post
Didier2507
Offline
Joined: 5 years
Last seen: 5 years
How to specify a base date to grab

Hello,

I'm trying to get some dated informations.
I mean that i try to grab for example data ,but not X days starting today , but x days starting a certain date.

Ie i want to grab all the data for the 30 days after the 1-1-2019

Is it possible ?
I have tried to change the machine time , that gives some issue with the https certificate .

Best regards

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 6 hours

maybe but there are many if's/and's/but's that need to be answered.
need to see the site data.

Didier2507
Offline
Joined: 5 years
Last seen: 5 years

I use that site in my ini
EEN

it is in mijn-tv-gids.be.channels.xml in the directory for belgium
the site itself permit to put a date in the url

https://www.mijn-tv-gids.be/01012019/kabel/17/mijn-tv-programma.html

i have tried to replace in the mijn-tv-gids.be.ini (in belgium directory)
the line
url_index.headers {postdata=s_day='urldate'&s_hour=&s_genre=0&s_channel='channel'}

by url_index.headers {postdata=s_day='2019-07-01'&s_hour=&s_genre=0&s_channel='channel'}

But that gives an error
You can find the ini and the log file in attachement
Br

Attachments: 
Didier2507
Offline
Joined: 5 years
Last seen: 5 years

I use that site in my ini
EEN

it is in mijn-tv-gids.be.channels.xml in the directory for belgium
the site itself permit to put a date in the url

https://www.mijn-tv-gids.be/01012019/kabel/17/mijn-tv-programma.html

i have tried to replace in the mijn-tv-gids.be.ini (in belgium directory)
the line
url_index.headers {postdata=s_day='urldate'&s_hour=&s_genre=0&s_channel='channel'}

by url_index.headers {postdata=s_day='2019-07-01'&s_hour=&s_genre=0&s_channel='channel'}

But that gives an error
You can find the ini and the log file in attachement
Br

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 6 hours

the new site doesn't use POST.

use the new url u have and delete these 2 lines..

url_index.headers {method=POST|contenttype=application/x-www-form-urlencoded}
url_index.headers {postdata=s_day='2019-07-01'&s_hour=&s_genre=0&s_channel='channel'}

then you should get page data.

also many other parts of the ini may have to be rewritten as the data structure has changed.

Didier2507
Offline
Joined: 5 years
Last seen: 5 years

Thank you
I'll try to do that

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