I made a macro that scrap in formation from the website www.soccer24.com I want to get all the details of every match in the home page.
I already made the code and it works but when the macro is running, suddenly, the IE conection is lost. I mean, the macro have to go into 150 different websites inside the same page, like this:
https://www.soccer24.com/match/Qo8j57nO/#odds-comparison;1x2-odds;1st-half
the only thing that changes in each link is the id that is bolded
the macro goes to the website, pulls some information, and goes to another, pulls information, and so on.
when the macro is about the page 40, the IE connection just breaks, and it doesn't work anymore and I can't go to any website. When I close the program and open it again, I recover the internet connection, but it's always the same when it goes on the 40 or 50 iteration, the IE connection breaks and doesn't open any website.
its like IE VBA has a "working time limit" o "websites visit limit" I don't know whats happening.
The code That I am using is this one:
so it works perfectly, but eventually in the 40 or 50 iteration of 150. when it tries to go to a website:
IE.Navigate "https://www.soccer24.com/match/" & Range("A" & i).Value & "/#odds-comparison;1x2-odds;1st-half"
the internet explorer shows "no conection" and it doesn't work anymore. it's like IE VBA has a "working time limit" o "websites visit limit"