mirror of
				https://github.com/KevinMidboe/ITLscraper.git
				synced 2025-10-29 17:50:14 +00:00 
			
		
		
		
	fix course_url missing
This commit is contained in:
		| @@ -225,12 +225,12 @@ class itslearning_scraper(): | |||||||
|  |  | ||||||
|     def download_one(self, url): |     def download_one(self, url): | ||||||
|         folder_title=input("folder title:") |         folder_title=input("folder title:") | ||||||
|         r = rq.get(course_url, cookies=self.cookies) |         r = rq.get(url, cookies=self.cookies) | ||||||
|         course_path = os.path.join(os.path.abspath(os.path.curdir)) |         course_path = os.path.join(os.path.abspath(os.path.curdir)) | ||||||
|         make_folder(course_path, folder_title) |         make_folder(course_path, folder_title) | ||||||
|         folder_id = re.search("FolderID=(.+?)'",r.text).group(1) |         folder_id = re.search("FolderID=(.+?)'",r.text).group(1) | ||||||
|         r = rq.get(folder_url+folder_id, cookies=itl_cookies) |         r = rq.get(folder_url+folder_id, cookies=self.cookies) | ||||||
|         r = rq.get(folder_url+folder_id, cookies=itl_cookies) |         r = rq.get(folder_url+folder_id, cookies=self.cookies) | ||||||
|         table = self.find_folder_table(r.text) |         table = self.find_folder_table(r.text) | ||||||
|         self.find_files(table) |         self.find_files(table) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user