need some advice on editing scraped data

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

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.
 
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
Or even better, create a regex to just grab the proxy:port from the DOM and put everything to a list.
 
  • Спасибо
Реакции: bill

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