Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

Challenge : Loading data from web when data table is at multiple pages

Hi All ,

How to load Election Result data from a website when the data table is scattered at multiple pages .

Website : http://eciresults.nic.in/StatewiseS24.htm

WEBSITE.PNG

Data pattern

UP ELECTION DATA.PNG

My requirement is that my qvw app should load data one by one from the above web data table till it reaches end . Here its 41th page .

Thanks

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

this script will do what you ask for

for i=1 to 40

let vPage= 'StatewiseS24' &  if($(i)>1,$(i),'') & '.htm';

LOAD Constituency,

     [Const. No.],

     [Leading Candidate],

     [Leading Party],

     [Trailing Candidate],

     [Trailing Party],

     Margin,

     Status

FROM

[http://eciresults.nic.in/$(vPage)]

(html, codepage is 1252, embedded labels, table is @7, filters(

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 1)),

Remove(Row, Pos(Top, 2))

));

next

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

this script will do what you ask for

for i=1 to 40

let vPage= 'StatewiseS24' &  if($(i)>1,$(i),'') & '.htm';

LOAD Constituency,

     [Const. No.],

     [Leading Candidate],

     [Leading Party],

     [Trailing Candidate],

     [Trailing Party],

     Margin,

     Status

FROM

[http://eciresults.nic.in/$(vPage)]

(html, codepage is 1252, embedded labels, table is @7, filters(

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 1)),

Remove(Row, Pos(Top, 2))

));

next

shekhar_analyti
Specialist
Specialist
Author

Thank you lironbaram ... You Rocked