Parsing HTML Tables into a csv file?

cam

Новичок
Регистрация
14.01.2013
Сообщения
7
Благодарностей
0
Баллы
1
Can anyone send me on the right directions to how I can learn/do parsing of html tables into csv files.
Is it only through regex I can do it? I've spent hours and cant figure it out.


Thanks!
All input deeply appreciated
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
If your data source is webpage you have to parse necessary data with Regex.
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
if you wish to avoid using regex for every single cell... than what you need to do is use regex to extract complete table, and than just use replace in order to replace <tr>,</tr> with nothing, and to replace </td>,</td> with some delimiter which you wanna use in your csv file... That should be simple enough :D
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)