![]() Luckily you can see the last beatmap that was downloaded and reference it to where it is in the Excel spreadsheet and remove the rows above and start the script again. but the loop keeps going and tries each URL unless you stop the script. ![]() Can only download max 8 at a time and after a 100 to 200 downloads you can't download anymore and you have to wait a bit. This a sequence "one at a time" function, the download_file() function is a loop which checks the download folder to see if there's a file being downloaded, if not it goes to the next url. Wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "body > div.osu-layout_section.osu-layout_show > div > div > div:nth-child(2) > div.beatmapset-header > div > div.beatmapset-header_box.beatmapset-header_box-main > div.beatmapset-header_buttons > a:nth-child(2) > span"))).click() WebDriverWait(driver, 3).until(EC.alert_is_present(),'Timed out waiting for alert.') Options.add_argument("user-data- dir=C:\\Users\\%UserName%\\AppData\\Local\\Google\\Chrome\\User Data\\Profile1")ĭriver = webdriver.Chrome(executable_path=driver_path, chrome_options=options) Options.add_experimental_option('excludeSwitches', ) # now loop through each url
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |