Delete a random proxy?

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I'm using a random proxy in list processing (get line > random). If the proxy, for example, got a temporary ban from a website, is it possible to delete the random proxy in: list processing > delete line? If so, how can I achieve this?

Btw when I try to write the (random) proxy to a file {-Variable.proxy-}, instead of getting the actual proxy I received a number (example 10). What has happened there?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
Take proxy with removing and put it back to the list if it is good.
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
That's not what I mean.
1. Take a random line from proxy list with removing and put it to variable proxy: {-Varible.proxy-}
2. According to some logic decide if it is good proxy or bad, if good add {-Varible.proxy-} to the list of proxy.
 
  • Спасибо
Реакции: akash и shabbysquire

akash

Client
Регистрация
01.08.2012
Сообщения
40
Благодарностей
2
Баллы
0
That's not what I mean.
1. Take a random line from proxy list with removing and put it to variable proxy: {-Varible.proxy-}
2. According to some logic decide if it is good proxy or bad, if good add {-Varible.proxy-} to the list of proxy.
I'm trying this and i'm getting this in the log when writing the good proxy back to file

Are you trying to edit the file C:\xxxx\proxy.txt attached to a list or a table, it can cause you problems. For files that are binded to lists and tables, use the proper tools.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Use operations with list and not operations with files actions.
if you have lists synced with files on hard drive.
 

akash

Client
Регистрация
01.08.2012
Сообщения
40
Благодарностей
2
Баллы
0
Use operations with list and not operations with files actions.
if you have lists synced with files on hard drive.
not sure im understanding what you mean, can you explain?

this is what im doing now, as suggested from HB's post:

im taking proxy from list. delete after take. then if project is successful with that proxy then i write {-proxy-variable-} back to {-project-directory-}proxy.txt

thx
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113

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