how
- User
how
- Assistant
It seems like your question is incomplete. Could you please provide more details or clarify what you would like to know? I'm here to help!
- User
i wan't to parse all of the links from my site contained in the
href=tag from predefined list of my urls like -> https://vx-underground.org/Papers/Windows/AMSI , https://vx-underground.org/Papers/Windows/Syscalls and so on... tags from html page looks like this -> - Assistant
- User
all the links should be taken from predefined url_list only and parsed from it. I will keen different lists of urls; like url_list_win, url_list_nix and so one. Also instead of printing this files i want to download them in separate folders for each url_list
- Assistant
- User
it also could be a .pdf, .zip, .7z, .txt or even .ps extension .. How to fix to parse the legit ones ?
- Assistant
- User
Before downloading file i also want ro check if this file was previously downloaded or not. If file with this exect name already presented in the folder then skip the download and continue to the next file from href.
- Assistant
- User
i also want to set custom user-agent for all of this download and fetch requests.. how ?
- Assistant
- User
One more thing.. all the downloaded file from each link i want to save into successive subdir, like in url last name. Example link -> https://vx-underground.org/Papers/Windows/AMSI ; dir to save -> Windows/AMSI .. link https://vx-underground.org/Papers/Windows/Syscalls ; dir to save files -> Windows/Syscalls ... etc.
- Assistant
- User
File "/media/veracrypt7/doc/papers/xak/update-vx-collection.py", line 76, in fetch_and_download_files(url_list_win, base_download_folder) File "/media/veracrypt7/doc/papers/xak/update-vx-collection.py", line 39, in fetch_and_download_files item = path_parts[3] ~~~~~~~~~~^^^ IndexError: list index out of range
- Assistant
- User
URL path does not have enough segments: https://vx-underground.org/Papers/Windows/AMSI URL path does not have enough segments: https://vx-underground.org/Papers/Windows/Syscalls URL path does not have enough segments: https://vx-underground.org/Papers/Windows/Evasion URL path does not have enough segments: https://vx-underground.org/Papers/Linux/Evasion URL path does not have enough segments: https://vx-underground.org/Papers/Linux/Hooking
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.