Parsing HTML Tables into a csv file?

  • Автор темы Автор темы cam
  • Дата начала Дата начала

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
 
If your data source is webpage you have to parse necessary data with Regex.
 
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
 

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