![]() With contextlib.closing(webdriver.Firefox(firefox_profile=fp)) as driver:Ĭsvfile = os.path.join(download_dir, 'download.csv')įor line in csv.reader(f, delimiter=','): # driver = webdriver.Firefox(firefox_profile=fp) # 2 means "use the last folder specified for a download"įp.set_preference("", 2)įp.set_preference("", False)įp.set_preference("", "application/x-csv") This will get you as far as autosaving the entire csv to disk, but I haven't found a robust way to determine when the download is complete: import osįp.set_preference("", download_dir) How to set environment variables in P圜harm?.How to add multiple objects to ManyToMany relationship at once in Django ?.URL-parameters and logic in Django class-based views (TemplateView).Can't install via pip because of egg_info error. ![]()
0 Comments
Leave a Reply. |