python – Using sys.argv for webscraping, and trying run it through CMD console. I am new to this, adn dont knwo how to solve “NoneType” error. Using pycharm

import sys import requests import csv import os from bs4 import BeautifulSoup def main(): url = input_arguments()[0] filename = input_arguments()[1] header = summary_info(url) data = data_scraping(url) save_to_csv(filename, header, data) check_file(filename) def url_list(): url = “” r = requests.get(url) soup = BeautifulSoup(r.text, “html.parser”) list_href = [] for index in range(1, 15): find = soup.find_all((“td”, {“headers”: f”{index}sa3″})) … Read more

cmd – How to delete all files and folders in a directory respectively an entire directory tree except files specified in a list file?

Let us assume the list file G:ADmodsExclusion List.txt contains only file/folder names without path like: Cleanup.cmd Exclusion List.txt Folder to keep File not to delete.txt The batch file G:ADmodsCleanup.cmd can be used with the following command lines to delete all files and folders in directory of the batch file with exception of the files and … Read more