need some advice on editing scraped data

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18
Hello, I'd like some advice on the following complication:
I grab the data from a website the data is in the following format
proxy:port,http,randomnumber

I need to scrape the data and erase the ,http,randomnumber and output it to a text file every x minutes.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
And what's the problem? You can take all lines one by one in loop and delete all unnecessary data from there with regexp
 
  • Спасибо
Реакции: bill

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
Or even better, create a regex to just grab the proxy:port from the DOM and put everything to a list.
 
  • Спасибо
Реакции: bill

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