bypass proxy server error and cloudflare error (-1350) and repeat macro

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
User avatar
vardipoor.m
Posts: 34
Joined: Sun Jan 17, 2021 8:58 am

bypass proxy server error and cloudflare error (-1350) and repeat macro

Post by vardipoor.m » Thu Feb 04, 2021 12:21 pm

hi
i use imacros explorer v12.5.503 and win 10 pro x64

i use CSV for proxy DATASOURCE. some of proxies not works and get error -1350 (for server not found and for cloudflare security)
how to bypass it and macro start from the first with no increase loop number and just increase the line of proxy.csv file.
i can use the SAVEAS to save number of proxy line and use it again but i dont know how can i set if for bypass -1350 error.
i see this
viewtopic.php?f=11&t=19364&p=50151#p50151
but this is for firefox and i use imacros browser
my code logic is like this

Code: Select all

for(i=1;end=0;i++)
{end=0
 if (get error -1350)
 {
        increase proxy line in csv(next proxy)
	go to my site again
	end=0
 }
 if (get no error and site refresh successfully end for loop)
	end=1
}
if(The proxy line ended)
end macro
this is my source

Code: Select all

VERSION BUILD=1010 RECORDER=CR
SET !REPLAYSPEED fast
'***add proxy line to var****
set !datasource "mcoin-pr-loop-data.txt"
set !datasource_line 1
set proxyline {{!col1}}
SET !var2 EVAL("{{!col1}}+1")

'***add loop number(next user,pass line) to var****
set !datasource "m-loop-data.txt"
set !datasource_line 1
set !loop {{!col1}}
SET !VAR0 EVAL("{{!col1}}+1")

set !WAITPAGECOMPLETE no
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 30
set !datasource "m proxy.csv"
set !datasource_line {{proxyline}}
SET !ERRORIGNORE no
PROXY ADDRESS={{!COL1}}:{{!col2}}
URL GOTO=target site

'**********i want this code: if proxy don't work(error= -1350) go to next proxy line and refresh page*************

set !datasource "m userpass.csv"
set !datasource_line {{!loop}}
SET !REPLAYSPEED MEDIUM

TAG POS=2 TYPE=A ATTR=TXT:Registration
wait seconds=1
TAG POS=2 TYPE=INPUT:EMAIL ATTR=NAME:email CONTENT={{!col1}}{{!col2}}
SET !ENCRYPTION NO
set !datasource_line 1
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:password CONTENT={{!col3}}
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Registration
set !WAITPAGECOMPLETE yes
TAG POS=1 TYPE=BUTTON ATTR=TXT:Start&&CLASS:"button_white start-mining"&&DATA-CHAIN:DOGE

'**************this lines save proxy line to txt for next use******************
FILEDELETE NAME=C:\Users\mv\Documents\iMacros\DataSources\mcoin-pr-loop-data.txt
wait seconds=1
add !extract {{!var2}}
add !extract {{!NOW:mm/dd/yyyy}}
add !extract {{!NOW:hh:nn:ss}}
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\mv\Documents\iMacros\DataSources FILE=mcoin-pr-loop-data.txt
'****************

'**************this lines save loop number to txt for next use******************
FILEDELETE NAME=C:\Users\mv\Documents\iMacros\DataSources\m-loop-data.txt
wait seconds=1
add !extract {{!var0}}
add !extract {{!NOW:mm/dd/yyyy}}
add !extract {{!NOW:hh:nn:ss}}
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\mv\Documents\iMacros\DataSources FILE=m-loop-data.txt
'****************

TAG POS=1 TYPE=STRONG ATTR=* EXTRACT=TXT
TAG POS=1 TYPE=H3 ATTR=CLASS:"total gh" EXTRACT=TXT
add !extract {{!NOW:mm/dd/yyyy}}
add !extract {{!NOW:hh:nn:ss}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=m-ex-data.txt

TAG POS=1 TYPE=A ATTR=TXT:Exit
thanks
Thanks to the clever and clean administrator of this forum
Post Reply