Sign in to follow this  
Followers 0
eistuete

URL find and replace

4 posts in this topic

HI,

I have a URL like "https://www.amazon.de/s/ref=sr_pg_3?me=A2DSZ1A0BT2U97&fst=as%3Aoff&rh=k%3Aakku%2Cp_4%3AAcer&page=3&keywords...." in google chrome and i want to search for "page=3&keywords" and replace the 3 with a 4 and 5 and ... to get on the next page in a while loop till I press end.

I want that my autoit script click in the URL and the next step is to press Enter.

Are there any solutions?

sorry but my english ist not good and I did the script with AU3record.

Thank You.

Share this post


Link to post
Share on other sites



And where is the problem?

 

Ps.: welche Eissorte ist in der Tüte?

1 person likes this

Share this post


Link to post
Share on other sites

I dont know how...

Share this post


Link to post
Share on other sites

To replace the URL use the function StringReplace -> Take a look at the Wiki

Whilst for the cycle, I've used a For / Next.

Short example below.

Local $url = "www.amazon.it/blablablablabla&page=1&blablabla" ; Starting URL
Local $i
For $i=1 to 4
   $url=StringReplace($url,"&page="&$i&"&","&page="&$i+1&"&")
   ConsoleWrite($i &" - "&$url&@crlf)
Next

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0