Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[C#] Can't arrange data retrieved from a table on another site

Junior Spellweaver
Joined
Jan 14, 2009
Messages
131
Reaction score
1
Hi guys

I used
to retrieve a table from

YQL Query:
select * from html where url='http://www.uob.com.sg/personal/loans/personal-loan.html#rates-tenors' and xpath='//div[@class="nova-table-container"]'

Ok, in case you guys are confused...

To sum it all up, I'm trying to get this table

uob - [C#] Can't arrange data retrieved from a table on another site - RaGEZONE Forums

From

And here is my failed result


Thanks in advance!
 

Attachments

You must be registered for see attachments list
◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜
Developer
Joined
May 29, 2007
Messages
2,167
Reaction score
899
The tag can help you spread it across the rows.
Plus it's not C# it's just Javascript & JQuery.
 
Joined
Dec 15, 2009
Messages
1,387
Reaction score
236
kWgwt9P - [C#] Can't arrange data retrieved from a table on another site - RaGEZONE Forums


if you were to examine the source codes from , you will notice that it has used rowspan in the td tag.

C8KJFgm - [C#] Can't arrange data retrieved from a table on another site - RaGEZONE Forums


Also, there's a minor bugs in your codes.
Replace <table> with this, and you should be able to understand what's wrong.
<table border="1" cellspacing="0" cellpadding="5">
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Jan 14, 2009
Messages
131
Reaction score
1
kWgwt9P - [C#] Can't arrange data retrieved from a table on another site - RaGEZONE Forums


if you were to examine the source codes from , you will notice that it has used rowspan in the td tag.

C8KJFgm - [C#] Can't arrange data retrieved from a table on another site - RaGEZONE Forums


Also, there's a minor bugs in your codes.
Replace <table> with this, and you should be able to understand what's wrong.



Don't have much time left. This is all I could do. Guess it could work too..

uobuob - [C#] Can't arrange data retrieved from a table on another site - RaGEZONE Forums

:(:

Could you help me out with this one:

The end product when I put into my website looks like this: HSHSHS - [C#] Can't arrange data retrieved from a table on another site - RaGEZONE Forums

select * from html where url='http://www.hsbc.com.sg/1/2/personal/loans/personal-loan?utm=a&device=d' and xpath='//div[@id="tbl-1"]'
 

Attachments

You must be registered for see attachments list
Joined
Dec 15, 2009
Messages
1,387
Reaction score
236


Don't have much time left. This is all I could do. Guess it could work too..

View attachment 152935

:(:

Could you help me out with this one:

The end product when I put into my website looks like this: View attachment 152936
<td> </td> notice the closing the tag.

Also, that's some pretty terrible coding right there.
 
Junior Spellweaver
Joined
Jan 14, 2009
Messages
131
Reaction score
1
<td> </td> notice the closing the tag.

Also, that's some pretty terrible coding right there.

Hahaha I know, I'm sorry.

Couldn't think of how to properly retrieve the table, so I decided to retrieve every single data 1 by 1 and pluck it into my own table's rows and columns.

Don't really have much time left, so I guess I'll just have to make do with this.
 
Junior Spellweaver
Joined
Jan 14, 2009
Messages
131
Reaction score
1


You might want to understand every single part of it, so please don't copy my codes blindly.

Thank you so much!
 
Back
Top